org.alfresco.jcr.item
Class LockImpl

java.lang.Object
  extended by org.alfresco.jcr.item.LockImpl
All Implemented Interfaces:
javax.jcr.lock.Lock

public class LockImpl
extends java.lang.Object
implements javax.jcr.lock.Lock

Alfresco implementation of a JCR Lock


Constructor Summary
LockImpl(NodeImpl node)
          Constructor
 
Method Summary
 java.lang.String getLockOwner()
           
 java.lang.String getLockToken()
           
 javax.jcr.Node getNode()
           
 javax.jcr.lock.Lock getProxy()
          Create proxied JCR Lock
 boolean isDeep()
           
 boolean isLive()
           
 boolean isSessionScoped()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockImpl

public LockImpl(NodeImpl node)
Constructor

Parameters:
node - node holding lock
Method Detail

getProxy

public javax.jcr.lock.Lock getProxy()
Create proxied JCR Lock

Returns:
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

getNode

public javax.jcr.Node getNode()
Specified by:
getNode 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

isSessionScoped

public boolean isSessionScoped()
Specified by:
isSessionScoped in interface javax.jcr.lock.Lock

refresh

public void refresh()
             throws javax.jcr.lock.LockException,
                    javax.jcr.RepositoryException
Specified by:
refresh in interface javax.jcr.lock.Lock
Throws:
javax.jcr.lock.LockException
javax.jcr.RepositoryException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.