|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ECNamedEntityAttributes<T extends EntityAttributes>
This interface defines an entity capability that can associate several
EntityAttributes
objects with an entity. Each entity attribute type
is identified by a unique name. All entities can have all attribute types
specified by the capability provider.
The attributes of an entity is a property of its parent directory. A consequence of this is that a file system's root directory does not support entity attributes since it does not have a parent directory.
Changes made to an EntityAttributes
object are not automatically
saved to its parent entity. Clients must call
setAttributes(String, EntityAttributes)
to update the parent entity
with the new attributes.
When copying an entity with EntityAttributes
, the attributes are not
copied. Instead, the target entity is given a default set of attributes.
ECTNamedEntityAttributes
,
ECEntityAttributes
,
EntityAttributes
Method Summary | |
---|---|
T |
getAttributes(String name)
Get the named attributes for an entity. |
void |
setAttributes(String name,
T attr)
Set the named attributes for an entity. |
Methods inherited from interface org.entityfs.cap.EntityCapability |
---|
getEntity, isValid |
Method Detail |
---|
T getAttributes(String name) throws AccessDeniedException, ReadLockRequiredException, UnknownEntityAttributeException
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.
name
- The name of the attributes.
AccessDeniedException
- If the current Subject
does not
have execute access to the entity's parent directory.
ReadLockRequiredException
- If the client does not have a read lock
on the entity's parent directory.
UnknownEntityAttributeException
- If no handler object is
registered for the specified attribute name.void setAttributes(String name, T attr) throws AccessDeniedException, WriteLockRequiredException, UnknownEntityAttributeException
name
- The name of the attributes.attr
- The new attributes.
ReadOnlyException
- If the entity is read only.
AccessDeniedException
- If the current Subject
does not
have write and execute access to the entity's parent directory.
WriteLockRequiredException
- If the client does not have a write
lock on the entity's parent directory.
UnknownEntityAttributeException
- If no handler object is
registered for the specified attribute name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |