public class NullResourceLocksHolder extends Object
| Constructor and Description |
|---|
NullResourceLocksHolder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addLock(javax.jcr.Session session,
String path)
Locks the node.
|
void |
checkLock(javax.jcr.Session session,
String path,
List<String> tokens)
Checks if the node can be unlocked using current tokens.
|
boolean |
isLocked(javax.jcr.Session session,
String path)
Checks if the node is locked.
|
void |
removeLock(javax.jcr.Session session,
String path)
Removes lock from the node.
|
public String addLock(javax.jcr.Session session, String path) throws javax.jcr.lock.LockException
session - current sessionpath - node pathjavax.jcr.lock.LockException - LockExceptionpublic void removeLock(javax.jcr.Session session,
String path)
session - current sessionpath - nodepathpublic boolean isLocked(javax.jcr.Session session,
String path)
session - current sessionpath - node pathpublic void checkLock(javax.jcr.Session session,
String path,
List<String> tokens)
throws javax.jcr.lock.LockException
session - current sessionpath - node pathtokens - tokensjavax.jcr.lock.LockException - LockExceptionCopyright © 2016 eXo Platform SAS. All Rights Reserved.