com.ithit.webdav.server
Class RefreshLockResult

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

public final class RefreshLockResult
extends java.lang.Object

Result of Lock.refreshLock(java.lang.String, long) operation.


Constructor Summary
RefreshLockResult(boolean shared, boolean deep, long timeout, java.lang.String owner)
          Initializes new instance.
 
Method Summary
 java.lang.String getOwner()
          Retrieves information about the principal taking out a lock.
 long getTimeout()
          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 setOwner(java.lang.String owner)
          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 Detail

RefreshLockResult

public RefreshLockResult(boolean shared,
                         boolean deep,
                         long timeout,
                         java.lang.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 Detail

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 java.lang.String getOwner()
Retrieves information about the principal taking out a lock.

Returns:
principal.

setOwner

public void setOwner(java.lang.String owner)
Sets information about the principal taking out a lock.

Parameters:
owner - principal.


Copyright © 2009 ITHit. All Rights Reserved.