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

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.MigrationLoadPackageModel
All Implemented Interfaces:
IMigrationLoadPackageModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class MigrationLoadPackageModel
extends EditorModel
implements IMigrationLoadPackageModelRO

Author:
jennifersu

Field Summary
protected  java.lang.String m_strPackagePath
          The filename (path) of the currently loaded package.
static java.lang.String PACKAGE_DESCRIPTION
           
static java.lang.String PACKAGE_NAME
           
static java.lang.String PUBLISHER_NAME
           
static java.lang.String STR_MVC_CLASS_NAME
           
static java.lang.String strStorageLoadPackage
          Storage key for MigrationLoadPackageModel
 
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
MigrationLoadPackageModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
protected  void ClearPackage()
          Empties all of our members and sets our package data to null.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 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".
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetPackageDescription()
          Get package description
 java.lang.String GetPackageFileName()
          Returns filename (no path) of loaded package.
 java.lang.String GetPackageName()
          Get package name
 java.lang.String GetPublisherName()
          Get package publisher
 void Init(AActivitySpace parent)
          Inits member variables
 boolean IsPackageLoaded()
          True if a package has been successfully loaded.
 void LoadPackage(XPHashtable _htFormData)
           
 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, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, 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.uiinfrastructure.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

strStorageLoadPackage

public static final java.lang.String strStorageLoadPackage
Storage key for MigrationLoadPackageModel

See Also:
Constant Field Values

PACKAGE_NAME

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

PACKAGE_DESCRIPTION

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

PUBLISHER_NAME

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

m_strPackagePath

protected java.lang.String m_strPackagePath
The filename (path) of the currently loaded package.

Constructor Detail

MigrationLoadPackageModel

public MigrationLoadPackageModel()
Method Detail

ClearPackage

protected void ClearPackage()
Empties all of our members and sets our package data to null.


Init

public void Init(AActivitySpace parent)
Inits member variables

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

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.

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

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 EditorModel
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
Specified by:
Finish in class EditorModel

GetName

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

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorModel
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
Specified by:
SavePage in class EditorModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

LoadPackage

public void LoadPackage(XPHashtable _htFormData)
Parameters:
xpRUpload -
_htFormData -

GetPackageFileName

public java.lang.String GetPackageFileName()
Returns filename (no path) of loaded package.

Specified by:
GetPackageFileName in interface IMigrationLoadPackageModelRO
Returns:
String

IsPackageLoaded

public boolean IsPackageLoaded()
True if a package has been successfully loaded.

Returns:
boolean

GetPackageName

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

Returns:

GetPackageDescription

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


GetPublisherName

public java.lang.String GetPublisherName()
Get package publisher




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