com.sapportals.wcm.util.systemconfig

Class SystemPrincipal

java.lang.Object
  extended bycom.sapportals.wcm.util.systemconfig.SystemPrincipal
All Implemented Interfaces:
ISystemPrincipal

public class SystemPrincipal
extends Object
implements ISystemPrincipal

The (default) implementation of an ISystemPrincipal .


Constructor Summary
SystemPrincipal(String principalId, int principalType, boolean isLockBreaker, boolean hasServiceAcls, Set mappedPermissions, boolean canChangePermissions, boolean canChangeSystemProperties)
          Construct a SystemPrincipal
SystemPrincipal(String principalId, int principalType, boolean isLockBreaker, boolean hasServiceAcls, Set mappedPermissions, boolean canChangePermissions, boolean canChangeSystemProperties, boolean isAudited)
          Construct a SystemPrincipal.
 
Method Summary
 boolean canChangePermissions()
           
 boolean canChangeSystemProperties()
           
 List getAclPermissions()
          Deprecated. as of NW04.
 Set getMappedPermissions()
           
 com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
           
 boolean hasServiceAcls()
           
 boolean isAclOwner()
          Deprecated. as of NW04.
 boolean isAppLogViewer()
          Deprecated. as of NW04.
 boolean isAudited()
           
 boolean isLockBreaker()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPrincipal

public SystemPrincipal(String principalId,
                       int principalType,
                       boolean isLockBreaker,
                       boolean hasServiceAcls,
                       Set mappedPermissions,
                       boolean canChangePermissions,
                       boolean canChangeSystemProperties)
                throws WcmException,
                       com.sapportals.portal.security.usermanagement.UserManagementException
Construct a SystemPrincipal

Parameters:
principalId - TBD: Description of the incoming method parameter
principalType - TBD: Description of the incoming method parameter
isLockBreaker - TBD: Description of the incoming method parameter
hasServiceAcls - TBD: Description of the incoming method parameter
mappedPermissions - TBD: Description of the incoming method parameter
canChangePermissions - TBD: Description of the incoming method parameter
Throws:
WcmException - Exception raised in failure situation
com.sapportals.portal.security.usermanagement.UserManagementException - Exception raised in failure situation

SystemPrincipal

public SystemPrincipal(String principalId,
                       int principalType,
                       boolean isLockBreaker,
                       boolean hasServiceAcls,
                       Set mappedPermissions,
                       boolean canChangePermissions,
                       boolean canChangeSystemProperties,
                       boolean isAudited)
                throws WcmException,
                       com.sapportals.portal.security.usermanagement.UserManagementException
Construct a SystemPrincipal.

Attribute isAudited may only be false on users. Setting this attribute to false on groups or roles results in an IllegalArgumentException.

Method Detail

getPrincipal

public com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
Specified by:
getPrincipal in interface ISystemPrincipal
Returns:
the principal from the usermanagement

isAudited

public boolean isAudited()
Specified by:
isAudited in interface ISystemPrincipal
Returns:
true if the principal's actions should be audited

isLockBreaker

public boolean isLockBreaker()
Specified by:
isLockBreaker in interface ISystemPrincipal
Returns:
true if the principal is allowed to break foreign locks on resources

hasServiceAcls

public boolean hasServiceAcls()
Specified by:
hasServiceAcls in interface ISystemPrincipal
Returns:
true if the principal is should have all service acls

getMappedPermissions

public Set getMappedPermissions()
Specified by:
getMappedPermissions in interface ISystemPrincipal
Returns:
a list of strings containing the names of CM framework permissions which are granted to the principal on each resource

canChangePermissions

public boolean canChangePermissions()
Specified by:
canChangePermissions in interface ISystemPrincipal
Returns:
true iff the principal is allowed to change permissions on each resource

getAclPermissions

public List getAclPermissions()
Deprecated. as of NW04.

Specified by:
getAclPermissions in interface ISystemPrincipal
Returns:
aclPermissions

isAclOwner

public boolean isAclOwner()
Deprecated. as of NW04.

Specified by:
isAclOwner in interface ISystemPrincipal
Returns:
aclOwner

isAppLogViewer

public boolean isAppLogViewer()
Deprecated. as of NW04.

Specified by:
isAppLogViewer in interface ISystemPrincipal
Returns:
appLogViewer

canChangeSystemProperties

public boolean canChangeSystemProperties()
Specified by:
canChangeSystemProperties in interface ISystemPrincipal
Returns:
whether the principal is allowed to change certain system properties of resources which are otherwise readonly. These properties are: modified by, created by, modification date and creation date.


Copyright 2006 SAP AG Complete Copyright Notice