|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityCapability
This is the interface for an entity capability; a capability that adds functionality to an entity in some way. Entity capabilities may be valid for all sorts of entities or only for certain sorts of entities.
An entity capability is identified by an EntityCapabilityType
singleton instance.
An entity capability implementation for an entity can be had by calling
EntityView.getCapability(EntityCapabilityType)
or
FileSystem.getCapabilityForEntity(EntityView, EntityCapabilityType)
.
Capability classes are named according to a name standard. Their names have a prefix telling what kind of entities that can have the capability:
EntityCapabilityType
,
FileSystemCapability
Method Summary | |
---|---|
Entity |
getEntity()
Get the entity that this capability object is for. |
boolean |
isValid()
Check if this capability object is valid. |
Method Detail |
---|
boolean isValid() throws ReadLockRequiredException, AccessDeniedException
A capability object becomes invalid when its entity is deleted.
true
if this capability is still valid, false
if
not.
ReadLockRequiredException
- If the client does not have a read lock
for the viewed entity.
AccessDeniedException
- If the client does not have read access to
the entity.Entity getEntity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |