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
ConstructorDescriptionRefreshLockResult
(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.long
Retrieves timeout.boolean
isDeep()
Indicates whether a lock is enforceable on the subtree.boolean
isShared()
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.
-
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.