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

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.browsing.portalsettings.password.PasswordModel
All Implemented Interfaces:
IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class PasswordModel
extends EditorModel

Author:
DonH This saves your password

Field Summary
static int EDITOR_START_FLAG_EXPIRATION_WARNING
          The editor start type to denote an expiration warning.
protected  PasswordAS m_passwordAS
           
static java.lang.String PASSWORD_EXPIRATION
          Editor Control Argument - password will expire in X days
static java.lang.String PASSWORD_EXPIRED
          Editor Control Argument - password has expired
static java.lang.String STR_MVC_CLASS_NAME
          MVC object name
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
PasswordModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetName()
          Returns the Class name.
 Redirect GetRedirectAfterFinish()
          Returns the Redirect object (this is were we need to go at the end of the Editor).
 void Init(AActivitySpace _parent)
          Inits the Model with the Activity Space.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor
 
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

EDITOR_START_FLAG_EXPIRATION_WARNING

public static final int EDITOR_START_FLAG_EXPIRATION_WARNING
The editor start type to denote an expiration warning.

See Also:
Constant Field Values

PASSWORD_EXPIRED

public static final java.lang.String PASSWORD_EXPIRED
Editor Control Argument - password has expired

See Also:
Constant Field Values

PASSWORD_EXPIRATION

public static final java.lang.String PASSWORD_EXPIRATION
Editor Control Argument - password will expire in X days

See Also:
Constant Field Values

m_passwordAS

protected PasswordAS m_passwordAS
Constructor Detail

PasswordModel

public PasswordModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Description copied from class: EditorModel
Implements some actions to perform on start. Use the Editor Type if needed.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Returns:
boolean Is true if the current user has the rights to access this Editor.
See Also:
EditorModel.CheckEditorAccessAndStart(XPHashtable)

Finish

public void Finish()
Description copied from class: EditorModel
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel
See Also:
IRepostModel.Finish()

GetRedirectAfterFinish

public Redirect GetRedirectAfterFinish()
Returns the Redirect object (this is were we need to go at the end of the Editor). By default this is going to the previous AS (the one that opened this one). But Editors can override that method if they need to redirect somewhere else.

Specified by:
GetRedirectAfterFinish in interface IRepostModel
Overrides:
GetRedirectAfterFinish in class EditorModel
Returns:
Redirect

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Description copied from class: EditorModel
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Specified by:
SavePage in class EditorModel
Returns:
int Page status for server side validation
See Also:
IRepostModel.SavePage(String, XPHashtable)

Create

public java.lang.Object Create()
Description copied from class: EditorModel
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 EditorModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Description copied from class: EditorModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorModel
Returns:
String
See Also:
IMVCObject.GetName()

Init

public void Init(AActivitySpace _parent)
Inits the Model with the Activity Space.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent -



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