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 LockManager
RepositoryException
public void addLockToken(String lockToken) throws RepositoryException
addLockToken
in interface LockManager
RepositoryException
public void removeLockToken(String lockToken) throws RepositoryException
removeLockToken
in interface LockManager
RepositoryException
public boolean isLocked(String absPath) throws RepositoryException
isLocked
in interface LockManager
RepositoryException
public boolean holdsLock(String absPath) throws RepositoryException
holdsLock
in interface LockManager
RepositoryException
@NotNull public @NotNull Lock getLock(String absPath) throws RepositoryException
getLock
in interface LockManager
RepositoryException
@NotNull public @NotNull Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException
lock
in interface LockManager
RepositoryException
public void unlock(String absPath) throws RepositoryException
unlock
in interface LockManager
RepositoryException
public boolean canUnlock(NodeDelegate node)
sessionContext
can unlock the specified nodenode
- the node state to checkCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.