public class JcrLockManager extends Object implements javax.jcr.lock.LockManager
JcrLockManager...| Modifier | Constructor and Description |
|---|---|
protected |
JcrLockManager(SessionImpl session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockToken(String lt)
Delegates this call to
WorkspaceManager.addLockToken(String). |
javax.jcr.lock.Lock |
getLock(String absPath) |
String[] |
getLockTokens()
Returns the lock tokens present on the
SessionInfo this
manager has been created with. |
boolean |
holdsLock(String absPath) |
boolean |
isLocked(String absPath) |
javax.jcr.lock.Lock |
lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo) |
void |
removeLockToken(String lt)
If the lock addressed by the token is session-scoped, this method will
throw a LockException, such as defined by JSR170 v.1.0.1 for
Session.removeLockToken(String).Otherwise the call is delegated to WorkspaceManager.removeLockToken(String). |
void |
unlock(String absPath) |
protected JcrLockManager(SessionImpl session)
public javax.jcr.lock.Lock getLock(String absPath) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
getLock in interface javax.jcr.lock.LockManagerjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionLockManager.getLock(String)public boolean isLocked(String absPath) throws javax.jcr.RepositoryException
isLocked in interface javax.jcr.lock.LockManagerjavax.jcr.RepositoryExceptionLockManager.isLocked(String)public boolean holdsLock(String absPath) throws javax.jcr.RepositoryException
holdsLock in interface javax.jcr.lock.LockManagerjavax.jcr.RepositoryExceptionLockManager.holdsLock(String)public javax.jcr.lock.Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws javax.jcr.RepositoryException
lock in interface javax.jcr.lock.LockManagerjavax.jcr.RepositoryExceptionLockManager.lock(String, boolean, boolean, long, String)public void unlock(String absPath) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
unlock in interface javax.jcr.lock.LockManagerjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionLockManager.unlock(String)public String[] getLockTokens() throws javax.jcr.RepositoryException
SessionInfo this
manager has been created with.getLockTokens in interface javax.jcr.lock.LockManagerjavax.jcr.RepositoryExceptionLockManager.getLockTokens()public void addLockToken(String lt) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
WorkspaceManager.addLockToken(String).
If this succeeds this method will inform all locks stored in the local
map in order to give them the chance to update their lock information.addLockToken in interface javax.jcr.lock.LockManagerjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionLockManager.addLockToken(String)public void removeLockToken(String lt) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
Session.removeLockToken(String).WorkspaceManager.removeLockToken(String).
All locks stored in the local lock map are notified by the removed
token in order have them updated their lock information.removeLockToken in interface javax.jcr.lock.LockManagerjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionLockManager.removeLockToken(String)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.