@StableMinor(version="12.5", sinceVersion="4.0") public final class SessionConfig extends Object implements Cloneable, Serializable
Constructor and Description |
---|
SessionConfig()
Deprecated.
Since 4.0.8, the SessionConfig should not be
created using this constructor. Instead obtain it by calling
getCurrentSessionConfig() or the methods available in
IAuthenticationManager . |
Modifier and Type | Method and Description |
---|---|
protected SessionConfig |
clone() |
static SessionConfig |
getCurrentSessionConfig()
Returns the current session config object.
|
Locale |
getLocale() |
UserConfig |
getUserConfig()
Returns the
UserConfig associated with this session, cached inside this instance. |
String |
getUserId()
Gets the user id associated with this session.
|
String |
getUserSessionId() |
void |
setLocale(Locale locale) |
void |
setUserSessionId(String userSessionId)
Deprecated.
Since 4.0.8, you should obtain the session config
instance already constructed from
getCurrentSessionConfig()
or a method in IAuthenticationManager and there is no need to
set the userSessionId. |
@Deprecated public SessionConfig()
getCurrentSessionConfig()
or the methods available in
IAuthenticationManager
.public String getUserSessionId()
@Deprecated public void setUserSessionId(String userSessionId)
getCurrentSessionConfig()
or a method in IAuthenticationManager
and there is no need to
set the userSessionId.userSessionId
- The userSessionId to set.public Locale getLocale()
public void setLocale(Locale locale)
locale
- The locale to set.public UserConfig getUserConfig() throws PortalException
UserConfig
associated with this session, cached inside this instance. The value returned may
not reflect changes occurred since the start of this session.PortalException
public String getUserId() throws PortalException
PortalException
- if it was not possible to obtain the userId
for this SessionConfig.public static SessionConfig getCurrentSessionConfig()
protected SessionConfig clone()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.