|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.resolver.webdav.tree.helper.DefaultWebdavLock
public class DefaultWebdavLock
Default implementation of the WebdavLock
interface
This interface is designed to be implemented by clients. |
Constructor Summary | |
---|---|
DefaultWebdavLock()
Default constructor |
|
DefaultWebdavLock(WebdavLock aCopy)
Copy constructor that copies the properties of another lock. |
Method Summary | |
---|---|
DefaultWebdavContentHandler.LockScope |
getLockScope()
The scope of the lock |
java.net.URI |
getLockToken()
The URI of the lock token associated with this resource |
DefaultWebdavContentHandler.LockType |
getLockType()
The type of the lock |
javax.xml.transform.Source |
getOwner()
Description of the owner of the lock. |
long |
getTimeout()
The timeout associated with a lock in seconds or -1
for an infinite lock. |
boolean |
isInfiniteDepth()
Indicates if the lock locks the complete hierarchy or simply the resource itself. |
void |
setInfiniteDepth(boolean aInfiniteDepth)
Assigns the infinite depth flag. |
void |
setLockScope(DefaultWebdavContentHandler.LockScope aLockScope)
Sets the scope of this lock |
void |
setLockToken(java.net.URI aLockToken)
Assigns the lock token that identifies the lock |
void |
setLockType(DefaultWebdavContentHandler.LockType aLockType)
Assigns the type of the lock |
void |
setOwner(javax.xml.transform.Source aOwner)
Assigns the owner of the lock |
void |
setTimeout(long aTimeout)
Assigns a lock timeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWebdavLock()
public DefaultWebdavLock(WebdavLock aCopy)
aCopy
- token to copy, not null
Method Detail |
---|
public DefaultWebdavContentHandler.LockScope getLockScope()
WebdavCommand.Lock
getLockScope
in interface WebdavCommand.Lock
null
public java.net.URI getLockToken()
WebdavCommand.Lock
getLockToken
in interface WebdavCommand.Lock
public DefaultWebdavContentHandler.LockType getLockType()
WebdavCommand.Lock
getLockType
in interface WebdavCommand.Lock
null
public javax.xml.transform.Source getOwner()
WebdavCommand.Lock
null
. If given, the root element of the owner
document must be <DAV:owner> (the prefix is actually of no
importance as long as it identifies the DAV namespace).
getOwner
in interface WebdavCommand.Lock
null
public long getTimeout()
WebdavCommand.Lock
-1
for an infinite lock. Return 0
if the timeout is
unknown or unspecified.
getTimeout
in interface WebdavCommand.Lock
public boolean isInfiniteDepth()
WebdavCommand.Lock
isInfiniteDepth
in interface WebdavCommand.Lock
true
if the lock is valid for the complete
hierarchy, else false
public void setInfiniteDepth(boolean aInfiniteDepth)
infiniteDepth
- false
if the token only applies to a single
resource, true
otherwisepublic void setLockScope(DefaultWebdavContentHandler.LockScope aLockScope)
aLockScope
- the scopepublic void setLockToken(java.net.URI aLockToken)
aLockToken
- the lock token URIpublic void setLockType(DefaultWebdavContentHandler.LockType aLockType)
aLockType
- the lock typepublic void setOwner(javax.xml.transform.Source aOwner)
aOwner
- the ownerpublic void setTimeout(long aTimeout)
aTimeout
- the timeout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |