public class GuestSessionData extends AbstractSessionData
AbstractSessionData.SessionDataChannelAccessAccessorrequestData| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency()
Checks for consistency.
|
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) .
|
AccessClient |
getAccessClient() |
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() |
java.lang.Long |
getPublicRegisteredUserId() |
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 |
isGuest()
Returns whether the current session represents a guest
|
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 basicUser)
Returns whether the current user is related to (is allowed to view) the given user
|
void |
setPublicRegisteredUserId(java.lang.Long publicRegisteredUserId) |
java.lang.String |
toString() |
bean, doGetConfigurationAccessor, doGetPreferredLocales, getAccessChannel, 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, isLoggedIn, isManagerOf, isMember, isMemberOnly, isMultiNetworkAdminInGlobalMode, isNetworkAdmin, isOperator, isOwnerOf, isRestrictedOperator, isScript, isSystem, isTrusted, isUserManager, resolveNetworkId, runAsSystem, runAsSystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasPermission, isRestpublic void checkConsistency()
throws InvalidSessionDataException
SessionDatacheckConsistency in interface SessionDatacheckConsistency in class AbstractSessionDataInvalidSessionDataExceptionpublic java.lang.String getAccessChannelName()
SessionDatapublic AccessClient getAccessClient()
getAccessClient in interface org.cyclos.impl.access.UserPrincipalgetAccessClient in class AbstractSessionDatapublic 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 java.lang.Long getPublicRegisteredUserId()
public boolean hasRequiredValue(Permission permission, java.lang.Object value)
SessionDatapublic boolean isGuest()
SessionDataisGuest in interface SessionDataisGuest in class AbstractSessionDatapublic boolean isVisible(org.cyclos.impl.access.EntityCheck<SimpleEntity> entityCheck, SimpleEntity entity)
SessionDatapublic boolean manages(BasicUser user)
SessionDatapublic boolean relatesTo(BasicUser basicUser)
SessionDatapublic void setPublicRegisteredUserId(java.lang.Long publicRegisteredUserId)
public 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