|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.util.EntityAcceptingEntities
public final class EntityAcceptingEntities
This contains static methods for working with EntityAcceptingEntity
:s
and EntityView
:s.
The methods in this class will use the locking strategy for utility classes
described in EntityLock
.
EntityAcceptingEntity
,
EntityAcceptingEntityView
Method Summary | |
---|---|
static EntityView |
unroll(EntityAcceptingEntityView<?> eae)
Unroll the entity-accepting entity, i.e. |
static EntityView |
unrollOrNull(EntityAcceptingEntityView<?> eae)
Unroll the chain of entity-accepting entities, i.e. |
static boolean |
unrollTargetExists(EntityAcceptingEntityView<?> eae)
Check to see if the unroll target of the entity-accepting entity chain starting with the given entity-accepting entity exists. |
static DirectoryView |
unrollToDirectory(EntityAcceptingEntityView<?> eae)
Unroll a chain of entity-accepting entities to a directory. |
static DirectoryView |
unrollToDirectoryOrNull(EntityAcceptingEntityView<?> eae)
Unroll a chain of entity-accepting entities to a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EntityView unrollOrNull(EntityAcceptingEntityView<?> eae) throws CircularReferenceException, AccessDeniedException
To illustrate the difference between unroll
and
EntityAcceptingEntityView.dereferenceOrNull()
, use the following
directory contents:
l1 -> l2
(symbolic link)
l2 -> d1
(symbolic link)
d1
(not a symbolic link)
Unrolling l1
will return d1
, but calling dereferenceOrNull
on it will return l2
.
eae
- The first entity-accepting entity in the chain to unroll.
null
if there is no
entity in the location referenced by the last entity-accepting entity in
the chain.
CircularReferenceException
- If there is a circular reference
somewhere in the chain of entity-accepting entities.
AccessDeniedException
- If the calling thread does not have execute
access to an entity in the entity chain.unroll(EntityAcceptingEntityView)
,
EntityAcceptingEntityView.dereferenceOrNull()
public static EntityView unroll(EntityAcceptingEntityView<?> eae) throws EntityNotFoundException, CircularReferenceException, AccessDeniedException
unrollOrNull(EntityAcceptingEntityView)
.
eae
- The first entity-accepting entity in the entity-accepting
entity chain to unroll
EntityNotFoundException
- If there is not an entity in the location
referenced by the last entity-accepting entity in the chain.
CircularReferenceException
- If there is a circular reference
somewhere in the entity-accepting entity chain.
AccessDeniedException
- If the calling thread does not have execute
access to an entity in the entity chain.unrollOrNull(EntityAcceptingEntityView)
,
unrollTargetExists(EntityAcceptingEntityView)
,
unrollToDirectory(EntityAcceptingEntityView)
,
EntityAcceptingEntityView.dereferenceOrNull()
public static boolean unrollTargetExists(EntityAcceptingEntityView<?> eae) throws CircularReferenceException, AccessDeniedException
eae
- The first entity-accepting entity in the entity-accepting
entity chain to unroll
true
if the last entity-accepting entity in the entity
accepting entity chain references an existing entity.
AccessDeniedException
- If the calling thread does not have execute
access to an entity in the entity chain.
CircularReferenceException
- If there is a circular reference
somewhere in the entity-accepting entity chain.unroll(EntityAcceptingEntityView)
public static DirectoryView unrollToDirectoryOrNull(EntityAcceptingEntityView<?> eae) throws NotADirectoryException, CircularReferenceException, AccessDeniedException
eae
- An entity-accepting entity.
null
if the entity-accepting entity chain does not reference an
entity.
NotADirectoryException
- If the target of the entity-accepting
entity chain is not a directory.
CircularReferenceException
- If there is a circular reference
somewhere in the entity-accepting entity chain.
AccessDeniedException
- If the calling thread does not have execute
access to an entity in the entity chain.public static DirectoryView unrollToDirectory(EntityAcceptingEntityView<?> eae) throws EntityNotFoundException, NotADirectoryException, CircularReferenceException, AccessDeniedException
eae
- An entity-accepting entity.
Directory
referenced by the last entity-accepting
entity.
EntityNotFoundException
- If the last entity-accepting entity in
the chain references a nonexisting entity.
NotADirectoryException
- If the entity referenced by the last
entity in the chain is not a directory.
AccessDeniedException
- If the calling thread does not have execute
access to an entity in the entity chain.
CircularReferenceException
unroll(EntityAcceptingEntityView)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |