org.apache.jackrabbit.rmi.client
Class ClientLockManager

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientLockManager
All Implemented Interfaces:
LockManager

public class ClientLockManager
extends ClientObject
implements LockManager


Constructor Summary
ClientLockManager(Session session, RemoteLockManager remote, LocalAdapterFactory factory)
           
 
Method Summary
 void addLockToken(String lockToken)
           
 Lock getLock(String absPath)
           
 String[] getLockTokens()
           
 boolean holdsLock(String absPath)
           
 boolean isLocked(String absPath)
           
 Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)
           
 void removeLockToken(String lockToken)
           
 void unlock(String absPath)
           
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLockManager

public ClientLockManager(Session session,
                         RemoteLockManager remote,
                         LocalAdapterFactory factory)
Method Detail

getLockTokens

public String[] getLockTokens()
                       throws RepositoryException
Specified by:
getLockTokens in interface LockManager
Throws:
RepositoryException

addLockToken

public void addLockToken(String lockToken)
                  throws RepositoryException
Specified by:
addLockToken in interface LockManager
Throws:
RepositoryException

removeLockToken

public void removeLockToken(String lockToken)
                     throws RepositoryException
Specified by:
removeLockToken in interface LockManager
Throws:
RepositoryException

getLock

public Lock getLock(String absPath)
             throws RepositoryException
Specified by:
getLock in interface LockManager
Throws:
RepositoryException

holdsLock

public boolean holdsLock(String absPath)
                  throws RepositoryException
Specified by:
holdsLock in interface LockManager
Throws:
RepositoryException

isLocked

public boolean isLocked(String absPath)
                 throws RepositoryException
Specified by:
isLocked in interface LockManager
Throws:
RepositoryException

lock

public Lock lock(String absPath,
                 boolean isDeep,
                 boolean isSessionScoped,
                 long timeoutHint,
                 String ownerInfo)
          throws RepositoryException
Specified by:
lock in interface LockManager
Throws:
RepositoryException

unlock

public void unlock(String absPath)
            throws RepositoryException
Specified by:
unlock in interface LockManager
Throws:
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.