public class LockInfoImpl extends Object implements org.apache.jackrabbit.spi.LockInfo, Serializable
LockInfoImpl implements a serializable LockInfo
based on another lock info.| Constructor and Description |
|---|
LockInfoImpl(String lockToken,
String lockOwner,
boolean isDeep,
boolean isSessionScoped,
long secondsRemaining,
boolean isLockOwner,
org.apache.jackrabbit.spi.NodeId nodeId)
Creates a new lock info for the given
lock info. |
LockInfoImpl(String lockToken,
String lockOwner,
boolean isDeep,
boolean isSessionScoped,
org.apache.jackrabbit.spi.NodeId nodeId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLockToken() |
org.apache.jackrabbit.spi.NodeId |
getNodeId() |
String |
getOwner() |
long |
getSecondsRemaining() |
boolean |
isDeep() |
boolean |
isLockOwner() |
boolean |
isSessionScoped() |
public LockInfoImpl(String lockToken, String lockOwner, boolean isDeep, boolean isSessionScoped, org.apache.jackrabbit.spi.NodeId nodeId)
LockInfoImpl(String, String, boolean, boolean, long, boolean, NodeId) instaed.lock info.lockToken - the lock tokenlockOwner - the lock ownerisDeep - whether this lock is deep or notisSessionScoped - whether this lock is session scoped or notnodeId - the node id of the locked node.public LockInfoImpl(String lockToken, String lockOwner, boolean isDeep, boolean isSessionScoped, long secondsRemaining, boolean isLockOwner, org.apache.jackrabbit.spi.NodeId nodeId)
lock info.lockToken - the lock tokenlockOwner - the lock ownerisDeep - whether this lock is deep or notisSessionScoped - whether this lock is session scoped or notsecondsRemaining - Number of seconds until the lock timeout is reached.isLockOwner - true if the calling session is lock
owner; false otherwise.nodeId - the node id of the locked node.public String getLockToken()
getLockToken in interface org.apache.jackrabbit.spi.LockInfopublic String getOwner()
getOwner in interface org.apache.jackrabbit.spi.LockInfopublic boolean isDeep()
isDeep in interface org.apache.jackrabbit.spi.LockInfopublic boolean isSessionScoped()
isSessionScoped in interface org.apache.jackrabbit.spi.LockInfopublic long getSecondsRemaining()
getSecondsRemaining in interface org.apache.jackrabbit.spi.LockInfopublic boolean isLockOwner()
isLockOwner in interface org.apache.jackrabbit.spi.LockInfopublic org.apache.jackrabbit.spi.NodeId getNodeId()
getNodeId in interface org.apache.jackrabbit.spi.LockInfoCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.