public abstract class UserSessionData extends AbstractSessionData
| Constructor and Description |
|---|
UserSessionData(RequestData requestData) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency()
Checks for consistency.
|
protected java.lang.Long |
doGetConfigurationId() |
protected abstract java.lang.Long |
doGetLoggedBasicUserId() |
java.util.Collection<BasicGroup> |
getAccessibleBasicGroups()
Returns the basic groups accessible by the current session
|
UserAuthVO |
getAuthenticatedUser()
Returns the user authentication data, or null if none
|
ChannelConfiguration |
getChannelConfiguration()
Returns the channel configuration accessor
|
Group |
getGroup()
Returns the group of the authenticated user, if any
|
BasicUser |
getLoggedBasicUser()
Returns the authenticated basic user, or null if none
|
protected java.util.Set<Permission> |
getPermissions() |
org.cyclos.impl.users.ProductsAccessor |
getProducts()
Returns the products accessor
|
RequestData |
getRequestData()
Returns data about the calling request.
|
protected java.util.Set<Role> |
getRoles() |
boolean |
hasExpiredPassword()
Returns whether the user's access password has expired
|
boolean |
hasPendingAgreements()
Returns whether the logged user has some pending agreements
|
boolean |
hasPermission(Permission permission)
Returns whether the current user has the given permission
|
boolean |
hasRequiredValue(Permission permission,
java.lang.Object value)
Returns whether the current user has access to the given required value for the given permission
|
boolean |
hasRole(Role role)
Returns whether the current user has the given role
|
boolean |
isVisible(org.cyclos.impl.access.EntityCheck<org.cyclos.entities.BaseEntity> entityCheck,
org.cyclos.entities.BaseEntity entity)
Returns whether the given entity is visible under the given entity check
|
boolean |
manages(BasicUser basicUser)
Returns whether the current user manages the given user
|
boolean |
needsSecurityQuestion()
Returns whether the user should register a security question
|
boolean |
relatesTo(BasicUser basicUser)
Returns whether the current user is related to (is allowed to view) the given user
|
bean, doGetConfigurationAccessor, getApplicationContext, getChannel, getConfiguration, getConfigurationEntity, getLoggedUser, getNetwork, getRawEntityManagerHandler, getRemoteAddress, resolveNetworkIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessClient, getChannelName, getPrincipalType, getTokenpublic UserSessionData(RequestData requestData)
public void checkConsistency()
throws InvalidSessionDataException
SessionDatacheckConsistency in interface SessionDatacheckConsistency in class AbstractSessionDataInvalidSessionDataExceptionpublic java.util.Collection<BasicGroup> getAccessibleBasicGroups()
SessionDatapublic UserAuthVO getAuthenticatedUser()
SessionDatapublic ChannelConfiguration getChannelConfiguration()
SessionDatapublic Group getGroup()
SessionDatapublic final BasicUser getLoggedBasicUser()
SessionDatapublic final org.cyclos.impl.users.ProductsAccessor getProducts()
SessionDatapublic RequestData getRequestData()
SessionDatapublic boolean hasExpiredPassword()
public boolean hasPendingAgreements()
public boolean hasPermission(Permission permission)
SessionDatapublic boolean hasRequiredValue(Permission permission, java.lang.Object value)
SessionDatapublic final boolean hasRole(Role role)
SessionDatapublic boolean isVisible(org.cyclos.impl.access.EntityCheck<org.cyclos.entities.BaseEntity> entityCheck,
org.cyclos.entities.BaseEntity entity)
SessionDatapublic boolean manages(BasicUser basicUser)
SessionDatapublic boolean needsSecurityQuestion()
public boolean relatesTo(BasicUser basicUser)
SessionDataprotected final java.lang.Long doGetConfigurationId()
doGetConfigurationId in class AbstractSessionDataprotected abstract java.lang.Long doGetLoggedBasicUserId()
protected java.util.Set<Permission> getPermissions()
protected java.util.Set<Role> getRoles()