Class Privilege
java.lang.Object
org.apache.jackrabbit.webdav.security.Privilege
- All Implemented Interfaces:
XmlSerializable
Privilege-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrivilegeDAV:all is an aggregate privilege that contains the entire set of privileges that can be applied to the resource.static final PrivilegeThe DAV:bind privilege allows a method to add a new member URL to the specified collection (for example via PUT or MKCOL).static final PrivilegeThe read privilege controls methods that return information about the state of the resource, including the resource's properties.static final PrivilegeThe DAV:read-acl privilege controls the use of PROPFIND to retrieve the DAV:acl property of the resource.static final PrivilegeThe 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 final PrivilegeThe DAV:unbind privilege allows a method to remove a member URL from the specified collection (for example via DELETE or MOVE).static final PrivilegeThe 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 final PrivilegeThe 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 final PrivilegeThe DAV:write-acl privilege controls use of the ACL method to modify the DAV:acl property of the resource.static final PrivilegeThe DAV:write-content privilege controls methods that modify the content of an existing resource, such as PUT.static final PrivilegeThe DAV:write-properties privilege controls methods that modify the dead properties of the resource, such as PROPPATCH.static final String -
Method Summary
Modifier and TypeMethodDescriptiongetName()static PrivilegegetPrivilege(String privilege, Namespace namespace) Factory method to create/retrieve aPrivilege.static PrivilegegetPrivilege(Element privilege) Factory method to create/retrieve aPrivilegefrom the given DAV:privilege element.Returns the xml representation of the implementing object asElement.
-
Field Details
-
XML_PRIVILEGE
- See Also:
-
PRIVILEGE_READ
The read privilege controls methods that return information about the state of the resource, including the resource's properties. Affected methods include GET and PROPFIND and OPTIONS.- See Also:
-
PRIVILEGE_WRITE
The 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.- See Also:
-
PRIVILEGE_WRITE_PROPERTIES
The DAV:write-properties privilege controls methods that modify the dead properties of the resource, such as PROPPATCH. Whether this privilege may be used to control access to any live properties is determined by the implementation.- See Also:
-
PRIVILEGE_WRITE_CONTENT
The DAV:write-content privilege controls methods that modify the content of an existing resource, such as PUT.- See Also:
-
PRIVILEGE_UNLOCK
The 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).- See Also:
-
PRIVILEGE_READ_ACL
The DAV:read-acl privilege controls the use of PROPFIND to retrieve the DAV:acl property of the resource.- See Also:
-
PRIVILEGE_READ_CURRENT_USER_PRIVILEGE_SET
The DAV:read-current-user-privilege-set privilege controls the use of PROPFIND to retrieve the DAV:current-user-privilege-set property of the resource.- See Also:
-
PRIVILEGE_WRITE_ACL
The DAV:write-acl privilege controls use of the ACL method to modify the DAV:acl property of the resource.- See Also:
-
PRIVILEGE_BIND
The DAV:bind privilege allows a method to add a new member URL to the specified collection (for example via PUT or MKCOL). It is ignored for resources that are not collections.- See Also:
-
PRIVILEGE_UNBIND
The DAV:unbind privilege allows a method to remove a member URL from the specified collection (for example via DELETE or MOVE). It is ignored for resources that are not collections.- See Also:
-
PRIVILEGE_ALL
DAV:all is an aggregate privilege that contains the entire set of privileges that can be applied to the resource.- See Also:
-
-
Method Details
-
getName
- Returns:
- The local name of this
Privilege.
-
getNamespace
- Returns:
- The namespace of this
Privilege.
-
toXml
Description copied from interface:XmlSerializableReturns the xml representation of the implementing object asElement. The givenDocumentis used as factory and represents theowner documentof the returned DOM element.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
-
getPrivilege
Factory method to create/retrieve aPrivilege.- Parameters:
privilege-namespace-- Returns:
-
getPrivilege
Factory method to create/retrieve aPrivilegefrom the given DAV:privilege element.- Parameters:
privilege-- Returns:
- Throws:
DavException
-