org.apache.webdav.lib.properties
Class AclProperty

java.lang.Object
  |
  +--org.apache.webdav.lib.BaseProperty
        |
        +--org.apache.webdav.lib.properties.AclProperty
All Implemented Interfaces:
Property

public class AclProperty
extends BaseProperty

This interface models the <D:acl> property, which is defined in the WebDAV Access Control Protocol specification.

Version:
$Revision: 1.6 $
Author:
Remy Maucherat, Dirk Verbeeck

Field Summary
static java.lang.String TAG_NAME
          The property name.
 
Fields inherited from class org.apache.webdav.lib.BaseProperty
element, response
 
Constructor Summary
AclProperty(ResponseEntity response, org.w3c.dom.Element element)
          Default constructor for the property.
 
Method Summary
 Ace[] getAces()
          Returns the Aces present in this acl property.
 java.lang.String getPropertyAsString()
          This method returns the namespace of the property.
protected  Ace parseAce(org.w3c.dom.Element element)
          Parse an ace.
protected  Privilege parsePrivilege(org.w3c.dom.Element privilegeElement)
          Parse a privilege element.
 
Methods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final java.lang.String TAG_NAME
The property name.
Constructor Detail

AclProperty

public AclProperty(ResponseEntity response,
                   org.w3c.dom.Element element)
Default constructor for the property.
Method Detail

getAces

public Ace[] getAces()
Returns the Aces present in this acl property.
Returns:
Ace[] An ace array or null when there is no ace.

parseAce

protected Ace parseAce(org.w3c.dom.Element element)
Parse an ace.

parsePrivilege

protected Privilege parsePrivilege(org.w3c.dom.Element privilegeElement)
Parse a privilege element.

getPropertyAsString

public java.lang.String getPropertyAsString()
Description copied from class: BaseProperty
This method returns the namespace of the property. Thus, for example, calling this method on a property such as <D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified> returns Tue, 05 Dec 2000 05:25:02.
Overrides:
getPropertyAsString in class BaseProperty