org.entityfs.cap.entityattrs.impl.metadata
Class ECEntityAttributesImpl<T extends EntityAttributes>

java.lang.Object
  extended by org.entityfs.cap.AbstractEntityCapability<EntityImplementation>
      extended by org.entityfs.cap.entityattrs.impl.metadata.ECEntityAttributesImpl<T>
All Implemented Interfaces:
ECEntityAttributes<T>, ECEntityAttributesImplementation<T>, EntityCapability

public class ECEntityAttributesImpl<T extends EntityAttributes>
extends AbstractEntityCapability<EntityImplementation>
implements ECEntityAttributes<T>, ECEntityAttributesImplementation<T>


Constructor Summary
ECEntityAttributesImpl(EntityImplementation ent, AttributesEntityDelegate<T> ed)
           
 
Method Summary
 T getAttributes()
          Get the attributes for an entity.
 T getAttributesNoAccessControls()
          Get the entity attributes without doing any access controls.
 Class<T> getAttributesType()
          Get the type of attributes stored by this capability.
 void setAttributes(T attr)
          Set the attributes for an entity.
 
Methods inherited from class org.entityfs.cap.AbstractEntityCapability
assertIsValid, getEntity, getEntityInternal, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.entityfs.cap.EntityCapability
getEntity, isValid
 

Constructor Detail

ECEntityAttributesImpl

public ECEntityAttributesImpl(EntityImplementation ent,
                              AttributesEntityDelegate<T> ed)
Method Detail

getAttributesType

public Class<T> getAttributesType()
Description copied from interface: ECEntityAttributes
Get the type of attributes stored by this capability.

Specified by:
getAttributesType in interface ECEntityAttributes<T extends EntityAttributes>
Returns:
The type of attributes.

getAttributes

public T getAttributes()
Description copied from interface: ECEntityAttributes
Get the attributes for an entity.

The returned object is only guaranteed to represent the real attributes of the entity as long as the calling thread has an EntityLock on the entity's parent directory.

Specified by:
getAttributes in interface ECEntityAttributes<T extends EntityAttributes>
Returns:
The entity's attributes.

getAttributesNoAccessControls

public T getAttributesNoAccessControls()
Description copied from interface: ECEntityAttributesImplementation
Get the entity attributes without doing any access controls.

Specified by:
getAttributesNoAccessControls in interface ECEntityAttributesImplementation<T extends EntityAttributes>
Returns:
The entity's attributes.

setAttributes

public void setAttributes(T attr)
Description copied from interface: ECEntityAttributes
Set the attributes for an entity. Previous attributes are overwritten.

Specified by:
setAttributes in interface ECEntityAttributes<T extends EntityAttributes>
Parameters:
attr - The new attributes.