Class NullResourceLocksHolder
java.lang.Object
org.exoplatform.services.jcr.webdav.lock.NullResourceLocksHolder
Created by The eXo Platform SAS .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLocks the node.voidChecks if the node can be unlocked using current tokens.booleanChecks if the node is locked.voidremoveLock(javax.jcr.Session session, String path) Removes lock from the node.
-
Constructor Details
-
NullResourceLocksHolder
public NullResourceLocksHolder()Default constructor.
-
-
Method Details
-
addLock
Locks the node.- Parameters:
session- current sessionpath- node path- Returns:
- thee lock token key
- Throws:
javax.jcr.lock.LockException-LockException
-
removeLock
Removes lock from the node.- Parameters:
session- current sessionpath- nodepath
-
isLocked
Checks if the node is locked.- Parameters:
session- current sessionpath- node path- Returns:
- true if the node is locked false if not
-
checkLock
public void checkLock(javax.jcr.Session session, String path, List<String> tokens) throws javax.jcr.lock.LockException Checks if the node can be unlocked using current tokens.- Parameters:
session- current sessionpath- node pathtokens- tokens- Throws:
javax.jcr.lock.LockException-LockException
-