com.plumtree.portalpages.browsing.editors.userprofile
Class UserProfileObjEditModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListModel
          extended by com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel
              extended by com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropModel
                  extended by com.plumtree.portalpages.browsing.editors.userprofile.UserProfileObjEditModel
All Implemented Interfaces:
IObjPropModelRO, IExpListPropModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO

public class UserProfileObjEditModel
extends ObjPropModel
implements IObjPropModelRO

Author:
dand, jennifersu This is the model that is used to contain all of the Object Properties and values for a given user profile. This is necesssary for me to use the ObjPropModel

Field Summary
static int EXPLIST_COL_MAX
          Number total of columns
static int EXPLIST_COL_MULTIID
           
static int EXPLIST_COL_REFVALUE_NAME
           
static int EXPLIST_COL_ROWID
           
protected  XPHashtable m_htPropSortIndex
           
protected  int m_numPropsTotal
           
protected  int m_numRefProps
           
protected  IPTProfileSection m_profileSection
           
protected  IPTQueryResult m_ptqrPropertyInfo
           
static java.lang.String STR_MVC_CLASS_NAME
          object name
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropModel
EXPLIST_COL_DATATABLE, EXPLIST_COL_DATATABLE_INDEX, EXPLIST_COL_SORT_INDEX, m_bDisplayPageIsMandatory, m_bSupportsEOD, m_imgRowIcon, m_oDefaultValue, m_propValueSortingOrder, m_ptObject, m_ptObjProp, m_ptSession, m_strTreeQueryFilter, PROP_OBJECTID_DESCRIPTION, PROP_OBJECTID_NAME, ROW_STATUS_DELETED, SUBSPACE_KEY_PICKTREE, SUBSPACE_KEY_REFTREE
 
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel
EXPLIST_COL_NAME, EXPLIST_COL_PROPID, EXPLIST_COL_STATUS, EXPLIST_COL_TYPE, EXPLIST_COL_VALUE, m_ptJSDateTimePickerMgr, m_ptPageMgr, ROW_STATUS_ADDED, ROW_STATUS_MODIFIED, ROW_STATUS_NO_CHANGE, STR_ROW_PROPERTY_DATE_PICKER_UNIQUE_ID_PREFIX
 
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
UserProfileObjEditModel()
           
 
Method Summary
 void AddRowsOnRepost(XPHashtable _htFormData)
          Adds a new row to the list of object property values.
 boolean CheckRowIsReadOnly(int _nRowIndex)
          Checks to see if the property is read-only
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DeleteRowsOnRepost(XPHashtable _htFormData)
          Deletes am existing row from the list of object property values.
 java.lang.String GetName()
          Returns the Class name.
protected  java.lang.String GetNameFromObjectID(int nClassID, int nObjectID)
          Returns the name for an object
 int GetNumPropsTotal()
          Get the total number of Properties in this Category.
 int GetNumRefProps()
          Get the number of reference Properties in this Category.
 int GetRowID(int _nRowIndex)
          Based on the ExpList row index (EXPLIST_COL_ID), return the property index of the given row index.
 java.lang.Object GetRowPropertyInfo(int _nRowIndex, int nPropID)
          Gets values of the given Property attribute for a row.
 void Init(IPTProfileSection _ptProfileSection)
          Initialize the expandable list associated with this Section.
 void InitializeObjectProperties(IPTSession _ptSession, java.lang.String _sSectionTitle, int _nListKey)
          Initialize the expandable list.
 void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
          Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort.
 void LoadProperties(IPTSession ptSession)
          Load the Properties into the expandable list representation.
protected  int SaveDataValue(int _nRowIndex, XPHashtable _htFormData)
          Saves the data value for the row
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropModel
CheckDisplayPageIsMandatory, CheckObjectSupportsEOD, CheckPickValuesAreValid, CheckRowIsHREF, CheckRowIsMandatory, CheckRowIsMultiValued, CheckRowIsVisible, DoTaskOnComeBackFromSubEditor, Finish, GetDataKey, GetObjectPropData, GetObjectPropRefData, GetPickListValues, GetRowRefValueName, GetSelectedReference, GetStringFromObjectValue, HasAccessToGlobalObjectPropMapEditor, InitializeObjectProperties, LoadProperties, ModifyRow, SaveRow, SaveSection, UpdateMandatoryPageStatus, ValidateTree
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel
GetDateTimeFromDatePicker, GetDateTimePickerControlManager, GetPasswordKey, GetPropValueFromString, GetRowErrorMessage, GetRowName, GetRowPropertyID, GetRowStatus, GetRowType, GetRowValue, GetUniqueDateTimePickerKey, ReverseCurrentSort, SaveDateTimeRow, SavePasswordValue, SetRowStatus, SetRowValue, SortByColumn, UpdateDateTimeUniqueKeys, UpdateRowInList, ValidateMandatoryDataValue
 
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, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, SetEnableMoveRowActions, SetIsListReadOnly, SetListKey, SetPagination, SetSectionTitle, SetTableInstructions, SetWrapColumnHeaders
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
CleanupAllData, CleanupTempData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.IObjPropModelRO
CheckDisplayPageIsMandatory, CheckObjectSupportsEOD, CheckPickValuesAreValid, CheckRowIsHREF, CheckRowIsMandatory, CheckRowIsMultiValued, CheckRowIsVisible, GetPickListValues, GetRowRefValueName, GetSelectedReference, GetStringFromObjectValue, HasAccessToGlobalObjectPropMapEditor
 
Methods inherited from interface com.plumtree.portaluiinfrastructure.expandablelist.properties.IExpListPropModelRO
GetDateTimePickerControlManager, GetRowName, GetRowPropertyID, GetRowStatus, GetRowType, GetRowValue, GetUniqueDateTimePickerKey
 
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
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
object 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_ROWID

public static final int EXPLIST_COL_ROWID
See Also:
Constant Field Values

EXPLIST_COL_MULTIID

public static final int EXPLIST_COL_MULTIID
See Also:
Constant Field Values

EXPLIST_COL_REFVALUE_NAME

public static final int EXPLIST_COL_REFVALUE_NAME
See Also:
Constant Field Values

m_profileSection

protected IPTProfileSection m_profileSection

m_numRefProps

protected int m_numRefProps

m_numPropsTotal

protected int m_numPropsTotal

m_htPropSortIndex

protected XPHashtable m_htPropSortIndex

m_ptqrPropertyInfo

protected IPTQueryResult m_ptqrPropertyInfo
Constructor Detail

UserProfileObjEditModel

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

Init

public void Init(IPTProfileSection _ptProfileSection)
Initialize the expandable list associated with this Section.

Specified by:
Init in interface IModel
Overrides:
Init in class ExpListPropModel
Parameters:
__ptProfileSection - - IPTProfileSection that this expandable list represents.

AddRowsOnRepost

public void AddRowsOnRepost(XPHashtable _htFormData)
Adds a new row to the list of object property values.

Overrides:
AddRowsOnRepost in class ObjPropModel
Parameters:
_htFormData - - Hashtable of form data
See Also:
com.plumtree.uiinfrastructure.expandablelist.ObjPropModel#AddRowsOnRepost(XPHashtable)

DeleteRowsOnRepost

public void DeleteRowsOnRepost(XPHashtable _htFormData)
Deletes am existing row from the list of object property values.

Overrides:
DeleteRowsOnRepost in class ObjPropModel
Parameters:
_htFormData - Hash table of form data
See Also:
ExpListModel.DeleteRowsOnRepost(XPHashtable)

GetName

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

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

InitializeObjectProperties

public void InitializeObjectProperties(IPTSession _ptSession,
                                       java.lang.String _sSectionTitle,
                                       int _nListKey)
Initialize the expandable list.

Parameters:
_ptSession -
_ptObjProp -
_sSectionTitle -
_nListKey -

InitializeSortedArray

public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort. The growable array will be sorted by the 2 columns, first the name and second propID, ascending

Overrides:
InitializeSortedArray in class ObjPropModel
Parameters:
_saData -
See Also:
ExpListModel.InitializeSortedArray(PTGrowableSortedArrayWrapper)

LoadProperties

public void LoadProperties(IPTSession ptSession)
Load the Properties into the expandable list representation.

Parameters:
ptSession -

GetNumRefProps

public int GetNumRefProps()
Get the number of reference Properties in this Category.

Returns:
int

GetNumPropsTotal

public int GetNumPropsTotal()
Get the total number of Properties in this Category.

Returns:
int

CheckRowIsReadOnly

public boolean CheckRowIsReadOnly(int _nRowIndex)
Checks to see if the property is read-only

Specified by:
CheckRowIsReadOnly in interface IObjPropModelRO
Overrides:
CheckRowIsReadOnly in class ObjPropModel
Parameters:
_nRowIndex - Current row index
Returns:
Returns true if read-only. Otherwise returns false.
See Also:
IObjPropModelRO.CheckRowIsReadOnly(int)

GetRowPropertyInfo

public java.lang.Object GetRowPropertyInfo(int _nRowIndex,
                                           int nPropID)
Gets values of the given Property attribute for a row.

Specified by:
GetRowPropertyInfo in interface IObjPropModelRO
Overrides:
GetRowPropertyInfo in class ObjPropModel
Parameters:
_nRowIndex - Row index to look up
nPropID - Property attribute to look up
Returns:
value of attribute
See Also:
IObjPropModelRO.GetRowPropertyInfo(int, int)

SaveDataValue

protected int SaveDataValue(int _nRowIndex,
                            XPHashtable _htFormData)
Saves the data value for the row

Overrides:
SaveDataValue in class ExpListPropModel
Parameters:
_nRowIndex - Row index
_htFormData - Form data
Returns:
Valid if row was saved successfully.

GetRowID

public int GetRowID(int _nRowIndex)
Based on the ExpList row index (EXPLIST_COL_ID), return the property index of the given row index. This is different in the case of multi-valued properties. Additional values for the same property have the same property row index, but different visual row indices.

Parameters:
_nRowIndex -
Returns:

GetNameFromObjectID

protected java.lang.String GetNameFromObjectID(int nClassID,
                                               int nObjectID)
Returns the name for an object

Overrides:
GetNameFromObjectID in class ObjPropModel
Parameters:
nClassID - Class ID of object
nObjectID - Object ID of object
Returns:
Name of object.



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