org.alfresco.jcr.item
Class LockImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockImpl
public LockImpl(NodeImpl node)
- Constructor
- Parameters:
node
- node holding lock
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.