|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.editor.EditorModel com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IntrinsicPortletPrefsEditorModel
public abstract class IntrinsicPortletPrefsEditorModel
This is the base intrinsic portlet preferences model. All intrinsic portlet models should extend this base class. This model extends the editor model.
Field Summary | |
---|---|
protected boolean |
m_bIsAdminPref
Admin pref |
protected int |
m_nCommunityID
CommunityID |
protected int |
m_nPageID
PageID |
protected int |
m_nPortletID
PortletID |
protected int |
m_nPrefType
Preference type |
protected IPTGadget |
m_ptPortlet
IPTGadget |
protected IPTSession |
m_ptSession
IPTSession |
protected java.lang.String |
m_strPreviousURL
|
static int |
PREF_TYPE_ADMIN
Preference type for admin preferences |
static int |
PREF_TYPE_COMMUNITY
Preference type for community preferences |
static int |
PREF_TYPE_PERSONAL
Preference type for personal preferences |
static int |
SETTINGSTYPE_ADMIN
Setting type for admin preferences |
static int |
SETTINGSTYPE_COMMUNITY
Setting type for community preferences |
static int |
SETTINGSTYPE_COMMUNITYPORTLET
Setting type for community portlet preferences |
static int |
SETTINGSTYPE_PORTLET
Setting type for user portlet preferences |
static int |
SETTINGSTYPE_USER
Setting type for user preferences |
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 | |
---|---|
IntrinsicPortletPrefsEditorModel()
|
Method Summary | |
---|---|
boolean |
CheckEditorAccessAndStart(XPHashtable _htFormData)
That method is called by the EditorStartControl. |
int |
GetCommunityId()
Returns the community Id if the portlet is on a community |
int |
GetEditorType()
Returns the Editor Type (see EditorStartControl for constant names). |
boolean |
GetEnableApplyButton()
Returns true if the apply button should be displayed. |
boolean |
GetHideLeftNav()
Returns the DeleteOnCancel flag. |
boolean |
GetIsEditorReadOnly()
Returns true if the current user only has read access to this Editor. |
protected IPTGadget |
GetPortletFromSpace(AActivitySpace asParent)
If this model is started as a sub-editor from the Portlet editor's model, then get the portlet object from the editor model using this method. |
java.lang.String |
GetPortletName()
Get portlet name |
int |
GetPrefType()
Returns the type of preference that is being requested. |
Redirect |
GetRedirectAfterFinish()
Returns the Redirect object (this is were we need to go at the end of the Editor). |
java.lang.Object |
GetSettingValue(int nSettingType,
java.lang.String strName)
Returns a single setting value, based on the setting type specified. |
java.lang.Object[][] |
GetSettingValues(int nSettingType,
java.lang.String[] arFilter)
Returns all settings, based on the setting type and filter specified. |
void |
Init(AActivitySpace parent)
Inits the Model with the IPTSession. |
protected void |
InitializePortlet(XPHashtable _htFormData)
Initialize the member variables of the model. |
void |
RemoveSettingValue(int nSettingType,
java.lang.String strName)
Removes a setting value, depending on the specified setting type. |
void |
SetEnableApplyButton(boolean _bEnableApplyButton)
Enables or disables the apply button next to the finish button. |
void |
SetMemberVariablesFromQS(XPHashtable _htFormData)
Helper method for the StartEditor method. |
void |
SetSettingValue(int nSettingType,
java.lang.String strName,
java.lang.Object oValue)
Sets the appropriate setting value, based on the setting type. |
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel |
---|
Cancel, CleanupAllData, CleanupTempData, Create, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, Finish, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEnableCancelButton, GetName, GetUserHasAccessToEditor, SavePage, 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 |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IMVCObject |
---|
GetName |
Field Detail |
---|
public static final int SETTINGSTYPE_PORTLET
public static final int SETTINGSTYPE_ADMIN
public static final int SETTINGSTYPE_COMMUNITY
public static final int SETTINGSTYPE_COMMUNITYPORTLET
public static final int SETTINGSTYPE_USER
public static final int PREF_TYPE_ADMIN
public static final int PREF_TYPE_PERSONAL
public static final int PREF_TYPE_COMMUNITY
protected IPTGadget m_ptPortlet
protected IPTSession m_ptSession
protected int m_nCommunityID
protected int m_nPageID
protected int m_nPortletID
protected boolean m_bIsAdminPref
protected int m_nPrefType
protected java.lang.String m_strPreviousURL
Constructor Detail |
---|
public IntrinsicPortletPrefsEditorModel()
Method Detail |
---|
public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
CheckEditorAccessAndStart
in class EditorModel
_htFormData
-
com.plumtree.uiinfrastructure.editor.EditorModel#StartEditor(XPHashtable)
public int GetEditorType()
EditorModel
GetEditorType
in interface IEditorModelRO
GetEditorType
in class EditorModel
EditorModel.GetEditorType()
public boolean GetHideLeftNav()
GetHideLeftNav
in interface IEditorModelRO
GetHideLeftNav
in class EditorModel
EditorModel.GetHideLeftNav()
public void SetEnableApplyButton(boolean _bEnableApplyButton)
SetEnableApplyButton
in class EditorModel
_bEnableApplyButton
- public boolean GetEnableApplyButton()
GetEnableApplyButton
in interface IEditorModelRO
GetEnableApplyButton
in class EditorModel
EditorModel.GetEnableApplyButton()
public boolean GetIsEditorReadOnly()
GetIsEditorReadOnly
in interface IEditorModelRO
GetIsEditorReadOnly
in class EditorModel
EditorModel.GetIsEditorReadOnly()
public java.lang.String GetPortletName()
GetPortletName
in interface IIntrinsicPortletPrefsModelRO
IIntrinsicPortletPrefsModelRO.GetPortletName()
public int GetPrefType()
GetPrefType
in interface IIntrinsicPortletPrefsModelRO
IIntrinsicPortletPrefsModelRO.GetPrefType()
public Redirect GetRedirectAfterFinish()
GetRedirectAfterFinish
in interface IRepostModel
GetRedirectAfterFinish
in class EditorModel
public java.lang.Object GetSettingValue(int nSettingType, java.lang.String strName)
nSettingType
- Setting typestrName
- Setting name
com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IIntrinsicPortletPrefsModelRO#GetSettingValue(int,
String)
public java.lang.Object[][] GetSettingValues(int nSettingType, java.lang.String[] arFilter)
nSettingType
- Setting typearFilter
- Filter for settings
com.plumtree.portaluiinfrastructure.intrinsicportlets.prefs.IIntrinsicPortletPrefsModelRO#GetSettingValues(int,
Object[])
public void Init(AActivitySpace parent)
Init
in interface IModel
Init
in class EditorModel
parent
- public void RemoveSettingValue(int nSettingType, java.lang.String strName)
nSettingType
- Setting typestrName
- Setting namepublic void SetMemberVariablesFromQS(XPHashtable _htFormData)
_htFormData
- public void SetSettingValue(int nSettingType, java.lang.String strName, java.lang.Object oValue)
nSettingType
- Setting typestrName
- Setting nameoValue
- Setting valuepublic int GetCommunityId()
IIntrinsicPortletPrefsModelRO
GetCommunityId
in interface IIntrinsicPortletPrefsModelRO
protected IPTGadget GetPortletFromSpace(AActivitySpace asParent)
asParent
- Parent space of editor when started as a subeditor
protected void InitializePortlet(XPHashtable _htFormData)
_htFormData
- Table containing form data
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |