public class Privilege extends Object implements XmlSerializable
Privilege| Modifier and Type | Field and Description | 
|---|---|
| static Privilege | PRIVILEGE_ALLDAV:all is an aggregate privilege that contains the entire set of
 privileges that can be applied to the resource. | 
| static Privilege | PRIVILEGE_BINDThe DAV:bind privilege allows a method to add a new member URL to the
 specified collection (for example via PUT or MKCOL). | 
| static Privilege | PRIVILEGE_READThe read privilege controls methods that return information about the
 state of the resource, including the resource's properties. | 
| static Privilege | PRIVILEGE_READ_ACLThe DAV:read-acl privilege controls the use of PROPFIND to retrieve the
 DAV:acl property of the resource. | 
| static Privilege | PRIVILEGE_READ_CURRENT_USER_PRIVILEGE_SETThe DAV:read-current-user-privilege-set privilege controls the use of
 PROPFIND to retrieve the DAV:current-user-privilege-set property of the
 resource. | 
| static Privilege | PRIVILEGE_UNBINDThe DAV:unbind privilege allows a method to remove a member URL from the
 specified collection (for example via DELETE or MOVE). | 
| static Privilege | PRIVILEGE_UNLOCKThe DAV:unlock privilege controls the use of the UNLOCK method by a
 principal other than the lock owner (the principal that created a lock
 can always perform an UNLOCK). | 
| static Privilege | PRIVILEGE_WRITEThe write privilege controls methods that lock a resource or modify the
 content, dead properties, or (in the case of a collection) membership of
 the resource, such as PUT and PROPPATCH. | 
| static Privilege | PRIVILEGE_WRITE_ACLThe DAV:write-acl privilege controls use of the ACL method to modify the
 DAV:acl property of the resource. | 
| static Privilege | PRIVILEGE_WRITE_CONTENTThe DAV:write-content privilege controls methods that modify the content
 of an existing resource, such as PUT. | 
| static Privilege | PRIVILEGE_WRITE_PROPERTIESThe DAV:write-properties privilege controls methods that modify the dead
 properties of the resource, such as PROPPATCH. | 
| static String | XML_PRIVILEGE | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getName() | 
| Namespace | getNamespace() | 
| static Privilege | getPrivilege(Element privilege)Factory method to create/retrieve a  Privilegefrom the given
 DAV:privilege element. | 
| static Privilege | getPrivilege(String privilege,
            Namespace namespace)Factory method to create/retrieve a  Privilege. | 
| Element | toXml(Document document)Returns the xml representation of the implementing object as
  Element. | 
public static final String XML_PRIVILEGE
public static final Privilege PRIVILEGE_READ
public static final Privilege PRIVILEGE_WRITE
public static final Privilege PRIVILEGE_WRITE_PROPERTIES
public static final Privilege PRIVILEGE_WRITE_CONTENT
public static final Privilege PRIVILEGE_UNLOCK
public static final Privilege PRIVILEGE_READ_ACL
public static final Privilege PRIVILEGE_READ_CURRENT_USER_PRIVILEGE_SET
public static final Privilege PRIVILEGE_WRITE_ACL
public static final Privilege PRIVILEGE_BIND
public static final Privilege PRIVILEGE_UNBIND
public static final Privilege PRIVILEGE_ALL
public String getName()
Privilege.public Namespace getNamespace()
Privilege.public Element toXml(Document document)
XmlSerializableElement. The given Document is used
 as factory and represents the owner document of the returned DOM element.toXml in interface XmlSerializabledocument - to be used as factory.XmlSerializable.toXml(Document)public static Privilege getPrivilege(String privilege, Namespace namespace)
Privilege.privilege - namespace - public static Privilege getPrivilege(Element privilege) throws DavException
Privilege from the given
 DAV:privilege element.privilege - DavExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.