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