com.plumtree.uiinfrastructure.login
Class LoginResult

java.lang.Object
  extended by com.plumtree.uiinfrastructure.login.LoginResult

public class LoginResult
extends java.lang.Object

This class contains the result of an attempted login.


Field Summary
 boolean m_bIsGuest
          Whether or not the login is for the guest user
 boolean m_bRedirectedBeforeLogin
          Whether or not the login was redirected before the login attempt
 boolean m_bSuccess
          Whether or not the login was succesful
 Redirect m_Redirect
          The Redirect, if one of the PEIs returned a redirect.
 java.lang.String m_strError
          Localized login error message suitable for display to user.
 java.lang.Object m_UserSession
          The user session, if successful.
 
Constructor Summary
LoginResult(java.lang.Object userSession, Redirect redirect, boolean bIsGuestUser)
          Creates a new LoginResult object for a succesful login.
LoginResult(java.lang.Object userSession, Redirect redirect, java.lang.String strError, boolean bIsGuestUser)
          Creates a new LoginResult object for a failed login.
LoginResult(Redirect redirect)
          Creates a new LoginResult object for a login that was redirected before the login attempt.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_UserSession

public java.lang.Object m_UserSession
The user session, if successful. Null if login failed.


m_Redirect

public Redirect m_Redirect
The Redirect, if one of the PEIs returned a redirect. May be null.


m_bSuccess

public boolean m_bSuccess
Whether or not the login was succesful


m_bRedirectedBeforeLogin

public boolean m_bRedirectedBeforeLogin
Whether or not the login was redirected before the login attempt


m_bIsGuest

public boolean m_bIsGuest
Whether or not the login is for the guest user


m_strError

public java.lang.String m_strError
Localized login error message suitable for display to user. Will be null if attempt succesful.

Constructor Detail

LoginResult

public LoginResult(java.lang.Object userSession,
                   Redirect redirect,
                   boolean bIsGuestUser)
Creates a new LoginResult object for a succesful login.

Parameters:
userSession - The new user session object.
redirect - where to redirect the user to (specified by a login PEI).
bIsGuestUser -

LoginResult

public LoginResult(java.lang.Object userSession,
                   Redirect redirect,
                   java.lang.String strError,
                   boolean bIsGuestUser)
Creates a new LoginResult object for a failed login.

Parameters:
userSession - The new user session object.
redirect - where to redirect the user to (specified by a login PEI).
strError - An error message suitable for display to an end user (ie localized, and not revealing too much information). Should not be null.
bIsGuestUser -

LoginResult

public LoginResult(Redirect redirect)
Creates a new LoginResult object for a login that was redirected before the login attempt.

Parameters:
redirect - where to redirect the user to (specified by a login PEI).



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.