Class NullResourceLocksHolder
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.lock.NullResourceLocksHolder
-
public class NullResourceLocksHolder extends Object
Created by The eXo Platform SAS .- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Constructor Summary
Constructors Constructor Description NullResourceLocksHolder()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddLock(javax.jcr.Session session, String path)Locks the node.voidcheckLock(javax.jcr.Session session, String path, List<String> tokens)Checks if the node can be unlocked using current tokens.booleanisLocked(javax.jcr.Session session, String path)Checks if the node is locked.voidremoveLock(javax.jcr.Session session, String path)Removes lock from the node.
-
-
-
Method Detail
-
addLock
public String addLock(javax.jcr.Session session, String path) throws javax.jcr.lock.LockException
Locks the node.- Parameters:
session- current sessionpath- node path- Returns:
- thee lock token key
- Throws:
javax.jcr.lock.LockException-LockException
-
removeLock
public void removeLock(javax.jcr.Session session, String path)Removes lock from the node.- Parameters:
session- current sessionpath- nodepath
-
isLocked
public boolean isLocked(javax.jcr.Session session, String path)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.LockExceptionChecks if the node can be unlocked using current tokens.- Parameters:
session- current sessionpath- node pathtokens- tokens- Throws:
javax.jcr.lock.LockException-LockException
-
-