Class 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 Detail

      • LockInfoImpl

        public LockInfoImpl​(String lockToken,
                            String lockOwner,
                            boolean isDeep,
                            boolean isSessionScoped,
                            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
        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