org.exoplatform.services.jcr.rmi.api.client
Class ClientLock

java.lang.Object
  extended by org.exoplatform.services.jcr.rmi.api.client.ClientObject
      extended by org.exoplatform.services.jcr.rmi.api.client.ClientLock
All Implemented Interfaces:
javax.jcr.lock.Lock

public class ClientLock
extends ClientObject
implements javax.jcr.lock.Lock

Local adapter for the JCR-RMI RemoteLock inteface. This class makes a remote lock locally available using the JCR Lock interface.

See Also:
Lock, RemoteLock

Constructor Summary
ClientLock(javax.jcr.Node node, RemoteLock remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote lock.
 
Method Summary
 java.lang.String getLockOwner()
          
 java.lang.String getLockToken()
          
 javax.jcr.Node getNode()
          
 boolean isDeep()
          
 boolean isLive()
          
 boolean isSessionScoped()
          
 void refresh()
          
 
Methods inherited from class org.exoplatform.services.jcr.rmi.api.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

ClientLock

public ClientLock(javax.jcr.Node node,
                  RemoteLock remote,
                  LocalAdapterFactory factory)
Creates a local adapter for the given remote lock.

Parameters:
node - current node
remote - remote lock
Method Detail

getNode

public javax.jcr.Node getNode()

Specified by:
getNode in interface javax.jcr.lock.Lock

getLockOwner

public java.lang.String getLockOwner()

Specified by:
getLockOwner in interface javax.jcr.lock.Lock

isDeep

public boolean isDeep()

Specified by:
isDeep in interface javax.jcr.lock.Lock

getLockToken

public java.lang.String getLockToken()

Specified by:
getLockToken in interface javax.jcr.lock.Lock

isLive

public boolean isLive()
               throws javax.jcr.RepositoryException

Specified by:
isLive in interface javax.jcr.lock.Lock
Throws:
javax.jcr.RepositoryException

refresh

public void refresh()
             throws javax.jcr.RepositoryException

Specified by:
refresh in interface javax.jcr.lock.Lock
Throws:
javax.jcr.RepositoryException

isSessionScoped

public boolean isSessionScoped()

Specified by:
isSessionScoped in interface javax.jcr.lock.Lock


Copyright © 2010 eXo Platform SAS. All Rights Reserved.