public class ServerLockManager extends ServerObject implements RemoteLockManager
ref
Constructor and Description |
---|
ServerLockManager(javax.jcr.lock.LockManager manager,
RemoteAdapterFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String lockToken) |
RemoteLock |
getLock(String absPath) |
String[] |
getLockTokens() |
boolean |
holdsLock(String absPath) |
boolean |
isLocked(String absPath) |
RemoteLock |
lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo) |
void |
removeLockToken(String lockToken) |
void |
unlock(String absPath) |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerLockManager(javax.jcr.lock.LockManager manager, RemoteAdapterFactory factory) throws RemoteException
RemoteException
public String[] getLockTokens() throws javax.jcr.RepositoryException
getLockTokens
in interface RemoteLockManager
javax.jcr.RepositoryException
public void addLockToken(String lockToken) throws javax.jcr.RepositoryException
addLockToken
in interface RemoteLockManager
javax.jcr.RepositoryException
public void removeLockToken(String lockToken) throws javax.jcr.RepositoryException
removeLockToken
in interface RemoteLockManager
javax.jcr.RepositoryException
public boolean isLocked(String absPath) throws javax.jcr.RepositoryException
isLocked
in interface RemoteLockManager
javax.jcr.RepositoryException
public boolean holdsLock(String absPath) throws javax.jcr.RepositoryException
holdsLock
in interface RemoteLockManager
javax.jcr.RepositoryException
public RemoteLock getLock(String absPath) throws javax.jcr.RepositoryException, RemoteException
getLock
in interface RemoteLockManager
javax.jcr.RepositoryException
RemoteException
public RemoteLock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws javax.jcr.RepositoryException, RemoteException
lock
in interface RemoteLockManager
javax.jcr.RepositoryException
RemoteException
public void unlock(String absPath) throws javax.jcr.RepositoryException
unlock
in interface RemoteLockManager
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.