|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.systemconfig.SystemConfig
Main entry point for retrieving the ISystemPrincipals.
| Method Summary | |
SystemPrincipal |
addSystemPrincipal(java.lang.String configID,
com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
java.lang.String[] permissions,
boolean canChangePermissions,
boolean hasServiceAcls,
boolean isLockBreaker)
create a new system principal with the given id for the given principal with the permissions specified. |
boolean |
canChangePermissions(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Check, if a given principal is a system principal which is authorized to change permissions. |
static SystemConfig |
getInstance()
Get an instance of the SystemConfig (singleton). |
ISystemPrincipalList |
getSystemGroups()
Get a list of all system groups. |
ISystemPrincipalList |
getSystemPrincipals()
Get a list of all system principals (users, groups and roles). |
ISystemPrincipalList |
getSystemRoles()
Get a list of all system roles. |
ISystemPrincipalList |
getSystemUsers()
Get a list of all system users. |
boolean |
hasPermission(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String permission)
Check if a given user is a system principal and has the requested permission. |
boolean |
hasPermissions(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String[] permissions)
Check if a given user is a system principal and has the requested permissions (mass call for hasPermissions(IUser, String[])). |
boolean |
hasServiceAcls(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Check, if a given principal has all service acls. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SystemConfig getInstance()
throws java.lang.Exception
SystemConfig (singleton).SystemConfigjava.lang.Exception - Exception raised in failure situationpublic ISystemPrincipalList getSystemUsers()
public ISystemPrincipalList getSystemGroups()
public ISystemPrincipalList getSystemRoles()
public ISystemPrincipalList getSystemPrincipals()
public boolean hasPermission(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String permission)
user - the IUser to checkpermission - the String with the requested
permission's nametrue if the user is a system principal and
has the specified permission
public boolean hasPermissions(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String[] permissions)
hasPermissions(IUser, String[])).user - the IUser to checkpermissions - an array of Strings with the requested
permissions' nametrue if the user is a system principal and
has all the specified permissionspublic boolean canChangePermissions(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
principal - the IUMPrincipal to checktrue if the user is a system principal which is
authorized to change permissions.public boolean hasServiceAcls(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
principal - the IUMPrincipal to checktrue if the user is a system principal which is
authorized to all service acls.
public SystemPrincipal addSystemPrincipal(java.lang.String configID,
com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
java.lang.String[] permissions,
boolean canChangePermissions,
boolean hasServiceAcls,
boolean isLockBreaker)
throws java.lang.Exception
configID - the id for the system principal to use in the configprincipal - the IUMPrincipal to create a system principal
config entry forpermissions - an array of permissions that are to be granted to
the system principalcanChangePermissions - the value for the system principal's
change_permissions flagisLockBreaker - the value for the system principal's
lock_breaker flaghasServiceAcls - the value for the system principal's
serviceacls flagjava.lang.Exception - if the configID or principal is empty, or if the
given configID already exists
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||