Package org.cyclos.impl.access
Class StatefulUserSessionData
- java.lang.Object
-
- org.cyclos.impl.access.AbstractSessionData
-
- org.cyclos.impl.access.UserSessionData
-
- org.cyclos.impl.access.StatefulUserSessionData
-
- All Implemented Interfaces:
ProcessableForProxying,DelegatingUserPrincipal,RoleContainer,UserPrincipal,SessionData
public class StatefulUserSessionData extends UserSessionData
AnUserSessionDatawhich is based on aSession
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.impl.access.AbstractSessionData
AbstractSessionData.SessionDataChannelAccessAccessor
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.access.AbstractSessionData
requestData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LongdoGetLoggedBasicUserId()protected UserPrincipaldoGetUserPrincipal()protected booleandoHasExpiredPassword()StringgetAccessChannelName()Returns the internal name of the original channel (i.e the channel used to access Cyclos) .UserAuthVOgetAuthenticatedUser()Returns the user authentication data, or null if noneStringgetChannelName()Returns the internal name of the current channel.IdentityProvidergetIdentityProvider()Returns theIdentityProviderused for this session only if the user was authenticated using such mechanism.PingetPin()Returns thePinused for this session only if the user was authenticated using such mechanism.StringgetRemoteAddress()Returns the remote address, of the client accessing the applicationSessiongetSession()Returns the session in case this session data performed a loginTimeIntervalgetSessionTimeout()StringgetSessionToken()voidreplaceSessionToken(String newSessionToken)protected booleanrequiresLoginConfirmation(CredentialsConfiguration credentials)Given the credentials configuration for login confirmation, determines whether it must be validated for the uservoidsetSessionTimeout(TimeInterval sessionTimeout)protected booleanshouldCheckRemoteAddress()StringtoString()-
Methods inherited from class org.cyclos.impl.access.UserSessionData
checkConsistency, doGetConfigurationId, doGetPreferredLocales, doGetProducts, doGetSubjectId, doHasPendingAgreements, doHasPermission, fallbackToDefaultLocales, getAccessClient, getAccessibleBasicGroups, getAccountType, getBasicUser, getChannelAccessAccessor, getCustomFieldValue, getGroup, getLoggedBasicUser, getLoginConfirmation, getMobilePhone, getPermissions, getPrincipal, getPrincipalType, getRoles, getToken, getTrustedDevice, getUserPrincipal, hasExpiredPassword, hasPendingAgreements, hasRequiredValue, isAdmin, isAdminOf, isAliasOperator, isBroker, isBrokerOf, isGlobalAdmin, isLoggedIn, isMember, isNetworkAdmin, isOperator, isOwnerOf, isRestrictedOperator, isVisible, manages, relatesTo, resolveProductsAccessor, returnPendingPasswords
-
Methods inherited from class org.cyclos.impl.access.AbstractSessionData
bean, doGetConfigurationAccessor, getAccessChannel, getAccessToken, getApplicationContext, getChannel, getChannelConfiguration, getChannelSettingsAccessor, getConfiguration, getConfigurationEntity, getIpAddressService, getLoggedOperator, getLoggedUser, getNetwork, getProducts, getRawEntityManagerHandler, getRequestData, getSubjectId, hasPermission, isGlobalAdminInNetwork, isGuest, isManagerOf, isMemberOnly, isMultiNetworkAdminInGlobalMode, isScript, isSelf, isSystem, isTrusted, isUserManager, runAsSystem, runAsSystem, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.users.DelegatingUserPrincipal
getDelegate
-
Methods inherited from interface org.cyclos.impl.access.SessionData
getProxyClass, hasPermission, ifWraps, isRest
-
-
-
-
Method Detail
-
getAccessChannelName
public String getAccessChannelName()
Description copied from interface:SessionDataReturns the internal name of the original channel (i.e the channel used to access Cyclos) . Must be accessible outside transactions.
-
getAuthenticatedUser
public UserAuthVO getAuthenticatedUser()
Description copied from interface:SessionDataReturns the user authentication data, or null if none- Specified by:
getAuthenticatedUserin interfaceSessionData- Overrides:
getAuthenticatedUserin classUserSessionData
-
getChannelName
public String getChannelName()
Description copied from interface:SessionDataReturns the internal name of the current channel. Must be accessible outside transactions.
-
getIdentityProvider
public IdentityProvider getIdentityProvider()
Description copied from interface:SessionDataReturns theIdentityProviderused for this session only if the user was authenticated using such mechanism.- Specified by:
getIdentityProviderin interfaceSessionData- Overrides:
getIdentityProviderin classAbstractSessionData
-
getPin
public Pin getPin()
Description copied from interface:SessionDataReturns thePinused for this session only if the user was authenticated using such mechanism.- Specified by:
getPinin interfaceSessionData- Overrides:
getPinin classAbstractSessionData
-
getRemoteAddress
public String getRemoteAddress()
Description copied from interface:SessionDataReturns the remote address, of the client accessing the application- Specified by:
getRemoteAddressin interfaceSessionData- Overrides:
getRemoteAddressin classAbstractSessionData
-
getSession
public Session getSession()
Description copied from interface:SessionDataReturns the session in case this session data performed a login- Specified by:
getSessionin interfaceSessionData- Overrides:
getSessionin classAbstractSessionData
-
getSessionTimeout
public TimeInterval getSessionTimeout()
-
getSessionToken
public String getSessionToken()
-
replaceSessionToken
public void replaceSessionToken(String newSessionToken)
-
setSessionTimeout
public void setSessionTimeout(TimeInterval sessionTimeout)
-
doGetLoggedBasicUserId
protected Long doGetLoggedBasicUserId()
- Specified by:
doGetLoggedBasicUserIdin classUserSessionData
-
doGetUserPrincipal
protected UserPrincipal doGetUserPrincipal()
- Specified by:
doGetUserPrincipalin classUserSessionData
-
doHasExpiredPassword
protected boolean doHasExpiredPassword()
- Overrides:
doHasExpiredPasswordin classUserSessionData
-
requiresLoginConfirmation
protected boolean requiresLoginConfirmation(CredentialsConfiguration credentials)
Description copied from class:UserSessionDataGiven the credentials configuration for login confirmation, determines whether it must be validated for the user- Overrides:
requiresLoginConfirmationin classUserSessionData
-
shouldCheckRemoteAddress
protected boolean shouldCheckRemoteAddress()
- Overrides:
shouldCheckRemoteAddressin classAbstractSessionData
-
-