|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.cap.entityattrs.util.ECEntityAttributesUtil
public final class ECEntityAttributesUtil
This is a static utility class for working with ECEntityAttributes
capable entities.
ECNtfsAttributesUtil
,
ECUnixAttributesUtil
Method Summary | ||
---|---|---|
static EntityAttributes |
getAttributes(EntityView ev)
Get entity attributes for an entity. |
|
static ECEntityAttributes<?> |
getCapability(EntityView ev)
Get the ECEntityAttributes capability for an entity. |
|
static
|
setAttributes(EntityView ev,
T attr)
Set the entity attributes for an entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ECEntityAttributes<?> getCapability(EntityView ev) throws UnsupportedCapabilityException
ECEntityAttributes
capability for an entity.
Some implementations do not support entity attributes for all entities in a file system. Often, the root directory is not supported.
ev
- The entity.
UnsupportedCapabilityException
- If the entity does not support the
ECEntityAttributes
capability.public static EntityAttributes getAttributes(EntityView ev) throws UnsupportedCapabilityException, AccessDeniedException
This method temporarily acquires a read lock on the entity's parent directory.
ev
- The entity to get the attributes for.
UnsupportedCapabilityException
- If the entity does not support the
ECEntityAttributes
capability.
AccessDeniedException
- If the client does not have read access to
the entity's parent directory.public static <T extends EntityAttributes> void setAttributes(EntityView ev, T attr) throws UnsupportedCapabilityException, AccessDeniedException, ReadOnlyException
This method temporarily acquires a write lock on the entity's parent directory.
ev
- The entity to set the attributes for.attr
- The attributes.
UnsupportedCapabilityException
- If the entity does not support the
ECEntityAttributes
capability.
AccessDeniedException
- If the client does not have write access to
the entity's parent directory.
ReadOnlyException
- If the file system is read only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |