Package com.ithit.webdav.server
Class RefreshLockResult
java.lang.Object
com.ithit.webdav.server.RefreshLockResult
Result of
Lock.refreshLock(java.lang.String, long) operation.-
Constructor Summary
ConstructorsConstructorDescriptionRefreshLockResult(boolean shared, boolean deep, long timeout, String owner) Initializes new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()Retrieves information about the principal taking out a lock.longRetrieves timeout.booleanisDeep()Indicates whether a lock is enforceable on the subtree.booleanisShared()Determines whether lock is shared.voidsetDeep(boolean deep) Sets flag which indicates whether the lock is enforceable on the subtree.voidSets information about the principal taking out a lock.voidsetShared(boolean shared) Sets shared flag of the lock.voidsetTimeout(long timeout) Sets lock expirate timeout.
-
Constructor Details
-
RefreshLockResult
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
-
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
Retrieves information about the principal taking out a lock.- Returns:
- Principal.
-
setOwner
Sets information about the principal taking out a lock.- Parameters:
owner- Principal.