public class AccessClientSessionData extends UserSessionData
UserSessionData from an access client| Constructor and Description |
|---|
AccessClientSessionData(java.lang.String accessClientToken,
RequestData requestData) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Long |
doGetLoggedBasicUserId() |
AccessClient |
getAccessClient()
Return the current access client only if
SessionData.getPrincipalType() return an instance of AccessClientPrincipalType. |
java.lang.String |
getChannelName()
Returns the internal name of the current channel.
|
PrincipalType |
getPrincipalType()
Returns the principal type used for the current session.
|
Token |
getToken()
Return the current token only if
SessionData.getPrincipalType() return an instance of TokenPrincipalType. |
boolean |
hasPermission(Permission permission)
Returns whether the current user has the given permission
|
checkConsistency, doGetConfigurationId, getAccessibleBasicGroups, getAuthenticatedUser, getChannelConfiguration, getGroup, getLoggedBasicUser, getPermissions, getProducts, getRequestData, getRoles, hasExpiredPassword, hasPendingAgreements, hasRequiredValue, hasRole, isVisible, manages, needsSecurityQuestion, relatesTobean, doGetConfigurationAccessor, getApplicationContext, getChannel, getConfiguration, getConfigurationEntity, getLoggedUser, getNetwork, getRawEntityManagerHandler, getRemoteAddress, resolveNetworkIdpublic AccessClientSessionData(java.lang.String accessClientToken,
RequestData requestData)
public AccessClient getAccessClient()
SessionDataSessionData.getPrincipalType() return an instance of AccessClientPrincipalType. Otherwise it
returns null.public java.lang.String getChannelName()
SessionDatapublic PrincipalType getPrincipalType()
SessionDatapublic Token getToken()
SessionDataSessionData.getPrincipalType() return an instance of TokenPrincipalType. Otherwise it returns null.public boolean hasPermission(Permission permission)
SessionDatahasPermission in interface SessionDatahasPermission in class UserSessionDataprotected java.lang.Long doGetLoggedBasicUserId()
doGetLoggedBasicUserId in class UserSessionData