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
ConstructorDescriptionSessionInfo
(String sessionUserName, String clusterNode, boolean hasActiveSubstitutions, boolean absent) -
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.boolean
Returns true if this session was an active substitution for other usersboolean
isAbsent()
Returns true if the user was absent when the snapshot was taken.boolean
Returns true if the session user is not known thus an anonymous session.boolean
Returns true if the session belongs to the system user otherwise false.
-
Constructor Details
-
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
public boolean hasActiveSubstitutions()Returns true if this session was an active substitution for other users- Returns:
- true or false
- See Also:
- API:
- This public API is available in Java.
-
isAbsent
public boolean isAbsent()Returns true if the user was absent when the snapshot was taken.- Returns:
- true or 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.
-