public abstract class AbstractSessionData extends java.lang.Object implements SessionData
| Constructor and Description |
|---|
AbstractSessionData() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
bean(java.lang.Class<T> beanClass) |
void |
checkConsistency()
Checks for consistency.
|
protected ConfigurationAccessor |
doGetConfigurationAccessor() |
protected abstract java.lang.Long |
doGetConfigurationId() |
protected java.util.List<java.lang.String> |
doGetPreferredLocales() |
protected abstract org.cyclos.impl.users.ProductsAccessor |
doGetProducts()
Must be implemented to returna a valid
ProductsAccessor |
protected org.springframework.context.ApplicationContext |
getApplicationContext() |
Channel |
getChannel()
Returns the channel this session is using
|
ConfigurationAccessor |
getConfiguration()
Returns the configuration accessor
|
protected Configuration |
getConfigurationEntity() |
User |
getLoggedUser()
Returns the authenticated user, or null if none
|
Network |
getNetwork()
Returns the network this session is using, or null if as global system or administrator
|
org.cyclos.impl.users.ProductsAccessor |
getProducts()
Returns the products accessor
|
protected org.cyclos.impl.utils.persistence.RawEntityManagerHandler |
getRawEntityManagerHandler() |
java.lang.String |
getRemoteAddress()
Returns the remote address, of the client accessing the application
|
protected java.lang.Long |
resolveNetworkId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessClient, getAccessibleBasicGroups, getAuthenticatedUser, getChannelConfiguration, getChannelName, getGroup, getLoggedBasicUser, getPrincipalType, getRequestData, getToken, hasPermission, hasRequiredValue, hasRole, isVisible, manages, relatesTopublic void checkConsistency()
throws InvalidSessionDataException
SessionDatacheckConsistency in interface SessionDataInvalidSessionDataExceptionpublic final Channel getChannel()
SessionDatagetChannel in interface SessionDatapublic final ConfigurationAccessor getConfiguration()
SessionDatagetConfiguration in interface SessionDatapublic final User getLoggedUser()
SessionDatagetLoggedUser in interface SessionDatapublic final Network getNetwork()
SessionDatagetNetwork in interface SessionDatapublic final org.cyclos.impl.users.ProductsAccessor getProducts()
SessionDatagetProducts in interface SessionDatapublic java.lang.String getRemoteAddress()
SessionDatagetRemoteAddress in interface SessionDataprotected <T> T bean(java.lang.Class<T> beanClass)
protected ConfigurationAccessor doGetConfigurationAccessor()
protected abstract java.lang.Long doGetConfigurationId()
protected java.util.List<java.lang.String> doGetPreferredLocales()
protected abstract org.cyclos.impl.users.ProductsAccessor doGetProducts()
ProductsAccessorprotected org.springframework.context.ApplicationContext getApplicationContext()
protected final Configuration getConfigurationEntity()
protected org.cyclos.impl.utils.persistence.RawEntityManagerHandler getRawEntityManagerHandler()
protected java.lang.Long resolveNetworkId()