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

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

public class EditMyPagePortletLayoutModel_D
extends EditorModel

File: EditMyPagePortletLayoutModel_D.java ----------------------------------------

Author:
NaveenP

Field Summary
static int ACTIONDELETE
           
static int ACTIONDOWN
           
static int ACTIONUP
           
protected  ASQueryResultWrapper m_asqrMyPortalMandatoryPortlets
           
protected  ASQueryResultWrapper m_asqrMyPortalPortlets
           
protected  IPTPage m_ptPage
           
protected  IPTSession m_ptSession
          Store session and catalog to retrieve data
static java.lang.String QS_PAGEID
           
static java.lang.String STR_MVC_CLASS_NAME
          Activity space name
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
EditMyPagePortletLayoutModel_D()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htArguemnts)
          Implements some actions to perform on start.
 void CleanupAllData()
          This method is called when an ActivitySpace is removed from the cache.
 void CleanupTempData()
          This method is called at the end of every HTTP request by the Interpreter.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoAction()
           
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 int GetMandatoryPortletCount()
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetPageName()
           
 int GetPortletCount()
           
 java.lang.String GetPortletName(int nIndex)
           
 Redirect GetRedirectAfterFinish()
          Returns the Redirect object (this is were we need to go at the end of the Editor).
 void Init(AActivitySpace parent)
          Inits the Model with the Activity Space.
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetActionDelete()
           
 void SetActionDown()
           
 void SetActionUp()
           
 void SetPageID(int nPageID)
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetUserHasAccessToEditor, 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
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
Activity space name

See Also:
Constant Field Values

QS_PAGEID

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

ACTIONUP

public static final int ACTIONUP
See Also:
Constant Field Values

ACTIONDOWN

public static final int ACTIONDOWN
See Also:
Constant Field Values

ACTIONDELETE

public static final int ACTIONDELETE
See Also:
Constant Field Values

m_asqrMyPortalPortlets

protected ASQueryResultWrapper m_asqrMyPortalPortlets

m_asqrMyPortalMandatoryPortlets

protected ASQueryResultWrapper m_asqrMyPortalMandatoryPortlets

m_ptPage

protected IPTPage m_ptPage

m_ptSession

protected IPTSession m_ptSession
Store session and catalog to retrieve data

Constructor Detail

EditMyPagePortletLayoutModel_D

public EditMyPagePortletLayoutModel_D()
Method Detail

CleanupTempData

public void CleanupTempData()
Description copied from interface: IModel
This method is called at the end of every HTTP request by the Interpreter. The Interpreter calls AActivitySpace.CleanupTempData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for cleaning up temporary data that is only used for the lifetime of a single request, like DB query results.

Specified by:
CleanupTempData in interface IModel
Overrides:
CleanupTempData in class EditorModel
See Also:
com.plumtree.xpshared.activityspace.IModel#CleanupTempData()

CleanupAllData

public void CleanupAllData()
Description copied from interface: IModel
This method is called when an ActivitySpace is removed from the cache. The Interpreter calls AActivitySpace.CleanupAllData(), which calls this method on all IModels registered using AActivitySpace.RegisterModel(). This method is intended for releasing data stored in the server when the activity space is no longer needed, such as search objects that need to be maintained as long as the user is clicking through the search, but should be freed when the space can no longer be used. This can be used to prevent Java references to COM memory from hanging around in the long lived Java heap without cleaning up the underlying COM memory. The Java reference will still stay in the long lived heap until it gets garbage collected (which could be a while), but the COM memory should get released here. This method will not be called if an HTTPSession times out. CleanupTempData will be called before CleanupAllData.

Specified by:
CleanupAllData in interface IModel
Overrides:
CleanupAllData in class EditorModel
See Also:
IModel.CleanupAllData()

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()

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htArguemnts)
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.

DoAction

public void DoAction()
              throws java.lang.Exception
Throws:
java.lang.Exception

Finish

public void Finish()
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel

GetPortletCount

public int GetPortletCount()
Returns:

GetMandatoryPortletCount

public int GetMandatoryPortletCount()
Returns:
the mandatory portlet count

GetPortletName

public java.lang.String GetPortletName(int nIndex)
Parameters:
nIndex -
Returns:

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:
com.plumtree.xpshared.activityspace.IModel#GetName()

GetPageName

public java.lang.String GetPageName()
Returns:

GetRedirectAfterFinish

public Redirect GetRedirectAfterFinish()
Returns the Redirect object (this is were we need to go at the end of the Editor).

Specified by:
GetRedirectAfterFinish in interface IRepostModel
Overrides:
GetRedirectAfterFinish in class EditorModel
Returns:
Redirect

Init

public void Init(AActivitySpace parent)
Description copied from class: EditorModel
Inits the Model with the Activity Space.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent - the parent Activity Space
See Also:
com.plumtree.xpshared.activityspace.IModel#Init()

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)

SetActionDown

public void SetActionDown()

SetActionUp

public void SetActionUp()

SetActionDelete

public void SetActionDelete()

SetPageID

public void SetPageID(int nPageID)
               throws java.lang.Exception
Parameters:
nPageID -
Throws:
java.lang.Exception



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