com.plumtree.portalpages.browsing.myportal.editpage
Class EditMyPortalPageModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.browsing.myportal.editpage.EditMyPortalPageModel
All Implemented Interfaces:
IEditMyPortalPageModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class EditMyPortalPageModel
extends EditorModel
implements IEditMyPortalPageModelRO

Author:
michaeld

Field Summary
static java.lang.String HTMLINPUT_PARENT_FORM_NAME
          The name of the parent form that you would like the data passed back to.
static java.lang.String HTMLINPUT_PARENT_FORM_SPACE_ID
          The name of the input in the parent form that you would like the AActivitySpace ID of the tree space put into.
static java.lang.String HTMLINPUT_PARENT_SUBMIT_CALL
          The name of the method in the parent form to call when the tree is submitted
static java.lang.String STR_MVC_CLASS_NAME
          Object Name
 
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
EditMyPortalPageModel()
           
 
Method Summary
 void Cancel()
          Implement some code to execute when the user clicks on "Cancel".
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 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.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetName()
          Returns the Class name.
 int GetOpenerClassID()
           
 int GetOpenerCommunityFolderID()
           
 int GetOpenerCommunityID()
           
 int GetOpenerObjectID()
           
 PageData GetPageModel()
          Get the page model of the page being edited.
 int GetPageTemplateSet()
          Get the set page template for the page.
 java.lang.String GetParentFormName()
          Get the name of the parent window's form.
 java.lang.String GetParentFormSpaceID()
          Get the string that is the parent form space ID.
 java.lang.String GetParentFormSubmitFunction()
          Get the string that is the parent form submit function.
 IPTPage getPTPage()
           
 Redirect GetRedirectAfterFinish()
          Returns the Redirect object (this is were we need to go at the end of the Editor).
 boolean IsCreateMyPage()
          Returns true if we're creating a new page.
protected  void SaveMainPage(XPHashtable _htFormData)
          Saves the data on the Main page.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetUserHasAccessToEditor, Init, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, 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
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
Object Name

See Also:
Constant Field Values

HTMLINPUT_PARENT_FORM_NAME

public static final java.lang.String HTMLINPUT_PARENT_FORM_NAME
The name of the parent form that you would like the data passed back to.

See Also:
Constant Field Values

HTMLINPUT_PARENT_FORM_SPACE_ID

public static final java.lang.String HTMLINPUT_PARENT_FORM_SPACE_ID
The name of the input in the parent form that you would like the AActivitySpace ID of the tree space put into.

See Also:
Constant Field Values

HTMLINPUT_PARENT_SUBMIT_CALL

public static final java.lang.String HTMLINPUT_PARENT_SUBMIT_CALL
The name of the method in the parent form to call when the tree is submitted

See Also:
Constant Field Values
Constructor Detail

EditMyPortalPageModel

public EditMyPortalPageModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Description copied from class: EditorModel
Implements some actions to perform on start. Use the Editor Type if needed.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Returns:
boolean Is true if the current user has the rights to access this Editor.
See Also:
com.plumtree.uiinfrastructure.editor.EditorModel#StartEditor(XPHashtable)

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

DoTaskOnComeBackFromSubEditor

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

Overrides:
DoTaskOnComeBackFromSubEditor in class EditorModel

Finish

public void Finish()
Description copied from class: EditorModel
Implement some code to execute when the user clicks on "Finish".

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

Cancel

public void Cancel()
Description copied from class: EditorModel
Implement some code to execute when the user clicks on "Cancel".

Overrides:
Cancel in class EditorModel
See Also:
EditorModel.Cancel()

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:
IMVCObject.GetName()

GetOpenerClassID

public int GetOpenerClassID()
See Also:
com.plumtree.portalpages.common.editpage.IPageLayoutModelRO#GetOpenerClassID()

GetOpenerCommunityFolderID

public int GetOpenerCommunityFolderID()
See Also:
com.plumtree.portalpages.common.editpage.IPageLayoutModelRO#GetOpenerCommunityFolderID()

GetOpenerCommunityID

public int GetOpenerCommunityID()
See Also:
com.plumtree.portalpages.common.editpage.IPageLayoutModelRO#GetOpenerCommunityID()

GetOpenerObjectID

public int GetOpenerObjectID()
See Also:
com.plumtree.portalpages.common.editpage.IPageLayoutModelRO#GetOpenerObjectID()

GetPageModel

public PageData GetPageModel()
Description copied from interface: IEditMyPortalPageModelRO
Get the page model of the page being edited.

Specified by:
GetPageModel in interface IEditMyPortalPageModelRO
Returns:
PageData
See Also:
IEditMyPortalPageModelRO.GetPageModel()

GetPageTemplateSet

public int GetPageTemplateSet()
Description copied from interface: IEditMyPortalPageModelRO
Get the set page template for the page.

Specified by:
GetPageTemplateSet in interface IEditMyPortalPageModelRO
Returns:
int
See Also:
IEditMyPortalPageModelRO.GetPageTemplateSet()

GetParentFormName

public java.lang.String GetParentFormName()
Description copied from interface: IEditMyPortalPageModelRO
Get the name of the parent window's form.

Specified by:
GetParentFormName in interface IEditMyPortalPageModelRO
Returns:
String
See Also:
IEditMyPortalPageModelRO.GetParentFormName()

GetParentFormSpaceID

public java.lang.String GetParentFormSpaceID()
Description copied from interface: IEditMyPortalPageModelRO
Get the string that is the parent form space ID.

Specified by:
GetParentFormSpaceID in interface IEditMyPortalPageModelRO
Returns:
String
See Also:
IEditMyPortalPageModelRO.GetParentFormSpaceID()

GetParentFormSubmitFunction

public java.lang.String GetParentFormSubmitFunction()
Description copied from interface: IEditMyPortalPageModelRO
Get the string that is the parent form submit function.

Specified by:
GetParentFormSubmitFunction in interface IEditMyPortalPageModelRO
Returns:
String
See Also:
IEditMyPortalPageModelRO.GetParentFormSubmitFunction()

GetRedirectAfterFinish

public Redirect GetRedirectAfterFinish()
Description copied from class: EditorModel
Returns the Redirect object (this is were we need to go at the end of the Editor). By default this is going to the previous AS (the one that opened this one). But Editors can override that method if they need to redirect somewhere else.

Specified by:
GetRedirectAfterFinish in interface IRepostModel
Overrides:
GetRedirectAfterFinish in class EditorModel
Returns:
Redirect
See Also:
IRepostModel.GetRedirectAfterFinish()

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Description copied from class: EditorModel
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Specified by:
SavePage in class EditorModel
Returns:
int Page status for server side validation
See Also:
IRepostModel.SavePage(String, XPHashtable)

SaveMainPage

protected void SaveMainPage(XPHashtable _htFormData)
Saves the data on the Main page.

Parameters:
_htFormData -

IsCreateMyPage

public boolean IsCreateMyPage()
Returns true if we're creating a new page.

Returns:
boolean

getPTPage

public IPTPage getPTPage()



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