com.plumtree.portalpages.browsing.portalsettings.password
Class PasswordAS

java.lang.Object
  extended by com.plumtree.uiinfrastructure.activityspace.AActivitySpace
      extended by com.plumtree.uiinfrastructure.form.AFormAS
          extended by com.plumtree.uiinfrastructure.editor.EditorAS
              extended by com.plumtree.portaluiinfrastructure.editor.PTEditorAS
                  extended by com.plumtree.portalpages.browsing.portalsettings.password.PasswordAS
All Implemented Interfaces:
IManagedObject, IMVCObject, IFormAS, IEnvironment

public class PasswordAS
extends PTEditorAS

Author:
DonH This activity space lets you change your password.

Field Summary
protected  boolean m_bExpiredSession
          Whether or not the current user session is an expired one.
protected  IPTSession m_ptPasswordUserSession
          The user session for the change password page - either the normal one stored on the HTTP session or an expired one stored separately.
static java.lang.String STR_MVC_CLASS_NAME
          MVC object name
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorAS
m_mEditorMenu, m_strModelMVCName, m_strModelName
 
Fields inherited from class com.plumtree.uiinfrastructure.form.AFormAS
JAVASCRIPT_GVAR_PTHELPSVRBASEURL, JAVASCRIPT_GVAR_PTIMGSVRIMGSURL, JAVASCRIPT_GVAR_SHAREDIMGSVRIMGSURL
 
Fields inherited from class com.plumtree.uiinfrastructure.activityspace.AActivitySpace
m_stringReferences
 
Constructor Summary
PasswordAS()
           
 
Method Summary
 boolean CheckBasicAccess(java.lang.String strPage, java.lang.String strControl, boolean bSameSpace)
          This method is called by the Interpreter at the beginning of every HTTP request to determine whether or not the current user has the security privileges necessary to view the requested page.
 boolean CheckValidUser()
          This helper method checks that we are a valid logged in native user, or a valid user with an expired password.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetEditorTitle()
          Returns the Editor main title.
 boolean GetIsExpiredSession()
           
 java.lang.String GetName()
          This method is used to identify the type of this space.
 java.lang.Object GetUserSession()
          Return the user's Session.
 void Init()
          Registers all the classes for this Activity Space.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.PTEditorAS
DisplayCommonJavaScript, GetRepostControlName
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorAS
DeleteSubEditorFromList, GetLeftMenu, GetPreviousPage, GetSubBanner, GoToSubEditor, SetCurrentPage, SetCurrentPage
 
Methods inherited from class com.plumtree.uiinfrastructure.activityspace.AActivitySpace
ChangeSubSpaceKey, CleanupAllData, CleanupTempData, DeleteSubSpace, GetAccessStyle, GetApplication, GetControl, GetControlExists, GetControlsEnumerator, GetCurrentFormData, GetCurrentHTTPRequest, GetCurrentHTTPResponse, GetCurrentNormalizedBaseURL, GetCurrentPage, GetCurrentRequestURL, GetHelpTopic, GetIsAccessStyleNonStandard, GetIsAccessStyleStandard, GetIsInPlaceRefreshDisplayOn, GetIsInPlaceRefreshEnabled, GetIsSecuredSpace, GetLanguage, GetLocale, GetModel, GetModelExists, GetModelsEnumerator, GetPage, GetPageExists, GetPagesEnumerator, GetParentSpace, GetParentSpaceID, GetParentSpaceName, GetPersistentSubSession, GetResourceManager, GetSpaceID, GetString, GetStyleSheetLinks, GetSubSession, GetSubSpace, GetSubSpaceExists, GetSubSpaceKey, GetSubSpacesEnumerator, GetTimeZone, GetVarPack, GetView, GetViewExists, GetViewsEnumerator, IsSubSpace, refString, RegisterControl, RegisterControl, RegisterModel, RegisterModel, RegisterPage, RegisterPage, RegisterSubSpace, RegisterView, RegisterView, ReInit, SetApplication, SetCurrentFormData, SetCurrentHTTPRequestResponseObjects, SetCurrentRequestURL, SetHelpTopic, SetIsASSecured, SetIsInPlaceRefreshDisplayOn, SetIsInPlaceRefreshEnabled, SetOverWriteSubSpaces, SetParentSpace, SetPersistentSubSession, SetSpaceID, SetSubSession, SetSubSpaceKey, SetTrackCurrentPage, SetUserSession, unrefString, UnRegisterControl, UnRegisterModel, UnRegisterPage, UnRegisterView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
MVC object name

See Also:
Constant Field Values

m_ptPasswordUserSession

protected IPTSession m_ptPasswordUserSession
The user session for the change password page - either the normal one stored on the HTTP session or an expired one stored separately.


m_bExpiredSession

protected boolean m_bExpiredSession
Whether or not the current user session is an expired one.

Constructor Detail

PasswordAS

public PasswordAS()
Method Detail

GetEditorTitle

public java.lang.String GetEditorTitle()
Description copied from class: EditorAS
Returns the Editor main title. It will get printed out in EditorHeaderView.

Specified by:
GetEditorTitle in class EditorAS
Returns:
String
See Also:
EditorAS.GetEditorTitle()

GetName

public java.lang.String GetName()
Description copied from class: AActivitySpace
This method is used to identify the type of this space.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class AFormAS
Returns:
String the name of this AActivitySpace
See Also:
IMVCObject.GetName()

Create

public java.lang.Object Create()
Description copied from class: AActivitySpace
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class AActivitySpace
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Init

public void Init()
Registers all the classes for this Activity Space.

Overrides:
Init in class EditorAS
See Also:
AActivitySpace.Init()

CheckBasicAccess

public boolean CheckBasicAccess(java.lang.String strPage,
                                java.lang.String strControl,
                                boolean bSameSpace)
Description copied from class: AActivitySpace
This method is called by the Interpreter at the beginning of every HTTP request to determine whether or not the current user has the security privileges necessary to view the requested page. This method is designed for checking whether or not a particular user has any access to the space, page, and control. More detailed checking (of query string parameters, for instance), should be done in the IControl.CheckActionSecurityAndExecute() method. For Plumtree portal applications (IPTActivitySpaces), since the IPTSession is guaranteed to be set before Init() & CheckBasicAccess() are called, you can check access as follows: return (GetIPTSession().GetSessionInfo().CheckForActivityRight (new Integer(PT_ACTIVITY_RIGHTS.PT_ACTIVITY_RIGHT_ACCESS_ADMINISTRATION)) == 1);

Overrides:
CheckBasicAccess in class EditorAS
Returns:
boolean true implies access is allowed, false implies access is denied
See Also:
com.plumtree.portaluiinfrastructure.activityspace.AActivitySpace#CheckBasicAccess(String, String, boolean)

GetIsExpiredSession

public boolean GetIsExpiredSession()
Returns:
whether or not the user session is an expired session that needs to change it's password.

GetUserSession

public java.lang.Object GetUserSession()
Return the user's Session. This is a generic Object that can be used for different kinds of sessions. This will have to be cast to the correct type of session (IPTSession for the portal). This special version of this method for PasswordAS will either return the normal user session, or the cached expired user session if it is being hidden by a guest user.

Specified by:
GetUserSession in interface IEnvironment
Overrides:
GetUserSession in class AActivitySpace
Returns:
Object the user's session

CheckValidUser

public boolean CheckValidUser()
This helper method checks that we are a valid logged in native user, or a valid user with an expired password.

Parameters:
_space - the current space
Returns:
true means the user is valid, false means they are not.



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