|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty<List<LockEntry>>
org.apache.jackrabbit.webdav.lock.SupportedLock
public class SupportedLock
The SupportedLock class encapsulates the lock capabilities
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<LockEntry> |
getSupportedLocks()
Returns an iterator over all supported locks. |
List<LockEntry> |
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<LockEntry> getSupportedLocks()
public Element toXml(Document document)
toXml in interface XmlSerializabletoXml in class AbstractDavProperty<List<LockEntry>>document -
XmlSerializable.toXml(Document)public List<LockEntry> getValue()
DavProperty.getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||