Class Principal
java.lang.Object
org.apache.jackrabbit.webdav.security.Principal
- All Implemented Interfaces:
SecurityConstants,XmlSerializable
Principal encapsulates the DAV:principal element which identifies
the principal to which this ACE applies.
RFC 3744 defines the following structure for this element:
<!ELEMENT principal (href | all | authenticated | unauthenticated | property | self)>
-
Field Summary
FieldsFields inherited from interface org.apache.jackrabbit.webdav.security.SecurityConstants
ACL, ACL_RESTRICTIONS, ALTERNATE_URI_SET, CURRENT_USER_PRIVILEGE_SET, GROUP, GROUP_MEMBER_SET, GROUP_MEMBERSHIP, INHERITED_ACL_SET, NAMESPACE, OWNER, PRINCIPAL_COLLECTION_SET, PRINCIPAL_RESOURCETYPE, PRINCIPAL_URL, SUPPORTED_PRIVILEGE_SET -
Method Summary
Modifier and TypeMethodDescriptionstatic PrincipalcreateFromXml(Element principalElement) static Principalstatic PrincipalgetHref()static PrincipalgetHrefPrincipal(String href) static PrincipalgetPropertyPrincipal(DavPropertyName propertyName) static Principalstatic PrincipalReturns the xml representation of the implementing object asElement.
-
Field Details
-
XML_PRINCIPAL
- See Also:
-
-
Method Details
-
getHref
- Returns:
- href if this Principal is a href-typed principal,
nullotherwise.
-
getPropertyName
- Returns:
- propertyName if this Principal is a property-principal,
nullotherwise.
-
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:
-
getAllPrincipal
-
getAuthenticatedPrincipal
-
getUnauthenticatedPrincipal
-
getSelfPrincipal
-
getPropertyPrincipal
-
getHrefPrincipal
-
createFromXml
- Throws:
DavException
-