|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.activityspace.AClearModel com.plumtree.portalpages.browsing.login.LoginModel
public class LoginModel
This class implements the data handling for login.
Nested Class Summary | |
---|---|
static class |
LoginModel.TempData
This class is used to store the login data on the AClearModel. |
Field Summary | |
---|---|
static java.lang.String |
AUTH_SOURCE_USER_SEPARATOR
|
protected Redirect |
redirectAfterLogin
|
static java.lang.String |
STR_MVC_CLASS_NAME
|
Fields inherited from class com.plumtree.uiinfrastructure.activityspace.AClearModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
LoginModel()
|
Method Summary | |
---|---|
Redirect |
attemptLogin(IXPRequest request,
IWebData webData)
This method attempts to log the user into the portal. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
Redirect |
DoTasksBeforeLogout(IXPRequest request,
IWebData webData)
This method will make a call to the LoginHelper to process tasks that may be needed before the Logout has occurred. |
int |
GetAccessStyle()
|
int |
GetAllowDefaultAuthSourceMode()
Get Auth Source Mode |
int |
GetBrowserTokenExpiration()
Helper method to get the browser token cookie expiration value from the PTconfig files. |
boolean |
GetDoAttemptLogin()
|
boolean |
GetDoAttemptLogout()
|
java.lang.String |
GetName()
Return the name of the MVC object. |
java.lang.Object |
GetNewTempData()
This method returns a new temporary data object. |
Redirect |
GetRedirectAfterLogin()
|
IPTSession |
GetSession()
|
boolean |
GetShowAuthSources()
|
Redirect |
GetSubPortalRedirectAfterLogin()
|
void |
Logout(IWebData webData)
|
protected void |
ProcessFailedLogin(java.lang.String _strErrorMessage,
java.lang.String _strUserName,
java.lang.Object _oPreviousSessionValidAttribute)
This helper method raises a UI error and handles failed logins in the LoginModel. |
void |
SetAccessStyle(int i)
|
void |
SetAuthSource(java.lang.String s)
|
void |
SetDefaultAuthSourcePrefix(java.lang.String s)
|
void |
SetDoAttemptLogin(boolean b)
|
void |
SetDoAttemptLogout(boolean b)
|
void |
SetLoginAttempted(boolean b)
|
void |
SetLoginSucceeded(boolean b)
|
void |
SetRedirectAfterLogin(Redirect r)
|
void |
SetRememberPassword(boolean b)
|
void |
SetSession(IPTSession s)
|
void |
SetShowAuthSources(boolean b)
|
void |
SetToken(java.lang.String s)
|
void |
SetUserName(java.lang.String s)
|
void |
SetUserPass(java.lang.String s)
|
Methods inherited from class com.plumtree.uiinfrastructure.activityspace.AClearModel |
---|
CleanupAllData, CleanupTempData, GetTempData, Init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel |
---|
CleanupAllData, CleanupTempData, Init |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String AUTH_SOURCE_USER_SEPARATOR
protected Redirect redirectAfterLogin
Constructor Detail |
---|
public LoginModel()
Method Detail |
---|
public java.lang.Object Create()
AClearModel
Create
in interface IManagedObject
Create
in class AClearModel
IManagedObject.Create()
public Redirect DoTasksBeforeLogout(IXPRequest request, IWebData webData)
LoginHelper.DoTasksBeforeLogout(com.plumtree.uiinfrastructure.activityspace.AActivitySpace, IXPRequest, com.plumtree.uiinfrastructure.activityspace.IWebData)
public int GetAccessStyle()
GetAccessStyle
in interface ILoginModelRO
public int GetAllowDefaultAuthSourceMode()
GetAllowDefaultAuthSourceMode
in interface ILoginModelRO
public boolean GetDoAttemptLogin()
public boolean GetDoAttemptLogout()
public java.lang.String GetName()
IMVCObject
GetName
in interface ILoginModelRO
GetName
in interface IMVCObject
GetName
in class AClearModel
com.plumtree.xpshared.activityspace.IModel#GetName()
public java.lang.Object GetNewTempData()
AClearModel
GetNewTempData
in class AClearModel
public Redirect GetRedirectAfterLogin()
public IPTSession GetSession()
public boolean GetShowAuthSources()
GetShowAuthSources
in interface ILoginModelRO
public Redirect GetSubPortalRedirectAfterLogin()
public void SetAccessStyle(int i)
i
- public void SetDefaultAuthSourcePrefix(java.lang.String s)
i
- public void SetDoAttemptLogin(boolean b)
b
- public void SetDoAttemptLogout(boolean b)
b
- public void SetLoginAttempted(boolean b)
b
- public void SetLoginSucceeded(boolean b)
b
- public void SetRedirectAfterLogin(Redirect r)
r
- public void SetSession(IPTSession s)
s
- public void SetShowAuthSources(boolean b)
b
- public void Logout(IWebData webData)
webData
- public void SetAuthSource(java.lang.String s)
s
- public void SetRememberPassword(boolean b)
b
- public void SetToken(java.lang.String s)
s
- public void SetUserName(java.lang.String s)
s
- public void SetUserPass(java.lang.String s)
s
- public Redirect attemptLogin(IXPRequest request, IWebData webData)
webData
- Pass an IWebData. Cookies may be added to this
object if the user wishes to save the username and password.
protected void ProcessFailedLogin(java.lang.String _strErrorMessage, java.lang.String _strUserName, java.lang.Object _oPreviousSessionValidAttribute)
_strErrorMessage
- The failure error message._strUserName
- The user name._oPreviousSessionValidAttribute
- The previous value
of the USERSESSIONVALID attribute.public int GetBrowserTokenExpiration()
_tempData
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |