com.sap.sl.sdk.authoring.security
Interface Principal


public interface Principal

A principal represents a user or a user group defined on the CMS.
It is comprised of a name and a type.


Method Summary
 java.lang.String getName()
          Get the name of the principal (user or group) this object refers to.
 PrincipalType getType()
          Get the type of principal (user or group) this object refers to.
 void setName(java.lang.String value)
          Set the name of the principal (user or group) this object refers to.
 void setType(PrincipalType value)
          Set the type of principal (user or group) this object refers to.
 

Method Detail

getName

java.lang.String getName()
Get the name of the principal (user or group) this object refers to.

Returns:
A String containing the name of the principal.
Since:
14.4.0
See Also:
com.sap.sl.sdk.authoring.cms.UniverseSecurityCache#getPrincipals(SecurityProfile) UniverseSecurityCache.getPrincipals(SecurityProfile)}

setName

void setName(java.lang.String value)
Set the name of the principal (user or group) this object refers to.

Parameters:
value - A String containing the name of the principal
Since:
14.4.0
See Also:
com.sap.sl.sdk.authoring.cms.UniverseSecurityCache#getPrincipals(SecurityProfile) UniverseSecurityCache.getPrincipals(SecurityProfile)}

getType

PrincipalType getType()
Get the type of principal (user or group) this object refers to.

Returns:
PrincipalType.USER if the principal is a user, or PrincipalType.USER_GROUP if the principal is a group.
Since:
14.4.0
See Also:
com.sap.sl.sdk.authoring.security.PrincipalType PrincipalType}, com.sap.sl.sdk.authoring.cms.UniverseSecurityCache#getPrincipals(SecurityProfile) UniverseSecurityCache.getPrincipals(SecurityProfile)}

setType

void setType(PrincipalType value)
Set the type of principal (user or group) this object refers to.

Parameters:
value - PrincipalType.USER if the principal is a user, or PrincipalType.USER_GROUP if the principal is a group.
Since:
14.4.0
See Also:
com.sap.sl.sdk.authoring.security.PrincipalType PrincipalType}, com.sap.sl.sdk.authoring.cms.UniverseSecurityCache#getPrincipals(SecurityProfile) UniverseSecurityCache.getPrincipals(SecurityProfile)}


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.