|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAclManager
An IAclManager administers and persists Access Control Lists
(ACLs).
Abbreviations:
| Method Summary | |
|---|---|
boolean |
addSupportedPermission(IObjectType objectType,
IAclPermission permission)
assign a permission to an object type |
boolean[] |
areAclsUpToDate(IAcl[] acls)
check whether the ACLs are up to date (compared to the database) |
boolean |
changeAclID(IPrincipal caller,
IAcl acl,
String newID)
change the ID of an ACL ("rename") |
boolean |
changeAclID(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAcl acl,
String newID)
Deprecated. As of NetWeaver 7.1, replaced by changeAclID(com.sap.security.api.IPrincipal,IAcl,String) |
void |
changeMultipleAclIDs(String oldAclIdPrefix,
String newAclIdPrefix)
change the ID of multiple ACLs ("recursive rename") - does not change the root ACL (call changeAclID() for the root node previously to change the root ACL and to check for authorization) |
boolean[] |
checkPermissions(IAcl[] acls,
IPrincipal principal,
IAclPermission[] permissions)
check multiple ACL permissions |
boolean[] |
checkPermissions(IAcl[] acls,
com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission[] permissions)
Deprecated. As of NetWeaver 7.1, replaced by checkPermissions(IAcl[],com.sap.security.api.IPrincipal,IAclPermission[]) |
IAcl |
createAcl(IPrincipal owner,
String aclID,
IObjectType objectType)
create a new ACL |
IAcl |
createAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
String aclID,
IObjectType objectType)
Deprecated. As of NetWeaver 7.1, replaced by createAcl(com.sap.security.api.IPrincipal,String,IObjectType) |
IAclEntry |
createAclEntry(IPrincipal principal,
boolean negative,
IAclPermission permission,
int sortIndex,
boolean propagate)
create a new ACE to grant or deny a permission to a principal |
IAclEntry |
createAclEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
boolean negative,
IAclPermission permission,
int sortIndex,
boolean propagate)
Deprecated. As of NetWeaver 7.1, replaced by createAclEntry(com.sap.security.api.IPrincipal,boolean,IAclPermission,int,boolean) |
IAclPermission |
createPermission(String name)
create a new permission (the permission can not be used until it is assigned to an object type by calling the addSupportedPermission() method) |
void |
deletePrincipal(String principalID,
int principalType)
delete a principal - delete all ACEs which are subject to this principal - remove the principal from all ACL owner lists - if the principal is the last owner of an ACL, remove the ACL |
IAcl |
getAcl(String aclID,
long contextDBVersion)
get a specific ACL |
IAcl[] |
getAcls(String[] aclIDs)
get multiple ACLs; set the ACLs as values of the HashMap; if no ACL is assigned to an ID the value will be null |
List |
getAffectedAclIDs(IAclPermission permission)
get a list of all IDs of ACLs which use a permission |
IClusterCacheArea |
getCacheArea()
|
long |
getDBVersion()
Returns a value representing the state (timestamp or modifycounter) of all persisted acl entries. |
IAclPermission |
getPermission(String name)
get the IAclPermission object of the (supported) permission with a given name |
IObjectTypeList |
getSupportedObjectTypes()
get a list of supported object types |
IAclPermissionList |
getSupportedPermissions(IObjectType objectType)
get a list of permissions which are supported for a specific object type |
boolean |
isPermissionUsedInAcl(IAclPermission permission)
check whether a permission is used in an ACL |
boolean |
isReadOnly()
check whether IAclManager is read only (no creation or modification of ACLs is allowed) |
boolean |
removeAcl(IPrincipal caller,
IAcl acl)
remove a specific ACL |
boolean |
removeAcl(IPrincipal caller,
String aclID)
remove a specific ACL |
boolean |
removeAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAcl acl)
Deprecated. As of NetWeaver 7.1, replaced by removeAcl(com.sap.security.api.IPrincipal,IAcl) |
boolean |
removeAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
String aclID)
Deprecated. As of NetWeaver 7.1, replaced by removeAcl(com.sap.security.api.IPrincipal,String) |
void |
removeMultipleAcls(String aclIdPrefix)
remove multiple ACLs ("recursive deletion") - does not remove the root ACL (call removeAcl() for the root node previously to remove the root ACL and to check for authorization) |
boolean |
removePermission(IAclPermission permission)
remove a permission - a permission can only be removed if it is not predefined and not used in an ACL |
boolean |
removeSupportedPermission(IObjectType objectType,
IAclPermission permission)
remove the assignment of a permission to an object type |
void |
updatePrincipal(String principalID,
int principalType)
update a principal - remove related entries from caches |
| Method Detail |
|---|
IAclEntry createAclEntry(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
boolean negative,
IAclPermission permission,
int sortIndex,
boolean propagate)
throws AclPersistenceException,
InvalidClassException
createAclEntry(com.sap.security.api.IPrincipal,boolean,IAclPermission,int,boolean)
principal - the principalnegative - true if the ACE denies a permission, false if it grantspermission - the permissionsortIndex - the position of the ACE in the ACLpropagate - TBD: Description of the incoming method parameter
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
InvalidClassException - the permission was created by a foreign
resource acl manager
IAclEntry createAclEntry(IPrincipal principal,
boolean negative,
IAclPermission permission,
int sortIndex,
boolean propagate)
throws AclPersistenceException,
InvalidClassException
principal - the principalnegative - true if the ACE denies a permission, false if it grantspermission - the permissionsortIndex - the position of the ACE in the ACLpropagate - TBD: Description of the incoming method parameter
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
InvalidClassException - the permission was created by a foreign
resource acl manager
IAcl createAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
String aclID,
IObjectType objectType)
throws AclPersistenceException,
AclExistsException
createAcl(com.sap.security.api.IPrincipal,String,IObjectType)
owner - the initial owner of the ACLaclID - the ID of the new ACLobjectType - the type of object the ACL is for
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
AclExistsException - an ACL with the same ID already exists
IAcl createAcl(IPrincipal owner,
String aclID,
IObjectType objectType)
throws AclPersistenceException,
AclExistsException
owner - the initial owner of the ACLaclID - the ID of the new ACLobjectType - the type of object the ACL is for
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
AclExistsException - an ACL with the same ID already exists
IAcl getAcl(String aclID,
long contextDBVersion)
throws AclPersistenceException
aclID - ID of the ACLcontextDBVersion - TBD: Description of the incoming method parameter
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
IAcl[] getAcls(String[] aclIDs)
throws AclPersistenceException
aclIDs - IDs of the ACLs
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean[] checkPermissions(IAcl[] acls,
com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
IAclPermission[] permissions)
throws AclPersistenceException
checkPermissions(IAcl[],com.sap.security.api.IPrincipal,IAclPermission[])
acls - ACLs to checkprincipal - the user or grouppermissions - requested permissions
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean[] checkPermissions(IAcl[] acls,
IPrincipal principal,
IAclPermission[] permissions)
throws AclPersistenceException
acls - ACLs to checkprincipal - the user or grouppermissions - requested permissions
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean removeAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
String aclID)
throws AclPersistenceException,
NotAuthorizedException
removeAcl(com.sap.security.api.IPrincipal,String)
caller - a principal which must be an owner of the ACLaclID - ID of the ACL
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner of the ACL
boolean removeAcl(IPrincipal caller,
String aclID)
throws AclPersistenceException,
NotAuthorizedException
caller - a principal which must be an owner of the ACLaclID - ID of the ACL
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner of the ACL
boolean removeAcl(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAcl acl)
throws AclPersistenceException,
InvalidClassException,
NotAuthorizedException
removeAcl(com.sap.security.api.IPrincipal,IAcl)
caller - a principal which must be an owner of the ACLacl - the subject of removal
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner of the ACL
InvalidClassException - Exception raised in failure situation
boolean removeAcl(IPrincipal caller,
IAcl acl)
throws AclPersistenceException,
InvalidClassException,
NotAuthorizedException
caller - a principal which must be an owner of the ACLacl - the subject of removal
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner of the ACL
InvalidClassException - Exception raised in failure situation
void deletePrincipal(String principalID,
int principalType)
throws AclPersistenceException
principalID - the principal's IDprincipalType - type of the principal (from IUMPrincipal)
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
void updatePrincipal(String principalID,
int principalType)
throws AclPersistenceException
principalID - the principal's IDprincipalType - type of the principal (from IUMPrincipal)
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
IObjectTypeList getSupportedObjectTypes()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
IAclPermissionList getSupportedPermissions(IObjectType objectType)
throws AclPersistenceException
objectType - the object type
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
IAclPermission getPermission(String name)
throws AclPersistenceException
name - the name of the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean addSupportedPermission(IObjectType objectType,
IAclPermission permission)
throws AclPersistenceException,
PredefinedPermissionException
objectType - the object typepermission - the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
PredefinedPermissionException - the permission is predefined and
thus not allowed to be changed
boolean removeSupportedPermission(IObjectType objectType,
IAclPermission permission)
throws AclPersistenceException,
PredefinedPermissionException,
PermissionUsedException
objectType - the object typepermission - the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
PredefinedPermissionException - the permission is predefined and
thus not allowed to be changed
PermissionUsedException - Exception raised in failure situation
IAclPermission createPermission(String name)
throws AclPersistenceException,
PermissionExistsException
name - the permission name
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
PermissionExistsException - a permission with that name exists
already
boolean removePermission(IAclPermission permission)
throws AclPersistenceException,
PredefinedPermissionException,
PermissionUsedException
permission - the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
PredefinedPermissionException - the permission is predefined and
thus not allowed to be changed
PermissionUsedException - the permission is used in some ACL and
thus not allowed to be changed
boolean isPermissionUsedInAcl(IAclPermission permission)
throws AclPersistenceException
permission - the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
List getAffectedAclIDs(IAclPermission permission)
throws AclPersistenceException
permission - the permission
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean changeAclID(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
IAcl acl,
String newID)
throws AclPersistenceException,
NotAuthorizedException,
AclExistsException
changeAclID(com.sap.security.api.IPrincipal,IAcl,String)
caller - a principal which must be an owner of the ACLacl - the ACLnewID - the new ID of the ACL
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - Exception raised in failure situation
AclExistsException - Exception raised in failure situation
boolean changeAclID(IPrincipal caller,
IAcl acl,
String newID)
throws AclPersistenceException,
NotAuthorizedException,
AclExistsException
caller - a principal which must be an owner of the ACLacl - the ACLnewID - the new ID of the ACL
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
NotAuthorizedException - Exception raised in failure situation
AclExistsException - Exception raised in failure situation
void changeMultipleAclIDs(String oldAclIdPrefix,
String newAclIdPrefix)
throws AclPersistenceException,
AclExistsException
oldAclIdPrefix - prefix of the old ACL IDsnewAclIdPrefix - prefix of the new ACL IDs
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
AclExistsException - Exception raised in failure situation
void removeMultipleAcls(String aclIdPrefix)
throws AclPersistenceException
aclIdPrefix - prefix of the ACL IDs to be deleted
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean isReadOnly()
throws AclPersistenceException
AclPersistenceException - a problem with the storage where the
ACLs are persisted occurred
boolean[] areAclsUpToDate(IAcl[] acls)
throws AclPersistenceException
acls - the ACLs to check
AclPersistenceException - Exception raised in failure situationlong getDBVersion()
IClusterCacheArea getCacheArea()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||