lumis.portal.authentication
Class SessionConfig

Package class diagram package SessionConfig
java.lang.Object
  extended by lumis.portal.authentication.SessionConfig
All Implemented Interfaces:
Serializable, Cloneable

@StableMinor(version="6.2",
             sinceVersion="4.0")
public final class SessionConfig
extends Object
implements Cloneable, Serializable

Stores user session information.

Since:
4.0.6
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionConfig

@Deprecated
public 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.

Since:
4.0.0
Method Detail

getUserSessionId

public String getUserSessionId()
Returns:
Returns the userSessionId.

setUserSessionId

@Deprecated
public 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.

Parameters:
userSessionId - The userSessionId to set.

getLocale

public Locale getLocale()
Returns:
Returns the locale.

setLocale

public void setLocale(Locale locale)
Parameters:
locale - The locale to set.

getUserId

public 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 class Object


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.