com.sapportals.wcm.util.systemconfig

Class SystemPrincipal

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

public class SystemPrincipal
extends Object
implements ISystemPrincipal

The (default) implementation of an ISystemPrincipal .


Field Summary
static int IGROUP
           
static int IROLE
           
static int IUMEPRINCIPAL
           
static int IUSER
           
 
Constructor Summary
SystemPrincipal(int type, String principalId, boolean isLockBreaker, boolean hasServiceAcls, Set mappedPermissions, boolean canChangePermissions, boolean canChangeSystemProperties)
          Construct a SystemPrincipal
SystemPrincipal(int type, String principalId, 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()
          Deprecated. As of NetWeaver 7.1, replaced by getPrincipalUME()
 IPrincipal getPrincipalUME()
           
 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
 

Field Detail

IUSER

public static final int IUSER
See Also:
Constant Field Values

IGROUP

public static final int IGROUP
See Also:
Constant Field Values

IROLE

public static final int IROLE
See Also:
Constant Field Values

IUMEPRINCIPAL

public static final int IUMEPRINCIPAL
See Also:
Constant Field Values
Constructor Detail

SystemPrincipal

public SystemPrincipal(int type,
                       String principalId,
                       boolean isLockBreaker,
                       boolean hasServiceAcls,
                       Set mappedPermissions,
                       boolean canChangePermissions,
                       boolean canChangeSystemProperties)
                throws WcmException
Construct a SystemPrincipal

Parameters:
type -
principalId -
isLockBreaker -
hasServiceAcls -
mappedPermissions -
canChangePermissions -
canChangeSystemProperties -
Throws:
WcmException - Exception raised in failure situation
UserManagementException - Exception raised in failure situation

SystemPrincipal

public SystemPrincipal(int type,
                       String principalId,
                       boolean isLockBreaker,
                       boolean hasServiceAcls,
                       Set mappedPermissions,
                       boolean canChangePermissions,
                       boolean canChangeSystemProperties,
                       boolean isAudited)
                throws WcmException
Construct a SystemPrincipal

Parameters:
type -
principalId -
isLockBreaker -
hasServiceAcls -
mappedPermissions -
canChangePermissions -
canChangeSystemProperties -
isAudited - may only be false on users (setting this attribute to false on groups or roles results in an IllegalArgumentException)
Throws:
WcmException - Exception raised in failure situation
UserManagementException - Exception raised in failure situation
Method Detail

getPrincipal

public com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
Deprecated. As of NetWeaver 7.1, replaced by getPrincipalUME()

Specified by:
getPrincipal in interface ISystemPrincipal
Returns:
the principal from the usermanagement

getPrincipalUME

public IPrincipal getPrincipalUME()
Specified by:
getPrincipalUME in interface ISystemPrincipal
Returns:
the principal from the usermanagement
Since:
NetWeaver 7.1

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 iff the principal is allowed to break foreign locks on resources

hasServiceAcls

public boolean hasServiceAcls()
Specified by:
hasServiceAcls in interface ISystemPrincipal
Returns:
true iff 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.
Access Rights

This class can be accessed from:


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


Copyright 2014 SAP AG Complete Copyright Notice