com.sapportals.wcm.protocol.webdav.repository.acl

Interface IAce


public interface IAce

Represents a single grant or deny of a set of IPrivileges, a Access Control Entry (part of an Access Control List, see WDAcl).

A IAce has the following properties:

Copyright (c) SAP AG 2001-2005


Field Summary
static int DENY
          Type of ACE is denying privileges to principal
static int GRANT
          Type of ACE is granting privileges to principal
 
Method Summary
 com.sap.security.api.IPrincipal getPrincipal()
          Returns the principal whose access is controlled
 Set getPrivileges()
          Returns the List of privileges which are granted or denied
 int getType()
          Returns if this entry is GRANT or DENY
 boolean grants(IPrivilege privilege)
          Determine if privilege is granted by this ace
 boolean isGrant()
          Returns if this entry is GRANT
 boolean isInherited()
          Returns if this entry was inherited from another resource
 boolean isReadOnly()
          Returns if this entry is protected, e.g. cannot be changed.
 Element toElement(Document doc, com.sapportals.wcm.util.uri.IHierarchicalUri servletUri)
          Return a DOM Element representing this ACE as defined in the WebDAV Accesss Control Protocol Specification
 

Field Detail

GRANT

static final int GRANT
Type of ACE is granting privileges to principal

See Also:
Constant Field Values

DENY

static final int DENY
Type of ACE is denying privileges to principal

See Also:
Constant Field Values
Method Detail

getPrincipal

com.sap.security.api.IPrincipal getPrincipal()
Returns the principal whose access is controlled


getPrivileges

Set getPrivileges()
Returns the List of privileges which are granted or denied

Returns:
the list of IPrivileges in this ACE

getType

int getType()
Returns if this entry is GRANT or DENY

Returns:
the type of this ACE

grants

boolean grants(IPrivilege privilege)
Determine if privilege is granted by this ace

Parameters:
privilege - to check for
Returns:
if privileges is granted

isGrant

boolean isGrant()
Returns if this entry is GRANT

Returns:
if this ACE is granting privileges

isInherited

boolean isInherited()
Returns if this entry was inherited from another resource

Returns:
if this ACE was inherited

isReadOnly

boolean isReadOnly()
Returns if this entry is protected, e.g. cannot be changed.

Returns:
if this ACE is read only

toElement

Element toElement(Document doc,
                  com.sapportals.wcm.util.uri.IHierarchicalUri servletUri)
Return a DOM Element representing this ACE as defined in the WebDAV Accesss Control Protocol Specification

Parameters:
doc - the DOM Document to create the Element in
servletUri - base URI of servlet
Returns:
the created Element
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2012 SAP AG Complete Copyright Notice