eXo JCR :: Component :: Webdav Service 1.15.4-GA

org.exoplatform.services.jcr.webdav.lock
Class NullResourceLocksHolder

java.lang.Object
  extended by 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
NullResourceLocksHolder()
          Default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullResourceLocksHolder

public NullResourceLocksHolder()
Default constructor.

Method Detail

addLock

public String addLock(javax.jcr.Session session,
                      String path)
               throws javax.jcr.lock.LockException
Locks the node.

Parameters:
session - current session
path - 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 session
path - nodepath

isLocked

public boolean isLocked(javax.jcr.Session session,
                        String path)
Checks if the node is locked.

Parameters:
session - current session
path - 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 session
path - node path
tokens - tokens
Throws:
javax.jcr.lock.LockException - LockException

eXo JCR :: Component :: Webdav Service 1.15.4-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.