com.plumtree.portalpages.admin.migrationhistory
Class MigrationHistoryModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.migrationhistory.MigrationHistoryModel
All Implemented Interfaces:
IMigrationHistoryModel, IMigrationHistoryModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class MigrationHistoryModel
extends EditorModel
implements IMigrationHistoryModel, IMigrationHistoryModelRO

Model for the migration history of a single PTObject.

Author:
arvinds

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
MigrationHistoryModel()
           
 
Method Summary
 void ActionOnRepost()
          Modifies the object name on repost.
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 void CleanupTempData()
          This method is called at the end of every HTTP request by the Interpreter.
 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".
 int GetCurrentMigrationStatus()
          Retrieves the current migration status of the underlying PTObject.
 MigrationHistoryItem GetHistoryItem(int _nIndex)
          Retrieves the history item at the index specified by _nIndex
 java.lang.String GetName()
          Returns the Class name.
 int GetNumHistoryItems()
          Returns the number of items in the history for the underlying PTObject.
 boolean IsMigrationCheckboxChecked()
          Retrieves the flag indicating whether the checkbox has been checked in this editor session.
 boolean IsStandalone()
          Retrieves the flag indicating whether or not we are being hosted by another activity space, or our own.
protected  void SaveMainPage(XPHashtable _htFormData)
          Saves the data on the Main page.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetApprovedForMigration(boolean bApproved)
          Sets the flag indicating this object has been approved for migration
 boolean ShouldDisplayApproval()
          Retrieves the flag indicating whether or not to display the approval checkbox (currently only for full sysadmins)
 void StoreMigrationStatus(int nClassID, int nObjectID)
          Helper method to Store the migration status on the object.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, Init, 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
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel
CleanupAllData, Init
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

MigrationHistoryModel

public MigrationHistoryModel()
Method Detail

ActionOnRepost

public void ActionOnRepost()
Modifies the object name on repost.


CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Implements some actions to perform on start.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Parameters:
_htFormData -
Returns:
boolean Is true if the current user has the rights to access this Editor.

CleanupTempData

public void CleanupTempData()
Description copied from interface: IModel
This method is called at the end of every HTTP request by the Interpreter. The Interpreter calls AActivitySpace.CleanupTempData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for cleaning up temporary data that is only used for the lifetime of a single request, like DB query results.

Specified by:
CleanupTempData in interface IModel
Overrides:
CleanupTempData in class EditorModel
See Also:
IModel.CleanupTempData()

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()

Finish

public void Finish()
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel

GetCurrentMigrationStatus

public int GetCurrentMigrationStatus()
Description copied from interface: IMigrationHistoryModel
Retrieves the current migration status of the underlying PTObject.

Specified by:
GetCurrentMigrationStatus in interface IMigrationHistoryModel
Specified by:
GetCurrentMigrationStatus in interface IMigrationHistoryModelRO
Returns:

GetHistoryItem

public MigrationHistoryItem GetHistoryItem(int _nIndex)
Description copied from interface: IMigrationHistoryModel
Retrieves the history item at the index specified by _nIndex

Specified by:
GetHistoryItem in interface IMigrationHistoryModel
Specified by:
GetHistoryItem in interface IMigrationHistoryModelRO
Parameters:
_nIndex -
Returns:

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:
com.plumtree.portaluiinfrastructure.activityspace.IModelRO#GetName()

GetNumHistoryItems

public int GetNumHistoryItems()
Description copied from interface: IMigrationHistoryModel
Returns the number of items in the history for the underlying PTObject.

Specified by:
GetNumHistoryItems in interface IMigrationHistoryModel
Specified by:
GetNumHistoryItems in interface IMigrationHistoryModelRO
Returns:

IsStandalone

public boolean IsStandalone()
Retrieves the flag indicating whether or not we are being hosted by another activity space, or our own.

Specified by:
IsStandalone in interface IMigrationHistoryModel
Specified by:
IsStandalone in interface IMigrationHistoryModelRO

ShouldDisplayApproval

public boolean ShouldDisplayApproval()
Retrieves the flag indicating whether or not to display the approval checkbox (currently only for full sysadmins)

Specified by:
ShouldDisplayApproval in interface IMigrationHistoryModel
Specified by:
ShouldDisplayApproval in interface IMigrationHistoryModelRO

SetApprovedForMigration

public void SetApprovedForMigration(boolean bApproved)
Sets the flag indicating this object has been approved for migration

Specified by:
SetApprovedForMigration in interface IMigrationHistoryModel

IsMigrationCheckboxChecked

public boolean IsMigrationCheckboxChecked()
Retrieves the flag indicating whether the checkbox has been checked in this editor session.

Specified by:
IsMigrationCheckboxChecked in interface IMigrationHistoryModelRO

StoreMigrationStatus

public void StoreMigrationStatus(int nClassID,
                                 int nObjectID)
Helper method to Store the migration status on the object.

Specified by:
StoreMigrationStatus in interface IMigrationHistoryModel

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
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
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

SaveMainPage

protected void SaveMainPage(XPHashtable _htFormData)
Saves the data on the Main page.

Parameters:
_htFormData -



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