com.plumtree.portalpages.admin.ptutilities.migrationutility
Class MigrationUtilityRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.uiinfrastructure.editor.EditorRepostControl
          extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.MigrationUtilityRepostControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject
Direct Known Subclasses:
MigrationExportRepostControl, MigrationImportRepostControl

public abstract class MigrationUtilityRepostControl
extends EditorRepostControl

Author:
jennifersu

Field Summary
static int POSTTOSELF_ACTION_MIGRATION_CANCEL
           
static int POSTTOSELF_ACTION_MIGRATION_DOUPLOAD
           
static int POSTTOSELF_ACTION_MIGRATION_POLL
           
static int POSTTOSELF_ACTION_MIGRATION_START
          Migration-specific repost actions
static int POSTTOSELF_ACTION_REDIRECT_ON_POPUP
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
POSTTOSELF_ACTION_ONRETURN_FROM_SUBEDITOR
 
Fields inherited from class com.plumtree.uiinfrastructure.form.RepostControl
HTMLINPUT_PASSTHRU_ARGS, HTMLINPUT_PASSTHRU_CONTROL, HTMLINPUT_POSTTOSELF, HTMLSUBMIT_508_POSTTOSELF, m_asOwner, m_bInitialized, m_htFormData, m_model, m_nAction, m_nPageStatus, m_rRedirect, PAGE_STATUS_INVALID, PAGE_STATUS_VALID, POSTTOSELF_ACTION_APPLY_CHANGES, POSTTOSELF_ACTION_CANCEL, POSTTOSELF_ACTION_FINISH, POSTTOSELF_ACTION_GOTOPAGE, POSTTOSELF_ACTION_IN_PLACE_REFRESH, POSTTOSELF_ACTION_PASSTHRU, POSTTOSELF_ACTION_SIMPLEREPOST, POSTTOSELF_ACTION_UNDEFINED
 
Constructor Summary
MigrationUtilityRepostControl()
           
 
Method Summary
abstract  java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Returns the Class name.
protected  void PerformAction(int _nAction)
          Switch between the action modes and call the associated method for each action.
protected abstract  void PerformAYSPopup()
          Sets the editor to perform the Are You Sure popup.
 void PerformMigrationPopup()
          Dynamically add javascript to the current DisplayPage.
abstract  Redirect PollStatus()
          Polls for the status of the currently running migration task.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
CheckActionSecurityAndExecute, CheckMandatoryPages, PerformCancelAction, PerformFinishAction, PerformReadOnlyAction, SaveCurrentPage, SetRedirectToCloseSubEditor
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, Init, PerformPassthruAction, SetPageStatus, SetRedirect, SetRepostAction
 
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
See Also:
Constant Field Values

POSTTOSELF_ACTION_MIGRATION_START

public static final int POSTTOSELF_ACTION_MIGRATION_START
Migration-specific repost actions

See Also:
Constant Field Values

POSTTOSELF_ACTION_MIGRATION_POLL

public static final int POSTTOSELF_ACTION_MIGRATION_POLL
See Also:
Constant Field Values

POSTTOSELF_ACTION_MIGRATION_CANCEL

public static final int POSTTOSELF_ACTION_MIGRATION_CANCEL
See Also:
Constant Field Values

POSTTOSELF_ACTION_MIGRATION_DOUPLOAD

public static final int POSTTOSELF_ACTION_MIGRATION_DOUPLOAD
See Also:
Constant Field Values

POSTTOSELF_ACTION_REDIRECT_ON_POPUP

public static final int POSTTOSELF_ACTION_REDIRECT_ON_POPUP
See Also:
Constant Field Values
Constructor Detail

MigrationUtilityRepostControl

public MigrationUtilityRepostControl()
Method Detail

Create

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

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

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Overrides:
GetName in class EditorRepostControl
Returns:
String

PerformAYSPopup

protected abstract void PerformAYSPopup()
Sets the editor to perform the Are You Sure popup. Takes in an XPArrayList of AYSMessages.


PerformMigrationPopup

public void PerformMigrationPopup()
Dynamically add javascript to the current DisplayPage. 1. Open the StatusPopup window 2. Redirect the main window to m_model.GetRedirectAfterFinish().


PerformAction

protected void PerformAction(int _nAction)
Switch between the action modes and call the associated method for each action.

Overrides:
PerformAction in class EditorRepostControl
Parameters:
int -

PollStatus

public abstract Redirect PollStatus()
Polls for the status of the currently running migration task. Depending on the status, return an appropriate redirect.

Returns:
Redirect



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