org.apache.jackrabbit.spi.commons
Class LockInfoImpl

java.lang.Object
  extended by 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

LockInfoImpl implements a serializable LockInfo based on another lock info.

See Also:
Serialized Form

Constructor Summary
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. Use LockInfoImpl(String, String, boolean, boolean, long, boolean, NodeId) instaed.
 
Method Summary
 String getLockToken()
          
 org.apache.jackrabbit.spi.NodeId getNodeId()
          
 String getOwner()
          
 long getSecondsRemaining()
          
 boolean isDeep()
          
 boolean isLockOwner()
          
 boolean isSessionScoped()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockInfoImpl

public LockInfoImpl(String lockToken,
                    String lockOwner,
                    boolean isDeep,
                    boolean isSessionScoped,
                    org.apache.jackrabbit.spi.NodeId nodeId)
Deprecated. Use LockInfoImpl(String, String, boolean, boolean, long, boolean, NodeId) instaed.

Creates a new lock info for the given lock info.

Parameters:
lockToken - the lock token
lockOwner - the lock owner
isDeep - whether this lock is deep or not
isSessionScoped - whether this lock is session scoped or not
nodeId - 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 given lock info.

Parameters:
lockToken - the lock token
lockOwner - the lock owner
isDeep - whether this lock is deep or not
isSessionScoped - whether this lock is session scoped or not
secondsRemaining - 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.
Since:
JCR 2.0
Method Detail

getLockToken

public String getLockToken()

Specified by:
getLockToken in interface org.apache.jackrabbit.spi.LockInfo

getOwner

public String getOwner()

Specified by:
getOwner in interface org.apache.jackrabbit.spi.LockInfo

isDeep

public boolean isDeep()

Specified by:
isDeep in interface org.apache.jackrabbit.spi.LockInfo

isSessionScoped

public boolean isSessionScoped()

Specified by:
isSessionScoped in interface org.apache.jackrabbit.spi.LockInfo

getSecondsRemaining

public long getSecondsRemaining()

Specified by:
getSecondsRemaining in interface org.apache.jackrabbit.spi.LockInfo

isLockOwner

public boolean isLockOwner()

Specified by:
isLockOwner in interface org.apache.jackrabbit.spi.LockInfo

getNodeId

public org.apache.jackrabbit.spi.NodeId getNodeId()

Specified by:
getNodeId in interface org.apache.jackrabbit.spi.LockInfo


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.