org.entityfs.cap.entityattrs.impl.metadata
Class ECEntityAttributesImpl<T extends EntityAttributes>
java.lang.Object
org.entityfs.cap.AbstractEntityCapability<EntityImplementation>
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ECEntityAttributesImpl
public ECEntityAttributesImpl(EntityImplementation ent,
AttributesEntityDelegate<T> ed)
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.