com.plumtree.portalpages.admin.ptutilities.migrationutility.exp
Class MigrationUtilityExportModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.MigrationUtilityModel
          extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.exp.MigrationUtilityExportModel
All Implemented Interfaces:
IMigrationUtilityExportModelRO, IMigrationUtilityModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class MigrationUtilityExportModel
extends MigrationUtilityModel
implements IMigrationUtilityExportModelRO

Author:
jennifersu

Field Summary
static java.lang.String AYS_SESSION_KEY
          The name of the session key into which we will be storing confirmation messages that the AreYouSure popup can access and display.
static java.lang.String EXPORT_FILE_SESSION_KEY
          The name of the session key into which we will be storing the filename to our export package.
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portalpages.admin.ptutilities.migrationutility.MigrationUtilityModel
m_alMWSIDs, m_htPropBags, m_objMigrationTask, m_ptMigrationManager, m_ptSession, m_xphtAllObjects, MWS_REMOTEDATA_DELIMITER, MWS_REMOTEDATA_SCI_KEY, MWS_REMOTEDATA_TYPE_ASSIGNMENT
 
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
MigrationUtilityExportModel()
           
 
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 DoLoadPackage(XPHashtable _htFormData)
          Perform action when user Adds Exisiting Package (load resources into list)
 void DoTaskBeforeStore()
          That method contains the code that should be executed just before the object is stored in the DB.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 XPArrayList GetAYSMessages()
          Get list of confirmation messages to display in the AreYouSure popup
 XPArrayList GetMWSMessages()
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetPackageDescription()
          Returns package description
 java.lang.String GetPackageName()
          Returns package name
 java.lang.String GetPublisher()
          Returns package publisher name
 void Init(AActivitySpace parent)
          Inits member variables
 boolean IsExportParentFoldersEnabled()
          When exporting dependencies, should the parent folders and their dependencies also be exported?
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void StartExport()
          Creates a new PTMigrationTask and spawns the new thread.
 
Methods inherited from class com.plumtree.portalpages.admin.ptutilities.migrationutility.MigrationUtilityModel
CancelMigration, GetAllObjectsInPackage, GetAllObjectsInPackage, GetMigrationManager, GetMigrationStatus, GetXUIServices, HasObjectsForMigration, ResetMigrationManager, StartXUIServices, StartXUIServicesSafely
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, 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
 
Methods inherited from interface com.plumtree.portalpages.admin.ptutilities.migrationutility.IMigrationUtilityModelRO
GetAllObjectsInPackage, GetMigrationManager, GetMigrationStatus
 
Methods inherited from interface com.plumtree.uiinfrastructure.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

EXPORT_FILE_SESSION_KEY

public static final java.lang.String EXPORT_FILE_SESSION_KEY
The name of the session key into which we will be storing the filename to our export package.

See Also:
Constant Field Values

AYS_SESSION_KEY

public static final java.lang.String AYS_SESSION_KEY
The name of the session key into which we will be storing confirmation messages that the AreYouSure popup can access and display.

See Also:
Constant Field Values
Constructor Detail

MigrationUtilityExportModel

public MigrationUtilityExportModel()
Method Detail

Init

public void Init(AActivitySpace parent)
Inits member variables

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

CheckEditorAccessAndStart

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

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

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
Overrides:
Create in class MigrationUtilityModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

DoTaskBeforeStore

public void DoTaskBeforeStore()
Description copied from class: EditorModel
That method contains the code that should be executed just before the object is stored in the DB.

Overrides:
DoTaskBeforeStore in class MigrationUtilityModel
See Also:
EditorModel.DoTaskBeforeStore()

Finish

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

Specified by:
Finish in interface IRepostModel
Overrides:
Finish in class MigrationUtilityModel

GetName

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

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

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
Overrides:
SavePage in class MigrationUtilityModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

StartExport

public void StartExport()
Creates a new PTMigrationTask and spawns the new thread.


DoLoadPackage

public void DoLoadPackage(XPHashtable _htFormData)
Perform action when user Adds Exisiting Package (load resources into list)

Overrides:
DoLoadPackage in class MigrationUtilityModel

GetPackageName

public java.lang.String GetPackageName()
Returns package name

Specified by:
GetPackageName in interface IMigrationUtilityExportModelRO
Returns:
String

GetPackageDescription

public java.lang.String GetPackageDescription()
Returns package description

Specified by:
GetPackageDescription in interface IMigrationUtilityExportModelRO
Returns:
String

GetPublisher

public java.lang.String GetPublisher()
Returns package publisher name

Specified by:
GetPublisher in interface IMigrationUtilityExportModelRO
Returns:
String

IsExportParentFoldersEnabled

public boolean IsExportParentFoldersEnabled()
When exporting dependencies, should the parent folders and their dependencies also be exported?

Specified by:
IsExportParentFoldersEnabled in interface IMigrationUtilityExportModelRO
Returns:
true to export parent folder dependencies as objects and pull in their dependencies as well, false to only add references in the dependency map

GetAYSMessages

public XPArrayList GetAYSMessages()
Get list of confirmation messages to display in the AreYouSure popup

Returns:

GetMWSMessages

public XPArrayList GetMWSMessages()
Returns:
XPArrayList of String each of which represents the return value from an MWS ExportPackage call with info about the MWS. If no MWS's are present or none responded, returns an empty list.



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