Class LockManagerImpl
java.lang.Object
org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl
- All Implemented Interfaces:
LockManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLockToken
(String lockToken) boolean
canUnlock
(NodeDelegate node) Verifies if the currentsessionContext
can unlock the specified node@NotNull Lock
@NotNull String[]
boolean
boolean
@NotNull Lock
void
removeLockToken
(String lockToken) void
-
Constructor Details
-
LockManagerImpl
-
-
Method Details
-
getLockTokens
- Specified by:
getLockTokens
in interfaceLockManager
- Throws:
RepositoryException
-
addLockToken
- Specified by:
addLockToken
in interfaceLockManager
- Throws:
RepositoryException
-
removeLockToken
- Specified by:
removeLockToken
in interfaceLockManager
- Throws:
RepositoryException
-
isLocked
- Specified by:
isLocked
in interfaceLockManager
- Throws:
RepositoryException
-
holdsLock
- Specified by:
holdsLock
in interfaceLockManager
- Throws:
RepositoryException
-
getLock
- Specified by:
getLock
in interfaceLockManager
- Throws:
RepositoryException
-
lock
@NotNull public @NotNull Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException - Specified by:
lock
in interfaceLockManager
- Throws:
RepositoryException
-
unlock
- Specified by:
unlock
in interfaceLockManager
- Throws:
RepositoryException
-
canUnlock
Verifies if the currentsessionContext
can unlock the specified node- Parameters:
node
- the node state to check- Returns:
- true if the current sessionContext can unlock the specified node
-