Package lumis.portal.authentication
Class SessionConfig
- java.lang.Object
-
- lumis.portal.authentication.SessionConfig
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
@StableMinor(version="15.0", sinceVersion="4.0") public final class SessionConfig extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
Stores user session information.- Since:
- 4.0.6
- Version:
- $Revision: 25512 $ $Date: 2023-03-15 14:34:00 -0300 (Wed, 15 Mar 2023) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionConfig()
Deprecated.Since 4.0.8, the SessionConfig should not be created using this constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SessionConfig
clone()
static SessionConfig
getCurrentSessionConfig()
Returns the current session config object.java.util.Locale
getLocale()
UserConfig
getUserConfig()
Returns theUserConfig
associated with this session, cached inside this instance.java.lang.String
getUserId()
Gets the user id associated with this session.java.lang.String
getUserSessionId()
void
setLocale(java.util.Locale locale)
void
setUserSessionId(java.lang.String userSessionId)
Deprecated.Since 4.0.8, you should obtain the session config instance already constructed fromgetCurrentSessionConfig()
or a method inIAuthenticationManager
and there is no need to set the userSessionId.
-
-
-
Constructor Detail
-
SessionConfig
@Deprecated public SessionConfig()
Deprecated.Since 4.0.8, the SessionConfig should not be created using this constructor. Instead obtain it by callinggetCurrentSessionConfig()
or the methods available inIAuthenticationManager
.- Since:
- 4.0.0
-
-
Method Detail
-
getUserSessionId
public java.lang.String getUserSessionId()
- Returns:
- Returns the userSessionId.
-
setUserSessionId
@Deprecated public void setUserSessionId(java.lang.String userSessionId)
Deprecated.Since 4.0.8, you should obtain the session config instance already constructed fromgetCurrentSessionConfig()
or a method inIAuthenticationManager
and there is no need to set the userSessionId.- Parameters:
userSessionId
- The userSessionId to set.
-
getLocale
public java.util.Locale getLocale()
- Returns:
- Returns the locale.
-
setLocale
public void setLocale(java.util.Locale locale)
- Parameters:
locale
- The locale to set.
-
getUserConfig
public UserConfig getUserConfig() throws PortalException
Returns theUserConfig
associated with this session, cached inside this instance. The value returned may not reflect changes occurred since the start of this session.- Returns:
- the UserConfig associated with this session.
- Throws:
PortalException
- Since:
- 11.0.0
-
getUserId
public java.lang.String getUserId() throws PortalException
Gets the user id associated with this session.- Returns:
- the user id associated with this session.
- Throws:
PortalException
- if it was not possible to obtain the userId for this SessionConfig.- Since:
- 4.0.8
-
getCurrentSessionConfig
public static SessionConfig getCurrentSessionConfig()
Returns the current session config object.- Returns:
- the current session config object.
- Since:
- 4.0.7
-
clone
protected SessionConfig clone()
- Overrides:
clone
in classjava.lang.Object
-
-