com.plumtree.portalpages.admin.serversettings.globalaclsyncmap
Class GlobalACLSyncMapListModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListModel
          extended by com.plumtree.portaluiinfrastructure.ptmulticolumnlist.PTMultiColumnListModel
              extended by com.plumtree.portalpages.admin.serversettings.globalaclsyncmap.GlobalACLSyncMapListModel
All Implemented Interfaces:
IPTMultiColumnListModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO

public class GlobalACLSyncMapListModel
extends PTMultiColumnListModel

Author:
jennifersu Custom MultiColumnListModel for the Global ACL Sync Map. Has a Select PT Object Tree but displays certain properties about the selected objects rather than the name itself. (Domain mapping displays auth source prefix; Group mapping displays mappingauthname). Also, can edit both columns of the list.

Field Summary
static int ACL_MAP_TYPE_DOMAIN
          List displays domain mappings.
static int ACL_MAP_TYPE_GROUP
          List displays group mappings.
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
Fields inherited from class com.plumtree.portaluiinfrastructure.ptmulticolumnlist.PTMultiColumnListModel
CREATE_NEW_COL_ASNAME, CREATE_NEW_COL_CLASSID, CREATE_NEW_COL_ICON, CREATE_NEW_COL_LABEL, CREATE_NEW_COL_MAX, CREATE_NEW_COL_MAXWITHPARAMS, CREATE_NEW_COL_PARAMS, EXPLIST_COL_CLASSID, EXPLIST_COL_OBJECTID, EXPLIST_COL_STRING, EXPLIST_DEFAULT_INITIAL_SIZE, HIDE_COL_CLASSID, HIDE_COL_MAX, HIDE_COL_OBJECTID, m_arrCreateNewInfo, m_arrDefaultValue, m_arrObjectClassIDs, m_bIncludePTSelect, m_bTreeMultiSelect, m_imgRowIcon, m_intEditRow, m_intNumColumns, m_intPTObjectPosition, m_nAccessLevel, m_sDisplayObjects, m_sTreeSpaceID, m_sTreeSubTitle, m_sTreeTitle, m_strObjectsToHide, m_strTreeQueryFilter, m_treeLeafType, PARAM_COL_PARAMNAME, PARAM_COL_PARAMVALUE, SUBSPACE_KEY_SELECTTREE
 
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
GlobalACLSyncMapListModel()
           
 
Method Summary
 void AddRowsOnRepost(XPHashtable _htFormData)
          Calls the appropriate AddRowOnRepost helper method, depending on what type of list this is.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 int GetEditColumn()
          Returns the column currently being edited.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetSelectedItems()
          Overrides PTMultiColumnListModel since we don't want the tree to pre-select anything.
 void InitializePTMultiColumnList(java.lang.String _sSectionTitle, java.lang.String _sFirstColSubTitle, java.lang.String[] _sSectionSubTitle, PTImageType _imgAddIcon, java.lang.String _sAddLabel, int[] _arrObjectClassIDs, int _nListKey)
          Initializes the expandable list.
 void ModifyRow(XPHashtable _htFormData)
          Action for modifying a row
protected  int SaveRow(PTGrowableSortedArrayWrapper _saData, int _nRowIndex, XPHashtable _htFormData)
          Saves the data for columns other than the plumtree object select column on the row _nRowIndex.
 void SetEditColumn(int editColumn)
          Sets the column currently being edited.
 void SetMapType(int _nMapType)
          Set the type of mapping that this list contains.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.ptmulticolumnlist.PTMultiColumnListModel
AddControlParamsToURL, AddRowsToList, ContainsObject, DoTaskOnComeBackFromSubEditor, GetAccessLevel, GetCreateNewInfo, GetCreateNewURL, GetDisplayObjects, GetEditObjectURL, GetEditRow, GetHiddenObjects, GetIncludePTSelect, GetListValues, GetNumColumns, GetObjectClassIDs, GetPTObjectPosition, GetRowIcon, GetTreeLeafType, GetTreeMultiSelect, GetTreeQueryFilter, GetTreeSpaceID, GetTreeSubTitle, GetTreeTitle, InitializeSortedArray, IsEditLinkEnabled, ParseFields, SaveTreeID, SetAccessLevel, SetDefaultObjects, SetDefaultValue, SetDisplayObjects, SetEditRow, SetEnableCreateNew, SetEnableMoveRowActions, SetHiddenObjects, SetIncludePTSelect, SetNumColumns, SetPTObjectPosition, SetRowIcon, SetTreeLeafType, SetTreeMultiSelect, SetTreeQueryFilter, SetTreeSubTitle, SetTreeTitle
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel
DeleteRowsOnRepost, 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, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, ReverseCurrentSort, SaveSection, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, 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.expandablelist.IExpListModelRO
GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrExpListColInfo, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetListKey, GetMainColumnSort, GetMainColumnSortDirection, GetModelStorageName, GetReadOnlyItems, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled
 
Methods inherited from interface com.plumtree.uiinfrastructure.form.pagination.IPaginationModelRO
GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetNumObjects, GetPaginationSize
 
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
Class name for the activity space

See Also:
Constant Field Values

ACL_MAP_TYPE_DOMAIN

public static final int ACL_MAP_TYPE_DOMAIN
List displays domain mappings.

See Also:
Constant Field Values

ACL_MAP_TYPE_GROUP

public static final int ACL_MAP_TYPE_GROUP
List displays group mappings.

See Also:
Constant Field Values
Constructor Detail

GlobalACLSyncMapListModel

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

SetMapType

public void SetMapType(int _nMapType)
Set the type of mapping that this list contains. Use constants.

Parameters:
_nMapType -

GetName

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

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

GetSelectedItems

public java.lang.String GetSelectedItems()
Overrides PTMultiColumnListModel since we don't want the tree to pre-select anything. This is the format used by the tree.

Specified by:
GetSelectedItems in interface IPTMultiColumnListModelRO
Overrides:
GetSelectedItems in class PTMultiColumnListModel
Returns:
String

InitializePTMultiColumnList

public void InitializePTMultiColumnList(java.lang.String _sSectionTitle,
                                        java.lang.String _sFirstColSubTitle,
                                        java.lang.String[] _sSectionSubTitle,
                                        PTImageType _imgAddIcon,
                                        java.lang.String _sAddLabel,
                                        int[] _arrObjectClassIDs,
                                        int _nListKey)
Initializes the expandable list. Overrides PTMultiColumnListModel since we want both columns to be editable.

Overrides:
InitializePTMultiColumnList in class PTMultiColumnListModel
Parameters:
_sSectionTitle - - Main title of the view.
_sFirstColSubTitle - - The subtitle for the selected Plumtree Object, if appropriate. If _bIncludePTSelect is FALSE, this shoudl be set to null.
_sSectionSubTitle - - An array of subtitles for non-plumtree object columns
_imgAddIcon - - Icon for the add action.
_sAddLabel - - Text to display next to the add icon.
_arrObjectClassIDs - - The Class ID of the objects displayed on the list. This should be null if _bIncludePTSelect is FALSE.
_nListKey - - In case you have multiple Expandable Lists on the same DP, they should have a different key (otherwise, just set it to 1).

AddRowsOnRepost

public void AddRowsOnRepost(XPHashtable _htFormData)
Calls the appropriate AddRowOnRepost helper method, depending on what type of list this is.

Overrides:
AddRowsOnRepost in class PTMultiColumnListModel
Parameters:
_htFormData - Form data

SaveRow

protected int SaveRow(PTGrowableSortedArrayWrapper _saData,
                      int _nRowIndex,
                      XPHashtable _htFormData)
Saves the data for columns other than the plumtree object select column on the row _nRowIndex.

Overrides:
SaveRow in class PTMultiColumnListModel
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.

GetEditColumn

public int GetEditColumn()
Returns the column currently being edited.

Returns:
int

SetEditColumn

public void SetEditColumn(int editColumn)
Sets the column currently being edited.

Parameters:
editColumn - The column to set

ModifyRow

public void ModifyRow(XPHashtable _htFormData)
Action for modifying a row

Overrides:
ModifyRow in class PTMultiColumnListModel
Parameters:
_htFormData -



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