Class LockInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.LockInfoImpl
-
- All Implemented Interfaces:
Serializable,org.apache.jackrabbit.spi.LockInfo
public class LockInfoImpl extends Object implements org.apache.jackrabbit.spi.LockInfo, Serializable
LockInfoImplimplements a serializableLockInfobased on another lock info.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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 givenlockinfo.LockInfoImpl(String lockToken, String lockOwner, boolean isDeep, boolean isSessionScoped, org.apache.jackrabbit.spi.NodeId nodeId)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLockToken()org.apache.jackrabbit.spi.NodeIdgetNodeId()StringgetOwner()longgetSecondsRemaining()booleanisDeep()booleanisLockOwner()booleanisSessionScoped()
-
-
-
Constructor Detail
-
LockInfoImpl
public LockInfoImpl(String lockToken, String lockOwner, boolean isDeep, boolean isSessionScoped, org.apache.jackrabbit.spi.NodeId nodeId)
Deprecated.Creates a new lock info for the givenlockinfo.- Parameters:
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.
-
LockInfoImpl
public 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 givenlockinfo.- Parameters:
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-trueif the calling session is lock owner;falseotherwise.nodeId- the node id of the locked node.- Since:
- JCR 2.0
-
-
Method Detail
-
getLockToken
public String getLockToken()
- Specified by:
getLockTokenin interfaceorg.apache.jackrabbit.spi.LockInfo
-
getOwner
public String getOwner()
- Specified by:
getOwnerin interfaceorg.apache.jackrabbit.spi.LockInfo
-
isDeep
public boolean isDeep()
- Specified by:
isDeepin interfaceorg.apache.jackrabbit.spi.LockInfo
-
isSessionScoped
public boolean isSessionScoped()
- Specified by:
isSessionScopedin interfaceorg.apache.jackrabbit.spi.LockInfo
-
getSecondsRemaining
public long getSecondsRemaining()
- Specified by:
getSecondsRemainingin interfaceorg.apache.jackrabbit.spi.LockInfo
-
isLockOwner
public boolean isLockOwner()
- Specified by:
isLockOwnerin interfaceorg.apache.jackrabbit.spi.LockInfo
-
getNodeId
public org.apache.jackrabbit.spi.NodeId getNodeId()
- Specified by:
getNodeIdin interfaceorg.apache.jackrabbit.spi.LockInfo
-
-