Package ch.ivyteam.ivy.security
Class SessionInfo
java.lang.Object
ch.ivyteam.ivy.security.SessionInfo
- All Implemented Interfaces:
Serializable
Contains information about a session stored in a
ClusterSessionsSnapshot- See Also:
- API:
- This is a public API.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionInfo(String sessionUserName, String clusterNode, boolean hasActiveSubstitutions, boolean absent) Deprecated, for removal: This API element is subject to removal in a future version.SessionInfo objects will be created by the Axon Ivy Runtime. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the cluster node the session originates from.Returns the name of the user which logged in to this session.booleanDeprecated, for removal: This API element is subject to removal in a future version.evaluate this for the given user on your ownbooleanisAbsent()Deprecated, for removal: This API element is subject to removal in a future version.evaluate this for the given user on your ownIUser.isAbsent()booleanReturns true if the session user is not known thus an anonymous session.booleanReturns true if the session belongs to the system user otherwise false.
-
Constructor Details
-
SessionInfo
@Deprecated(forRemoval=true, since="12.0.8") public SessionInfo(String sessionUserName, String clusterNode, boolean hasActiveSubstitutions, boolean absent) Deprecated, for removal: This API element is subject to removal in a future version.SessionInfo objects will be created by the Axon Ivy Runtime. Don't create them on your own.- API:
- This public API is available in Java.
-
-
Method Details
-
getSessionUserName
Returns the name of the user which logged in to this session. Returns null if Session user was unknown.- Returns:
- Name of the session user or null.
- See Also:
- API:
- This public API is available in Java.
-
getClusterNode
Returns the name of the cluster node the session originates from.- Returns:
- name of the cluster node, never null
- API:
- This public API is available in Java.
-
hasActiveSubstitutions
Deprecated, for removal: This API element is subject to removal in a future version.evaluate this for the given user on your own- Returns:
- always false
- See Also:
- API:
- This public API is available in Java.
-
isAbsent
Deprecated, for removal: This API element is subject to removal in a future version.evaluate this for the given user on your ownIUser.isAbsent()- Returns:
- always false
- See Also:
- API:
- This public API is available in Java.
-
isSystemSession
public boolean isSystemSession()Returns true if the session belongs to the system user otherwise false.- Returns:
- true if system false otherwise
- API:
- This public API is available in Java.
-
isSessionUserUnknown
public boolean isSessionUserUnknown()Returns true if the session user is not known thus an anonymous session. Otherwise false.- Returns:
- true for unknown session user false otherwise
- API:
- This public API is available in Java.
-