Class RefreshLockResult

java.lang.Object
com.ithit.webdav.server.RefreshLockResult

public final class RefreshLockResult extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    RefreshLockResult(boolean shared, boolean deep, long timeout, String owner)
    Initializes new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves information about the principal taking out a lock.
    long
    Retrieves timeout.
    boolean
    Indicates whether a lock is enforceable on the subtree.
    boolean
    Determines whether lock is shared.
    void
    setDeep(boolean deep)
    Sets flag which indicates whether the lock is enforceable on the subtree.
    void
    Sets information about the principal taking out a lock.
    void
    setShared(boolean shared)
    Sets shared flag of the lock.
    void
    setTimeout(long timeout)
    Sets lock expirate timeout.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RefreshLockResult

      public RefreshLockResult(boolean shared, boolean deep, long timeout, String owner)
      Initializes new instance.
      Parameters:
      shared - Determines whether lock is shared.
      deep - Indicates whether a lock is enforceable on the subtree.
      timeout - Timeout value in milliseconds. -1 means never.
      owner - Principal taking out a lock.
  • Method Details

    • isShared

      public boolean isShared()
      Determines whether lock is shared.
      Returns:
      Whether lock is shared.
    • setShared

      public void setShared(boolean shared)
      Sets shared flag of the lock.
      Parameters:
      shared - Whether the lock is shared.
    • isDeep

      public boolean isDeep()
      Indicates whether a lock is enforceable on the subtree.
      Returns:
      Whether a lock is enforceable on the subtree.
    • setDeep

      public void setDeep(boolean deep)
      Sets flag which indicates whether the lock is enforceable on the subtree.
      Parameters:
      deep - Whether a lock is enforceable on the subtree.
    • getTimeout

      public long getTimeout()
      Retrieves timeout.
      Returns:
      Timeout value in milliseconds.
    • setTimeout

      public void setTimeout(long timeout)
      Sets lock expirate timeout.
      Parameters:
      timeout - Timeout value in milliseconds. -1 means never.
    • getOwner

      public String getOwner()
      Retrieves information about the principal taking out a lock.
      Returns:
      Principal.
    • setOwner

      public void setOwner(String owner)
      Sets information about the principal taking out a lock.
      Parameters:
      owner - Principal.