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

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListModel
          extended by com.plumtree.portalpages.admin.ptutilities.migrationutility.imp.MigrationSelectForImportModel
All Implemented Interfaces:
IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO

public class MigrationSelectForImportModel
extends ExpListModel

Author:
jennifersu

Field Summary
static int EXPLIST_COL_CLASSID
          This column contains the Object Class IDs.
static int EXPLIST_COL_DESCRIPTION
          This column contains the description
static int EXPLIST_COL_MAX
          Number total of columns
static int EXPLIST_COL_NAME
          This column contains the name
static int EXPLIST_COL_PTME
          This column contains the IPTMigrationElement
static int EXPLIST_COL_UUID
          This column contains the UUIDs.
static int EXPLIST_DEFAULT_INITIAL_SIZE
          Default initial size for the sorted array.
protected  XPHashtable m_htSubexpressions
          An Hashtable to keep track of all the subexpression rules.
protected  XPArrayList[] m_xparObjsToMigrate
          array of XPArrayLists containing IPTMigrationElements to migrate, indexed by classID.
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel
EXPLIST_COLUMN_COLSPAN, EXPLIST_COLUMN_ENABLESORT, EXPLIST_COLUMN_ID, EXPLIST_COLUMN_INVALID, EXPLIST_COLUMN_TITLE, EXPLIST_COLUMN_WIDTH, EXPLIST_SORTEDARRAY_PROPID_INDEX, m_arrExpListColInfo, m_bAddButtonDisabled, m_bCheckBoxesDisabled, m_bEnableMoveRowActions, m_bIsReadOnly, m_bWrapColumnHeaders, m_imgAddIcon, m_imgDeleteIcon, m_nListKey, m_nNextIndex, m_saData, m_sAddIconAlt, m_sAddLabel, m_sDeleteIconAlt, m_sDelRowConfirmMsg, m_sEmptyListAlert, m_sInstructions, m_sMainMessage, m_sSectionTitle, m_sTableInstructions, MAX_ROWS, MOVEACTION_DOWN, MOVEACTION_FIRST, MOVEACTION_LAST, MOVEACTION_UP, parent
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
MigrationSelectForImportModel()
          Inits member variables
 
Method Summary
 void AddRowsOnRepost(XPHashtable _htFormData)
          Clear the list and add all the values from the tree.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DeleteRowsOnRepost(XPHashtable _htFormData)
          Gets the array of checked rows and delete them from the list.
 java.lang.String GetName()
          Returns the Class name.
 XPArrayList[] GetObjectsToMigrate()
          array of XPArrayLists containing IPTMigrationElements to migrate, indexed by classID.
 void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
          Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort.
 void InitSFE(IPTSession ptSession)
          Initializes and starts the list of objects to import.
 void LoadResources()
          Loads the list with objects that get uploaded.
protected  int SaveRow(PTGrowableSortedArrayWrapper _saData, int _nRowIndex, XPHashtable _htFormData)
          Saves the data on the row _nRowIndex.
 int SaveSection(XPHashtable _htFormData)
          Saves the data when a repost occurs.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel
DisableAddButton, DisableCheckBoxes, EnablePagination, GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrayOfObjToDelete, GetArrExpListColInfo, GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetItems, GetListKey, GetMainColumnSort, GetMainColumnSortDirection, GetModelStorageName, GetMoveAction, GetNumObjects, GetPaginationSize, GetReadOnlyItems, GetRowIndex, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, InitializeExpandableList, InitializeReadOnlyExpandableList, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled, ModifyRow, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, ReverseCurrentSort, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, SetEnableMoveRowActions, SetIsListReadOnly, SetListKey, SetPagination, SetSectionTitle, SetTableInstructions, SetWrapColumnHeaders, SortByColumn
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
CleanupAllData, CleanupTempData, Init
 
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, CleanupTempData, Init
 

Field Detail

STR_MVC_CLASS_NAME

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

EXPLIST_COL_MAX

public static final int EXPLIST_COL_MAX
Number total of columns

See Also:
Constant Field Values

EXPLIST_COL_CLASSID

public static final int EXPLIST_COL_CLASSID
This column contains the Object Class IDs.

See Also:
Constant Field Values

EXPLIST_COL_UUID

public static final int EXPLIST_COL_UUID
This column contains the UUIDs.

See Also:
Constant Field Values

EXPLIST_COL_NAME

public static final int EXPLIST_COL_NAME
This column contains the name

See Also:
Constant Field Values

EXPLIST_COL_DESCRIPTION

public static final int EXPLIST_COL_DESCRIPTION
This column contains the description

See Also:
Constant Field Values

EXPLIST_COL_PTME

public static final int EXPLIST_COL_PTME
This column contains the IPTMigrationElement

See Also:
Constant Field Values

EXPLIST_DEFAULT_INITIAL_SIZE

public static final int EXPLIST_DEFAULT_INITIAL_SIZE
Default initial size for the sorted array.

See Also:
Constant Field Values

m_xparObjsToMigrate

protected XPArrayList[] m_xparObjsToMigrate
array of XPArrayLists containing IPTMigrationElements to migrate, indexed by classID.


m_htSubexpressions

protected XPHashtable m_htSubexpressions
An Hashtable to keep track of all the subexpression rules. If the user choose not to import a subportal rule, then all of its subexpressions are also deleted.

Constructor Detail

MigrationSelectForImportModel

public MigrationSelectForImportModel()
Inits member variables

Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorHelperModel
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 EditorHelperModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Description copied from class: EditorHelperModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorHelperModel
Returns:
String
See Also:
IMVCObject.GetName()

InitSFE

public void InitSFE(IPTSession ptSession)
Initializes and starts the list of objects to import.


LoadResources

public void LoadResources()
Loads the list with objects that get uploaded.


SaveSection

public int SaveSection(XPHashtable _htFormData)
Description copied from class: ExpListModel
Saves the data when a repost occurs. Editors using this framework need to call that method from the savePage method of the main Model.

Overrides:
SaveSection in class ExpListModel
Parameters:
_htFormData - Form posted data.
Returns:
int Status for server side validation
See Also:
EditorHelperModel.SaveSection(XPHashtable)

AddRowsOnRepost

public void AddRowsOnRepost(XPHashtable _htFormData)
Clear the list and add all the values from the tree.

Specified by:
AddRowsOnRepost in class ExpListModel
Parameters:
_htFormData - Form data

DeleteRowsOnRepost

public void DeleteRowsOnRepost(XPHashtable _htFormData)
Gets the array of checked rows and delete them from the list.

Overrides:
DeleteRowsOnRepost in class ExpListModel
Parameters:
_htFormData -

InitializeSortedArray

public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort. The growable array will always be sorted by the 1st column ascending.

Specified by:
InitializeSortedArray in class ExpListModel
Parameters:
_saData -

SaveRow

protected int SaveRow(PTGrowableSortedArrayWrapper _saData,
                      int _nRowIndex,
                      XPHashtable _htFormData)
Saves the data on the row _nRowIndex.

Specified by:
SaveRow in class ExpListModel
Parameters:
_saData - List to update the data on row _nRowIndex
_nRowIndex - Index of the row to save.
_htFormData - Data posted by the form.
Returns:
int Status for server side validation.

GetObjectsToMigrate

public XPArrayList[] GetObjectsToMigrate()
array of XPArrayLists containing IPTMigrationElements to migrate, indexed by classID.




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