public class ClientLockManager extends ClientObject implements LockManager
Constructor and Description |
---|
ClientLockManager(Session session,
RemoteLockManager remote,
LocalAdapterFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String lockToken) |
Lock |
getLock(String absPath) |
String[] |
getLockTokens() |
boolean |
holdsLock(String absPath) |
boolean |
isLocked(String absPath) |
Lock |
lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo) |
void |
removeLockToken(String lockToken) |
void |
unlock(String absPath) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientLockManager(Session session, RemoteLockManager remote, LocalAdapterFactory factory)
public 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 Lock getLock(String absPath) throws RepositoryException
getLock
in interface LockManager
RepositoryException
public boolean holdsLock(String absPath) throws RepositoryException
holdsLock
in interface LockManager
RepositoryException
public boolean isLocked(String absPath) throws RepositoryException
isLocked
in interface LockManager
RepositoryException
public 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
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.