com.sapportals.portal.prt.session

Interface IUserContext

All Superinterfaces:
com.sap.security.api.IPrincipal, com.sap.security.api.IUser, Principal, Serializable

public interface IUserContext
extends com.sap.security.api.IUser

The IUserContext defines the user view of the environment in which the Portal Component is running.

It allows a Portal component to access users specific resources available for it. The UserContext acts a wrapper for the true User Object of the Portal.


Field Summary
 
Fields inherited from interface com.sap.security.api.IUser
DEFAULT_ACCESSIBILITY_LEVEL, SCREENREADER_ACCESSIBILITY_LEVEL
 
Fields inherited from interface com.sap.security.api.IPrincipal
BYTE_TYPE, CREATED_BY, DATASOURCE, DEFAULT_NAMESPACE, DEFAULT_RELATION_NAMESPACE, DESCRIPTION, DISPLAYNAME, LAST_MODIFIED_BY, PRINCIPAL_CREATION_DATE, PRINCIPAL_MODIFY_DATE, PRINCIPAL_RELATION_MEMBER_ATTRIBUTE, PRINCIPAL_RELATION_PARENT_ATTRIBUTE, STRING_TYPE, TRANSIENT_NAMESPACE, UNIQUE_NAME
 
Method Summary
 String getLogonUid()
          Gets the logon id of this user.
 Object getUser()
          Deprecated. this object itself is a user oject.
 String getUserId()
          Deprecated. use getLogonUid()
 boolean isAdmin()
          Deprecated. this object itself is a user oject.
 boolean isAuthenticated()
          Return true if the user is authenticated in the User Management Service.
 
Methods inherited from interface com.sap.security.api.IUser
checkPermission, checkPermission, getAccessibilityLevel, getCellPhone, getCity, getCompany, getCountry, getCurrency, getDepartment, getEmail, getFax, getFirstName, getI18nFormatterFactory, getJobTitle, getLastName, getLocale, getParentGroups, getPersonID, getPhoto, getRoles, getSalutation, getState, getStreet, getTelephone, getTimeZone, getTitle, getTransientAttribute, getUid, getUniqueName, getUserAccounts, getUserAccountUniqueIDs, getUserFactory, getZip, hasPermission, hasPermission, isCompanyUser, isMemberOfGroup, isMemberOfRole, setTransientAttribute
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 
Methods inherited from interface com.sap.security.api.IPrincipal
created, equals, getAttribute, getAttributeNames, getAttributeNamespaces, getAttributeType, getBinaryAttribute, getDisplayName, getMessages, getParents, getUniqueID, hashCode, isExistenceChecked, isMutable, lastModified, refresh
 

Method Detail

getUserId

String getUserId()
Deprecated. use getLogonUid()

Gets the user id of this user. The user id may differ from logon id.

Returns:
The user id of the user.

getLogonUid

String getLogonUid()
Gets the logon id of this user.

Returns:
The logon id of the user.

isAuthenticated

boolean isAuthenticated()
Return true if the user is authenticated in the User Management Service. The information has to be provided by the User Management Service.


isAdmin

boolean isAdmin()
Deprecated. this object itself is a user oject.

Return true if the user has admin rights. The information has to be provided by the User Management Service.


getUser

Object getUser()
Deprecated. this object itself is a user oject.

Gets the user from the underlying user management implementation. This is anonymous and may only be used in conjunction with the current implementation of the user management.

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice