com.plumtree.portalpages.admin.ptutilities.migrationutility.imp
Class MigrationUtilityImportModel

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.imp.MigrationUtilityImportModel
All Implemented Interfaces:
IMigrationUtilityModelRO, IMigrationUtilityImportModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class MigrationUtilityImportModel
extends MigrationUtilityModel
implements IMigrationUtilityImportModelRO

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 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
MigrationUtilityImportModel()
           
 
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 Loads 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
 boolean GetCreateNewObjectInstances()
          Gets the Create New Object Instances settings
 boolean GetImportACLs()
          Gets the Import ACLs setting
 java.lang.String GetName()
          Returns the Class name.
 boolean GetOverwriteRemoteServers()
          Gets the Overwrite Remote Servers settings
 boolean GetRememberDependencySettings()
          Gets the Remember Dependency Settings settings
 boolean HasObjectsForMigration()
           
 void Init(AActivitySpace parent)
          Inits member variables
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void StartImport()
          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, 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

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

MigrationUtilityImportModel

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

HasObjectsForMigration

public boolean HasObjectsForMigration()
Overrides:
HasObjectsForMigration in class MigrationUtilityModel
Returns:
true if objects are pending migration import/export, false if none.

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

StartImport

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


DoLoadPackage

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

Overrides:
DoLoadPackage in class MigrationUtilityModel

GetImportACLs

public boolean GetImportACLs()
Gets the Import ACLs setting

Specified by:
GetImportACLs in interface IMigrationUtilityImportModelRO
Returns:
boolean

GetRememberDependencySettings

public boolean GetRememberDependencySettings()
Gets the Remember Dependency Settings settings

Specified by:
GetRememberDependencySettings in interface IMigrationUtilityImportModelRO
Returns:
boolean

GetOverwriteRemoteServers

public boolean GetOverwriteRemoteServers()
Gets the Overwrite Remote Servers settings

Specified by:
GetOverwriteRemoteServers in interface IMigrationUtilityImportModelRO
Returns:
boolean

GetCreateNewObjectInstances

public boolean GetCreateNewObjectInstances()
Gets the Create New Object Instances settings

Specified by:
GetCreateNewObjectInstances in interface IMigrationUtilityImportModelRO
Returns:
boolean

GetAYSMessages

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

Returns:



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