public class ScriptSessionData extends SystemSessionData
SessionData. It's a SystemSessionData but preserving the logged user| Constructor and Description |
|---|
ScriptSessionData(SessionData delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency()
Checks for consistency.
|
protected java.lang.Long |
doGetConfigurationId() |
AccessClient |
getAccessClient()
Return the current access client only if
SessionData.getPrincipalType() return an instance of AccessClientPrincipalType. |
UserAuthVO |
getAuthenticatedUser()
Returns the user authentication data, or null if none
|
SessionData |
getDelegate() |
Group |
getGroup()
Returns the group of the authenticated user, if any
|
BasicUser |
getLoggedBasicUser()
Returns the authenticated basic user, or null if none
|
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 |
hasRole(Role role)
Returns whether the current user has the given role
|
doGetProducts, getAccessibleBasicGroups, getChannelConfiguration, getChannelName, getInstance, getInstance, getInstance, getRequestData, hasPermission, hasRequiredValue, isVisible, manages, relatesTo, toStringbean, doGetConfigurationAccessor, doGetPreferredLocales, getApplicationContext, getChannel, getConfiguration, getConfigurationEntity, getLoggedUser, getNetwork, getProducts, getRawEntityManagerHandler, getRemoteAddress, resolveNetworkIdpublic ScriptSessionData(SessionData delegate)
public void checkConsistency()
throws InvalidSessionDataException
SessionDatacheckConsistency in interface SessionDatacheckConsistency in class AbstractSessionDataInvalidSessionDataExceptionpublic AccessClient getAccessClient()
SessionDataSessionData.getPrincipalType() return an instance of AccessClientPrincipalType. Otherwise it
returns null.getAccessClient in interface SessionDatagetAccessClient in class SystemSessionDatapublic UserAuthVO getAuthenticatedUser()
SessionDatagetAuthenticatedUser in interface SessionDatagetAuthenticatedUser in class SystemSessionDatapublic SessionData getDelegate()
public Group getGroup()
SessionDatagetGroup in interface SessionDatagetGroup in class SystemSessionDatapublic BasicUser getLoggedBasicUser()
SessionDatagetLoggedBasicUser in interface SessionDatagetLoggedBasicUser in class SystemSessionDatapublic PrincipalType getPrincipalType()
SessionDatagetPrincipalType in interface SessionDatagetPrincipalType in class SystemSessionDatapublic Token getToken()
SessionDataSessionData.getPrincipalType() return an instance of TokenPrincipalType. Otherwise it returns null.getToken in interface SessionDatagetToken in class SystemSessionDatapublic boolean hasRole(Role role)
SessionDatahasRole in interface SessionDatahasRole in class SystemSessionDataprotected java.lang.Long doGetConfigurationId()
doGetConfigurationId in class SystemSessionData