public class SystemSessionData extends AbstractSessionData
AbstractSessionData.SessionDataChannelAccessAccessorrequestData| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Long |
doGetConfigurationId() |
protected org.cyclos.impl.users.ProductsAccessor |
doGetProducts()
Must be implemented to return a a valid
ProductsAccessor |
protected org.cyclos.impl.access.SessionDataSubjectId |
doGetSubjectId() |
protected boolean |
doHasPermission(Permission permission) |
java.lang.String |
getAccessChannelName()
Returns the internal name of the original channel (i.e the channel used to access Cyclos) .
|
java.util.Set<BasicGroup> |
getAccessibleBasicGroups()
Returns the basic groups accessible by the current session
|
UserAuthVO |
getAuthenticatedUser()
Returns the user authentication data, or null if none
|
java.lang.String |
getChannelName()
Returns the internal name of the current channel.
|
Group |
getGroup()
Returns the group of the authenticated user, if any
|
BasicUser |
getLoggedBasicUser()
Returns the authenticated basic user, or null if none
|
PrincipalType |
getPrincipalType() |
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 |
isSystem()
Returns whether the current session represents a system task
|
boolean |
isVisible(org.cyclos.impl.access.EntityCheck<SimpleEntity> entityCheck,
SimpleEntity entity)
Returns whether the given entity is visible under the given entity check
|
boolean |
manages(BasicUser user)
Returns whether the current user manages the given user.
|
boolean |
relatesTo(BasicUser user)
Returns whether the current user is related to (is allowed to view) the given user
|
java.lang.String |
toString() |
bean, checkConsistency, doGetConfigurationAccessor, doGetPreferredLocales, getAccessChannel, getAccessClient, getAccessToken, getAccount, getApplicationContext, getBasicUser, getChannel, getChannelAccessAccessor, getChannelConfiguration, getChannelSettingsAccessor, getConfiguration, getConfigurationEntity, getCustomFieldValue, getIdentityProvider, getLoggedOperator, getLoggedUser, getMobilePhone, getNetwork, getPin, getPrincipal, getProducts, getRawEntityManagerHandler, getRemoteAddress, getRequestData, getSession, getSubjectId, getToken, getTrustedDevice, hasPermission, isAdmin, isAdminOf, isAliasOperator, isBroker, isBrokerOf, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isManagerOf, isMember, isMemberOnly, isMultiNetworkAdminInGlobalMode, isNetworkAdmin, isOperator, isOwnerOf, isRestrictedOperator, isScript, isTrusted, isUserManager, resolveNetworkId, runAsSystem, runAsSystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasPermission, isRestpublic java.lang.String getAccessChannelName()
SessionDatapublic java.util.Set<BasicGroup> getAccessibleBasicGroups()
SessionDatapublic UserAuthVO getAuthenticatedUser()
SessionDatapublic java.lang.String getChannelName()
SessionDatapublic Group getGroup()
SessionDatapublic BasicUser getLoggedBasicUser()
SessionDatapublic PrincipalType getPrincipalType()
getPrincipalType in interface org.cyclos.impl.access.UserPrincipalgetPrincipalType in class AbstractSessionDatapublic boolean hasRequiredValue(Permission permission, java.lang.Object value)
SessionDatapublic boolean isSystem()
SessionDataisSystem in interface SessionDataisSystem in class AbstractSessionDatapublic boolean isVisible(org.cyclos.impl.access.EntityCheck<SimpleEntity> entityCheck, SimpleEntity entity)
SessionDatapublic boolean manages(BasicUser user)
SessionDatapublic boolean relatesTo(BasicUser user)
SessionDatapublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Long doGetConfigurationId()
doGetConfigurationId in class AbstractSessionDataprotected org.cyclos.impl.users.ProductsAccessor doGetProducts()
AbstractSessionDataProductsAccessordoGetProducts in class AbstractSessionDataprotected org.cyclos.impl.access.SessionDataSubjectId doGetSubjectId()
doGetSubjectId in class AbstractSessionDataprotected boolean doHasPermission(Permission permission)
doHasPermission in class AbstractSessionData