public class LockManagerImpl extends Object implements LockManager
| Constructor and Description |
|---|
LockManagerImpl(SessionContext sessionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockToken(String lockToken) |
boolean |
canUnlock(NodeDelegate node)
Verifies if the current
sessionContext can unlock the specified node |
@NotNull Lock |
getLock(String absPath) |
@NotNull String[] |
getLockTokens() |
boolean |
holdsLock(String absPath) |
boolean |
isLocked(String absPath) |
@NotNull Lock |
lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo) |
void |
removeLockToken(String lockToken) |
void |
unlock(String absPath) |
public LockManagerImpl(SessionContext sessionContext)
@NotNull public @NotNull String[] getLockTokens() throws RepositoryException
getLockTokens in interface LockManagerRepositoryExceptionpublic void addLockToken(String lockToken) throws RepositoryException
addLockToken in interface LockManagerRepositoryExceptionpublic void removeLockToken(String lockToken) throws RepositoryException
removeLockToken in interface LockManagerRepositoryExceptionpublic boolean isLocked(String absPath) throws RepositoryException
isLocked in interface LockManagerRepositoryExceptionpublic boolean holdsLock(String absPath) throws RepositoryException
holdsLock in interface LockManagerRepositoryException@NotNull public @NotNull Lock getLock(String absPath) throws RepositoryException
getLock in interface LockManagerRepositoryException@NotNull public @NotNull Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException
lock in interface LockManagerRepositoryExceptionpublic void unlock(String absPath) throws RepositoryException
unlock in interface LockManagerRepositoryExceptionpublic boolean canUnlock(NodeDelegate node)
sessionContext can unlock the specified nodenode - the node state to checkCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.