public class StatefulUserSessionData extends UserSessionData
UserSessionData which is based on a Session| Constructor and Description |
|---|
StatefulUserSessionData(java.lang.String channelName,
java.lang.String sessionToken,
java.lang.String remoteAddress,
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.
|
java.lang.String |
getRemoteAddress()
Returns the remote address, of the client accessing the application
|
Session |
getSession() |
TimeInterval |
getSessionTimeout() |
java.lang.String |
getSessionToken() |
Token |
getToken()
Return the current token only if
SessionData.getPrincipalType() return an instance of TokenPrincipalType. |
java.lang.String |
toString() |
checkConsistency, doGetConfigurationId, getAccessibleBasicGroups, getAuthenticatedUser, getChannelConfiguration, getGroup, getLoggedBasicUser, getPermissions, getProducts, getRequestData, getRoles, hasExpiredPassword, hasPendingAgreements, hasPermission, hasRequiredValue, hasRole, isVisible, manages, needsSecurityQuestion, relatesTobean, doGetConfigurationAccessor, getApplicationContext, getChannel, getConfiguration, getConfigurationEntity, getLoggedUser, getNetwork, getRawEntityManagerHandler, resolveNetworkIdpublic StatefulUserSessionData(java.lang.String channelName,
java.lang.String sessionToken,
java.lang.String remoteAddress,
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 java.lang.String getRemoteAddress()
SessionDatagetRemoteAddress in interface SessionDatagetRemoteAddress in class AbstractSessionDatapublic Session getSession()
public TimeInterval getSessionTimeout()
public java.lang.String getSessionToken()
public Token getToken()
SessionDataSessionData.getPrincipalType() return an instance of TokenPrincipalType. Otherwise it returns null.public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Long doGetLoggedBasicUserId()
doGetLoggedBasicUserId in class UserSessionData