|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty
org.apache.jackrabbit.webdav.lock.SupportedLock
The SupportedLock class encapsulates the lock capabilties
of a resource. It is mainly responsible for generating the <supportedlock>
property.
| Field Summary |
| Constructor Summary | |
SupportedLock()
Creates a new empty SupportedLock property. |
|
| Method Summary | |
void |
addEntry(LockEntry entry)
Adds a capability to this lock support. |
void |
addEntry(Type type,
Scope scope)
Adds a capability to this lock support. |
Iterator |
getSupportedLocks()
Returns an iterator over all supported locks. |
Object |
getValue()
Returns the list of supported lock entries. |
boolean |
isSupportedLock(Type type,
Scope scope)
Returns true if this a lock with the given type and scope is supported. |
org.jdom.Element |
toXml()
Creates a JDOM element that represents the <supportedlock> tag. |
| Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
equals, getName, hashCode, isProtected |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SupportedLock()
| Method Detail |
public void addEntry(Type type,
Scope scope)
type - Can currently only be 'write'scope - Can currently only be 'exclusive' or 'shared'
IllegalArgumentException - If an argument contains invalid stringpublic void addEntry(LockEntry entry)
entry - specifying the type of lock that is supported by this entry.LockEntry
public boolean isSupportedLock(Type type,
Scope scope)
type - scope -
public Iterator getSupportedLocks()
public org.jdom.Element toXml()
toXml in interface DavPropertytoXml in class AbstractDavPropertyDavProperty.toXml()public Object getValue()
DavProperty.getValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||