public interface LockStateManager
| Modifier and Type | Method and Description | 
|---|---|
void | 
addLockToken(String lt)
Invoked by a session to inform that a lock token has been added. 
 | 
void | 
checkLock(NodeState nodeState)
Check whether the given node state is locked by somebody else than the
 current session. 
 | 
javax.jcr.lock.Lock | 
getLock(NodeState nodeState)
Returns the Lock object that applies to a node. 
 | 
String[] | 
getLockTokens()  | 
boolean | 
isLocked(NodeState nodeState)
Returns  
true if this node is locked either as a result
 of a lock held by this node or by a deep lock on a node above this
 node; otherwise returns false. | 
javax.jcr.lock.Lock | 
lock(NodeState nodeState,
    boolean isDeep,
    boolean isSessionScoped)
Lock a node. 
 | 
javax.jcr.lock.Lock | 
lock(NodeState nodeState,
    boolean isDeep,
    boolean isSessionScoped,
    long timeoutHint,
    String ownerHint)
Lock a node. 
 | 
void | 
removeLockToken(String lt)
Invoked by a session to inform that a lock token has been removed. 
 | 
void | 
unlock(NodeState nodeState)
Removes the lock on a node. 
 | 
javax.jcr.lock.Lock lock(NodeState nodeState, boolean isDeep, boolean isSessionScoped) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState - isDeep - whether the lock applies to this node onlyisSessionScoped - whether the lock is session scopedjavax.jcr.lock.LockException - if this node already is locked, or some descendant
         node is locked and isDeep is truejavax.jcr.RepositoryExceptionNode.lock(boolean, boolean)javax.jcr.lock.Lock lock(NodeState nodeState, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerHint) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState - isDeep - whether the lock applies to this node onlyisSessionScoped - whether the lock is session scopedtimeoutHint - optional timeout hint.ownerHint - optional String defining the lock owner info to be
 displayed.javax.jcr.lock.LockException - if this node already is locked, or some descendant
         node is locked and isDeep is truejavax.jcr.RepositoryExceptionNode.lock(boolean, boolean)void unlock(NodeState nodeState) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState - javax.jcr.lock.LockException - if this node is not locked or the session does not
 have the correct lock tokenjavax.jcr.RepositoryExceptionNode.unlock()javax.jcr.lock.Lock getLock(NodeState nodeState) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState - javax.jcr.lock.LockException - if this node is not lockedjavax.jcr.RepositoryExceptionNode.getLock()boolean isLocked(NodeState nodeState) throws javax.jcr.RepositoryException
true if this node is locked either as a result
 of a lock held by this node or by a deep lock on a node above this
 node; otherwise returns false.nodeState - true if this node is locked either as a result
 of a lock held by this node or by a deep lock on a node above this
 node; otherwise returns falsejavax.jcr.RepositoryException - If an error occurs.Node.isLocked()void checkLock(NodeState nodeState) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
nodeState - javax.jcr.lock.LockException - if write access to the specified node is not allowedjavax.jcr.RepositoryException - if some other error occursString[] getLockTokens() throws javax.jcr.RepositoryException
Session this
 lock manager has been created for.javax.jcr.RepositoryExceptionvoid addLockToken(String lt) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
lt - added lock tokenjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionvoid removeLockToken(String lt) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
lt - removed lock tokenjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.