|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.property.AbstractDavProperty org.apache.jackrabbit.webdav.lock.SupportedLock
public class 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. |
Element |
toXml(Document document)
Creates an XML element that represents the <supportedlock> tag. |
Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
---|
equals, getName, hashCode, isInvisibleInAllprop |
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 Element toXml(Document document)
toXml
in interface XmlSerializable
toXml
in class AbstractDavProperty
document
-
XmlSerializable.toXml(Document)
public Object getValue()
DavProperty.getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |