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