com.sapportals.portal.pcd.gl

Interface IPermissionCheckAcl

All Known Subinterfaces:
IAcl

public interface IPermissionCheckAcl

Definition of an Access Control List object.

This interface defines an Access Control List object (ACL object). It is a list of Access Control Entries (ACEs) which contain the permission.

This interface is not intended to be implemented by clients.


Method Summary
 List getAclEntries()
          This method returns a list of ACE objects which are assigned to current ACL object.
 List getAclEntries(Object principal)
          This method returns a list of ACE objects which are assigned to current ACL object concerning a specific user (principal).
 String getObjectId()
          Returns object id of the acl.
 List getOwners()
          Returns a list of ACL owners (com.sap.security.api.IPrincipal).
 boolean isAllowed(Object principal, String permission)
          This method checks if an user (principal) is authorised for a specific permission.
 

Method Detail

getAclEntries

List getAclEntries()
This method returns a list of ACE objects which are assigned to current ACL object.

Returns:
a list of ACEa (@linkIAclEntry)

getAclEntries

List getAclEntries(Object principal)
This method returns a list of ACE objects which are assigned to current ACL object concerning a specific user (principal).

Parameters:
principal - user (principal) (com.sap.security.api.IPrincipal).
Returns:
a list of ACEs (IAclEntry).

getOwners

List getOwners()
Returns a list of ACL owners (com.sap.security.api.IPrincipal).

Returns:
List

isAllowed

boolean isAllowed(Object principal,
                  String permission)
This method checks if an user (principal) is authorised for a specific permission.

Parameters:
principal - user (principal) (com.sap.security.api.IPrincipal).
permission - checked permission.
Returns:
true when the action is allowed (the user has permission), otherwise false.

getObjectId

String getObjectId()
Returns object id of the acl.

Returns:
String
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS [sap.com] tc/epbc/pcd/pars/srvgldeprecated api BC-PIN-PCD
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api - EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2011 SAP AG Complete Copyright Notice