@StableMinor(version="10.1", 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() |
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 String getUserId() throws PortalException
PortalException
- if it was not possible to obtain the userId
for this SessionConfig.public static SessionConfig getCurrentSessionConfig()
protected SessionConfig clone()
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.