Interface LockInfo

All Known Implementing Classes:
LockInfoImpl

public interface LockInfo
LockInfo is used to transport lock information across the SPI boundary.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the lock token for this lock or null if the token should not be exposed to the API user.
    Returns the NodeId of the lock-holding Node.
    Returns the user ID of the user who owns this lock or some user defined information about the lock owner.
    long
    Returns the seconds remaining until the lock times out or (Long.MAX_VALUE if the timeout is unknown or infinite).
    boolean
    Returns true if the Lock is deep.
    boolean
    Returns true if the SessionInfo used to retrieve this LockInfo is the lock holder and thus enabled to refresh or release the lock.
    boolean
    Returns true if the Lock is session scoped.
  • Method Details

    • getLockToken

      String getLockToken()
      Returns the lock token for this lock or null if the token should not be exposed to the API user.
      Returns:
      lock token or null
      See Also:
    • getOwner

      String getOwner()
      Returns the user ID of the user who owns this lock or some user defined information about the lock owner.
      Returns:
      user ID of the user who owns this lock.
      See Also:
    • isDeep

      boolean isDeep()
      Returns true if the Lock is deep. False otherwise.
      Returns:
      true if the Lock is deep. False otherwise.
      See Also:
    • isSessionScoped

      boolean isSessionScoped()
      Returns true if the Lock is session scoped. False otherwise.
      Returns:
      true if the Lock is session scoped. False otherwise.
      See Also:
    • getSecondsRemaining

      long getSecondsRemaining()
      Returns the seconds remaining until the lock times out or (Long.MAX_VALUE if the timeout is unknown or infinite).
      Returns:
      number of seconds until the lock times out.
      Since:
      JCR 2.0
      See Also:
    • isLockOwner

      boolean isLockOwner()
      Returns true if the SessionInfo used to retrieve this LockInfo is the lock holder and thus enabled to refresh or release the lock.
      Returns:
      true if the SessionInfo used to retrieve this LockInfo is the lock holder.
      Since:
      JCR 2.0
      See Also:
    • getNodeId

      NodeId getNodeId()
      Returns the NodeId of the lock-holding Node.
      Returns:
      the NodeId of the lock-holding Node.