Class LockManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl
-
- All Implemented Interfaces:
LockManager
public class LockManagerImpl extends Object implements LockManager
-
-
Constructor Summary
Constructors Constructor Description LockManagerImpl(SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLockToken(String lockToken)booleancanUnlock(NodeDelegate node)Verifies if the currentsessionContextcan unlock the specified node@NotNull LockgetLock(String absPath)@NotNull String[]getLockTokens()booleanholdsLock(String absPath)booleanisLocked(String absPath)@NotNull Locklock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)voidremoveLockToken(String lockToken)voidunlock(String absPath)
-
-
-
Constructor Detail
-
LockManagerImpl
public LockManagerImpl(SessionContext sessionContext)
-
-
Method Detail
-
getLockTokens
@NotNull public @NotNull String[] getLockTokens() throws RepositoryException
- Specified by:
getLockTokensin interfaceLockManager- Throws:
RepositoryException
-
addLockToken
public void addLockToken(String lockToken) throws RepositoryException
- Specified by:
addLockTokenin interfaceLockManager- Throws:
RepositoryException
-
removeLockToken
public void removeLockToken(String lockToken) throws RepositoryException
- Specified by:
removeLockTokenin interfaceLockManager- Throws:
RepositoryException
-
isLocked
public boolean isLocked(String absPath) throws RepositoryException
- Specified by:
isLockedin interfaceLockManager- Throws:
RepositoryException
-
holdsLock
public boolean holdsLock(String absPath) throws RepositoryException
- Specified by:
holdsLockin interfaceLockManager- Throws:
RepositoryException
-
getLock
@NotNull public @NotNull Lock getLock(String absPath) throws RepositoryException
- 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
public void unlock(String absPath) throws RepositoryException
- Specified by:
unlockin interfaceLockManager- Throws:
RepositoryException
-
canUnlock
public boolean canUnlock(NodeDelegate node)
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
-
-