com.plumtree.portalpages.admin.editors.savedsearch
Class PortletSelectModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListModel
          extended by com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
              extended by com.plumtree.portalpages.admin.editors.savedsearch.PortletSelectModel
All Implemented Interfaces:
IPortletSelectModelRO, ISelectPTObjectModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO

public class PortletSelectModel
extends SelectPTObjectModel
implements IPortletSelectModelRO

Author:
joseq This class doesn't change much from SelectPTObjectModel. The purpose of it is just to use the QS variables of IPTOpenerConstant for the edit links instead of the ObjEditorModel ones.

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
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_MAX, EXPLIST_COL_OBJECTID, EXPLIST_COL_STRING, EXPLIST_DEFAULT_INITIAL_SIZE, HIDE_COL_CLASSID, HIDE_COL_MAX, HIDE_COL_OBJECTID, m_arrCreateNewInfo, m_arrObjectClassIDs, m_arrReadOnlyObjects, m_bNoRowIcons, m_bTreeMultiSelect, m_imgDefaultRowIcon, m_nAccessLevel, m_nCommunityFolderID, m_nCommunityMode, m_sDisplayObjects, m_sTreeSpaceID, m_sTreeSubTitle, m_sTreeTitle, m_strObjectsToHide, m_strTreeQueryFilter, m_treeLeafType, m_xphtRowIcons, PARAM_COL_PARAMNAME, PARAM_COL_PARAMVALUE, READ_ONLY_ROW_CLASSID, READ_ONLY_ROW_OBJECTID, 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
PortletSelectModel()
           
 
Method Summary
 void AddControlParamsToURL(int _nClassID, ASURL myURL)
          Helper function for extracting and adding extra control parameters from the create object string.
 boolean CanCreatePortlet()
          Checks if user can create portlets.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskOnComeBackFromSubEditor()
          This method will be called when you come back to the main Editor from a sub Editor.
 ASURL GetCreateNewURL(int _nClassID, java.lang.String _sEditorASName)
          Returns the URL to the Editor in create mode (new object).
 ASURL GetEditObjectURL(int _nClassID, int _nObjectID)
          Returns the URL to edit the object.
 java.lang.String GetName()
          Returns the Class name.
 void InitializePortletSelectModel(IPTSession _ptSession, int _iSnapshotID, java.lang.String _sSectionTitle, java.lang.String _sSectionSubTitle, int _id)
           
 void RefreshPortletList()
          method to refresh the snapshot query's list of portlets.
 void SetSnapshotQueryID(int _iSnapshotID, boolean _bRefresh)
          sets the id of the query to use.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
AddRowsOnRepost, ClearHiddenObjects, ContainsObject, CreateIndexMapping, GetAccessLevel, GetCommunityFolderID, GetCommunityMode, GetCreateNewInfo, GetDefaultRowIcon, GetDisplayObjects, GetHiddenObjects, GetIndex, GetNoRowIcons, GetObjectClassIDs, GetRowIconByClassID, GetSelectedItems, GetSelectedNamesAsHTML, GetTreeLeafType, GetTreeMultiSelect, GetTreeQueryFilter, GetTreeSpaceID, GetTreeSubTitle, GetTreeTitle, GetUniquePopUpName, InitializeListClassIDs, InitializeReadOnlySelectPTObject, InitializeSelectPTObject, InitializeSortedArray, IsEditLinkEnabled, IsObjectReadOnly, ResetTreeID, SaveRow, SaveTreeID, SetAccessLevel, SetCommunityFolderID, SetCommunityMode, SetDefaultObjects, SetDefaultRowIcon, SetDisplayObjects, SetEnableCreateNew, SetEnableMoveRowActions, SetHiddenObjects, SetNoRowIcons, SetReadOnlyObjects, SetRowIconByClassID, 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, ModifyRow, 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
Constructor Detail

PortletSelectModel

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

GetName

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

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

InitializePortletSelectModel

public void InitializePortletSelectModel(IPTSession _ptSession,
                                         int _iSnapshotID,
                                         java.lang.String _sSectionTitle,
                                         java.lang.String _sSectionSubTitle,
                                         int _id)

DoTaskOnComeBackFromSubEditor

public void DoTaskOnComeBackFromSubEditor()
Description copied from class: SelectPTObjectModel
This method will be called when you come back to the main Editor from a sub Editor.

Overrides:
DoTaskOnComeBackFromSubEditor in class SelectPTObjectModel

AddControlParamsToURL

public void AddControlParamsToURL(int _nClassID,
                                  ASURL myURL)
Description copied from class: SelectPTObjectModel
Helper function for extracting and adding extra control parameters from the create object string.

Overrides:
AddControlParamsToURL in class SelectPTObjectModel

GetCreateNewURL

public ASURL GetCreateNewURL(int _nClassID,
                             java.lang.String _sEditorASName)
Description copied from class: SelectPTObjectModel
Returns the URL to the Editor in create mode (new object).

Specified by:
GetCreateNewURL in interface ISelectPTObjectModelRO
Overrides:
GetCreateNewURL in class SelectPTObjectModel
Returns:
ASURL URL to the Editor
See Also:
com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel#GetCreateNewURL()

GetEditObjectURL

public ASURL GetEditObjectURL(int _nClassID,
                              int _nObjectID)
Description copied from class: SelectPTObjectModel
Returns the URL to edit the object.

Specified by:
GetEditObjectURL in interface ISelectPTObjectModelRO
Overrides:
GetEditObjectURL in class SelectPTObjectModel
Returns:
ASURL URL to the Editor
See Also:
com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel#GetEditObjectURL()

SetSnapshotQueryID

public void SetSnapshotQueryID(int _iSnapshotID,
                               boolean _bRefresh)
sets the id of the query to use. The list can optionally be refreshed, otherwise, RefreshPortletList() must be called to refresh the list using the newly added snapshot query id.

Parameters:
_iSnapshotID - snapshot query id
_bRefresh - true to refresh the list

RefreshPortletList

public void RefreshPortletList()
method to refresh the snapshot query's list of portlets.


CanCreatePortlet

public boolean CanCreatePortlet()
Description copied from interface: IPortletSelectModelRO
Checks if user can create portlets.

Specified by:
CanCreatePortlet in interface IPortletSelectModelRO
Returns:
boolean



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