com.plumtree.portalpages.portlets.intrinsicpageletparamprefeditor
Class IntrinsicPrefsEditorForPageletParametersModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IntrinsicPortletPrefsEditorModel
          extended by com.plumtree.portalpages.portlets.intrinsicpageletparamprefeditor.IntrinsicPrefsEditorForPageletParametersModel
All Implemented Interfaces:
IIntrinsicPortletPrefsModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class IntrinsicPrefsEditorForPageletParametersModel
extends IntrinsicPortletPrefsEditorModel

Model of Community prefs editor specific to portlets for ensemble pagelets

Author:
rozhang

Field Summary
protected  int m_currPrefType
          of type: PREF_TYPE_PERSONAL, PREF_TYPE_COMMUNITY, PREF_TYPE_ADMIN in IntrinsicPortletPrefsEditorModel
protected  boolean[] m_prefChanged
           
protected  java.lang.String[] m_prefDescs
           
protected  java.lang.String[] m_prefNames
           
protected  java.lang.String[] m_prefValues
           
static int NAME_INDEX
           
static java.lang.String STR_MVC_CLASS_NAME
           
static int VALUE_INDEX
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IntrinsicPortletPrefsEditorModel
m_bIsAdminPref, m_nCommunityID, m_nPageID, m_nPortletID, m_nPrefType, m_ptPortlet, m_ptSession, m_strPreviousURL, PREF_TYPE_ADMIN, PREF_TYPE_COMMUNITY, PREF_TYPE_PERSONAL, SETTINGSTYPE_ADMIN, SETTINGSTYPE_COMMUNITY, SETTINGSTYPE_COMMUNITYPORTLET, SETTINGSTYPE_PORTLET, SETTINGSTYPE_USER
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
IntrinsicPrefsEditorForPageletParametersModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskOnStartEditor(XPHashtable _htFormData)
          That method contains the code that should be executed just after the object has been initialized when the new editor is started.
protected  int FindIndexInStringArray(java.lang.String[] arr, java.lang.String searchString)
           
 void Finish()
          Figure out how to save the prefs depending on the type of the prefs.
 int GetCurrPrefType()
          Returns one of these values: IntrinsicPortletPrefsEditorModel.PREF_TYPE_PERSONAL, PREF_TYPE_COMMUNITY, PREF_TYPE_ADMIN
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String[] GetPortletPrefDescriptions()
           
 java.lang.String[] GetPortletPrefNames()
           
 java.lang.String[] GetPortletPrefValues()
           
protected  void LookupPrefsFromWebservice(java.lang.String prefsType, java.lang.String descType)
          Loads mapped prefs from webservice object.
 int SavePage(java.lang.String sPageName, XPHashtable formData)
          Called before Finish method
 
Methods inherited from class com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IntrinsicPortletPrefsEditorModel
CheckEditorAccessAndStart, GetCommunityId, GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly, GetPortletFromSpace, GetPortletName, GetPrefType, GetRedirectAfterFinish, GetSettingValue, GetSettingValues, Init, InitializePortlet, RemoveSettingValue, SetEnableApplyButton, SetMemberVariablesFromQS, SetSettingValue
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEnableCancelButton, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, 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
GetEnableCancelButton
 

Field Detail

STR_MVC_CLASS_NAME

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

NAME_INDEX

public static final int NAME_INDEX
See Also:
Constant Field Values

VALUE_INDEX

public static final int VALUE_INDEX
See Also:
Constant Field Values

m_currPrefType

protected int m_currPrefType
of type: PREF_TYPE_PERSONAL, PREF_TYPE_COMMUNITY, PREF_TYPE_ADMIN in IntrinsicPortletPrefsEditorModel


m_prefNames

protected java.lang.String[] m_prefNames

m_prefValues

protected java.lang.String[] m_prefValues

m_prefDescs

protected java.lang.String[] m_prefDescs

m_prefChanged

protected boolean[] m_prefChanged
Constructor Detail

IntrinsicPrefsEditorForPageletParametersModel

public IntrinsicPrefsEditorForPageletParametersModel()
Method Detail

DoTaskOnStartEditor

public void DoTaskOnStartEditor(XPHashtable _htFormData)
Description copied from class: EditorModel
That method contains the code that should be executed just after the object has been initialized when the new editor is started.

Overrides:
DoTaskOnStartEditor in class EditorModel
See Also:
com.plumtree.uiinfrastructure.editor.EditorModel#DoTaskOnStartEditor(com.plumtree.openfoundation.util.XPHashtable)

FindIndexInStringArray

protected int FindIndexInStringArray(java.lang.String[] arr,
                                     java.lang.String searchString)

LookupPrefsFromWebservice

protected void LookupPrefsFromWebservice(java.lang.String prefsType,
                                         java.lang.String descType)
Loads mapped prefs from webservice object. Names of mapped prefs for a pagelet is stored with the webservice object

Parameters:
prefsType - A constant of type: AExtensibilityConstants.PT_PROPBAG_HTTPGADGET_PARAMMAPPING_X

SavePage

public int SavePage(java.lang.String sPageName,
                    XPHashtable formData)
Called before Finish method

Specified by:
SavePage in interface IRepostModel
Specified by:
SavePage in class EditorModel
Returns:
int Page status for server side validation
See Also:
com.plumtree.uiinfrastructure.editor.EditorModel#SavePage(java.lang.String, com.plumtree.openfoundation.util.XPHashtable)

Finish

public void Finish()
Figure out how to save the prefs depending on the type of the prefs.

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel
See Also:
EditorModel.Finish()

GetPortletPrefNames

public java.lang.String[] GetPortletPrefNames()
Returns:
An array with

GetPortletPrefValues

public java.lang.String[] GetPortletPrefValues()
Returns:
An array with preference values, never null

GetPortletPrefDescriptions

public java.lang.String[] GetPortletPrefDescriptions()
Returns:
An array with preference descriptions, never null

GetCurrPrefType

public int GetCurrPrefType()
Returns one of these values: IntrinsicPortletPrefsEditorModel.PREF_TYPE_PERSONAL, PREF_TYPE_COMMUNITY, PREF_TYPE_ADMIN

Returns:

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:
EditorModel.Create()

GetName

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

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



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