|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.entityfs.util.lock.cmd.LockCommandUtil
public final class LockCommandUtil
Utility class with static methods for acquiring locks.
Method Summary | |
---|---|
static Collection<LockCommand> |
getLockCommandCollection(LockCommand... cmds)
Get a collection containing all supplied lock commands. |
static Collection<LockCommand> |
getLockCommandsForAccessControls(Entity... ents)
Get the lock commands required for acquiring the locks required for performing access controls on the supplied entities. |
static Collection<LockCommand> |
getLockCommandsForAccessControlsOrNull(Entity... ents)
Get the lock commands required for acquiring the locks required for performing access controls on the supplied entities. |
static LockCollection |
lock(Collection<? extends LockCommand> cmds)
Use the file system's LockCommandExecutor to execute all supplied
lock commands. |
static LockCollection |
lock(LockCommand... cmds)
Use the file system's LockCommandExecutor to execute all supplied
lock commands. |
static LockCollection |
lockForAccessControllingMethod(Collection<? extends LockCommand> cmds,
Entity... ents)
Execute the supplied lock commands and lock all necessary locks for performing access controls on the supplied entities. |
static LockCollection |
lockForAccessControllingMethod(LockCommand[] cmds,
Entity... ents)
Execute the supplied lock commands and lock all necessary locks for performing access controls on the supplied entities. |
static LockCollection |
lockForAccessControllingMethod(LockCommand cmd,
Entity... ents)
Execute the supplied lock command and lock all necessary locks for performing access controls on the supplied entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Collection<LockCommand> getLockCommandCollection(LockCommand... cmds)
cmds
- The lock commands. May be empty.
null
if the supplied array
was empty.public static Collection<LockCommand> getLockCommandsForAccessControlsOrNull(Entity... ents)
ents
- The entities to perform access controls on. May be empty or
null
.
null
if no locking is
required.public static Collection<LockCommand> getLockCommandsForAccessControls(Entity... ents)
ents
- The entities to perform access controls on. May be empty or
null
.
public static LockCollection lock(Collection<? extends LockCommand> cmds)
LockCommandExecutor
to execute all supplied
lock commands.
cmds
- The lock commands to execute. May be null
.
lockForAccessControllingMethod(Collection, Entity[])
public static LockCollection lock(LockCommand... cmds)
LockCommandExecutor
to execute all supplied
lock commands.
cmds
- The lock commands to execute.
lockForAccessControllingMethod(LockCommand[], Entity...)
public static LockCollection lockForAccessControllingMethod(LockCommand[] cmds, Entity... ents)
cmds
- The lock commands to execute. May be null
.ents
- The entities to acquire locks for future authorization
controls on. May be empty.
lock(Collection)
,
lockForAccessControllingMethod(Collection, Entity[])
,
lockForAccessControllingMethod(LockCommand, Entity[])
public static LockCollection lockForAccessControllingMethod(LockCommand cmd, Entity... ents) throws NullPointerException
cmd
- The lock command to execute.ents
- The entities to acquire locks for future authorization
controls on. May be empty.
NullPointerException
- If cmd
is null
.lock(Collection)
,
lockForAccessControllingMethod(Collection, Entity[])
,
lockForAccessControllingMethod(LockCommand[], Entity[])
public static LockCollection lockForAccessControllingMethod(Collection<? extends LockCommand> cmds, Entity... ents)
cmds
- The lock commands to execute. May be null
.ents
- The entities to acquire locks for future authorization
controls on. May be empty.
lock(Collection)
,
lockForAccessControllingMethod(LockCommand[], Entity[])
,
lockForAccessControllingMethod(LockCommand, Entity[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |