public interface SessionLockManager extends SessionLifecycleListener
Modifier and Type | Method and Description |
---|---|
javax.jcr.lock.Lock |
addLock(org.exoplatform.services.jcr.impl.core.NodeImpl node,
boolean isDeep,
boolean isSessionScoped,
long timeOut)
Add lock for node.
|
void |
addLockToken(String lt)
Invoked by a session to inform that a lock token has been added.
|
boolean |
checkLocking(org.exoplatform.services.jcr.datamodel.NodeData data)
Checks this node, is it accessible according to possible locks.
|
org.exoplatform.services.jcr.impl.core.lock.LockImpl |
getLock(org.exoplatform.services.jcr.impl.core.NodeImpl node)
Returns the Lock object that applies to a node.
|
String[] |
getLockTokens()
Return lock tokens enshrined by session
|
boolean |
holdsLock(org.exoplatform.services.jcr.datamodel.NodeData node)
Returns
true if the node given holds a lock; otherwise returns false . |
boolean |
isLocked(org.exoplatform.services.jcr.datamodel.NodeData node)
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 |
boolean |
isLockHolder(org.exoplatform.services.jcr.impl.core.NodeImpl nodeImpl)
Returns
true if the specified session holds a lock on the given node; otherwise
returns false . |
void |
removeLockToken(String lt)
Invoked by a session to inform that a lock token has been removed.
|
onCloseSession
void addLockToken(String lt)
lt
- added lock tokenjavax.jcr.lock.Lock addLock(org.exoplatform.services.jcr.impl.core.NodeImpl node, boolean isDeep, boolean isSessionScoped, long timeOut) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
node
- - NodeImplisDeep
- - lock is deepisSessionScoped
- - lock is session scopedtimeOut
- - lock live timejavax.jcr.lock.LockException
javax.jcr.RepositoryException
org.exoplatform.services.jcr.impl.core.lock.LockImpl getLock(org.exoplatform.services.jcr.impl.core.NodeImpl node) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
node
- nodejavax.jcr.lock.LockException
- if this node is not lockedjavax.jcr.RepositoryException
Node.getLock()
String[] getLockTokens()
boolean holdsLock(org.exoplatform.services.jcr.datamodel.NodeData node) throws javax.jcr.RepositoryException
true
if the node given holds a lock; otherwise returns false
.node
- nodetrue
if the node given holds a lock; otherwise returns false
javax.jcr.RepositoryException
Node.holdsLock()
boolean isLocked(org.exoplatform.services.jcr.datamodel.NodeData node) throws javax.jcr.lock.LockException
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
node
- nodetrue
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.LockException
Node.isLocked()
boolean isLockHolder(org.exoplatform.services.jcr.impl.core.NodeImpl nodeImpl) throws javax.jcr.RepositoryException
true
if the specified session holds a lock on the given node; otherwise
returns false
. Note that isLockHolder(session, node)==true
implies holdsLock(node)==true
.nodeImpl
- node implementationfalse
javax.jcr.RepositoryException
void removeLockToken(String lt)
lt
- removed lock tokenboolean checkLocking(org.exoplatform.services.jcr.datamodel.NodeData data) throws javax.jcr.lock.LockException
false
will be returned.data
- - node that must be checkedjavax.jcr.lock.LockException
- - if lock engine exception happensCopyright © 2003-2018 eXo Platform SAS. All Rights Reserved.