com.plumtree.portaluiinfrastructure.editor
Class GbObjEditorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
All Implemented Interfaces:
IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel
Direct Known Subclasses:
GbDocTypeExtModel, GbDocTypeModel, PropertyMapEditorModel

public abstract class GbObjEditorModel
extends EditorModel

This is the Model class for Global Objects. This class contains the Global Object as a member variable. It initializes it so the Object is ready to be used. Model classes for Global Objects should extend this class.

Author:
Julie Fournier

Field Summary
static java.lang.String EDITOR_QS_INT_QS_GLOBAL_OBJECT_ID
          Query String constant param name for Global Object ID
protected  int m_nGlobalObjectID
          JF- This is to identify the global object.
protected  java.lang.Object m_ptGlobalObject
          JF- Server objects The Global Object being edited.
protected  IPTSession m_Session
          The Plumtree Session.
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
GbObjEditorModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          That method is called by the EditorStartControl.
 java.lang.Object GetGlobalObject()
          Returns the the Global Object being edited.
 IPTSession GetPTSession()
          Returns the IPTSession for the current user.
 void Init(AActivitySpace parent)
          Inits the Model with the IPTSession.
 void SetGlobalObjectID(int _nGbObjectID)
          Sets the global object ID.
 void SetMemberVariablesFromQS(XPHashtable _htFormData)
          Helper method for the StartEditor method.
protected  void StartMigrationHistory()
          Saves the Migration history poge.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, Create, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, Finish, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly, GetName, GetRedirectAfterFinish, GetUserHasAccessToEditor, SavePage, 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

EDITOR_QS_INT_QS_GLOBAL_OBJECT_ID

public static final java.lang.String EDITOR_QS_INT_QS_GLOBAL_OBJECT_ID
Query String constant param name for Global Object ID

See Also:
Constant Field Values

m_Session

protected IPTSession m_Session
The Plumtree Session.


m_ptGlobalObject

protected java.lang.Object m_ptGlobalObject
JF- Server objects The Global Object being edited.


m_nGlobalObjectID

protected int m_nGlobalObjectID
JF- This is to identify the global object. It has to be a PT_GLOBALOBJECTS constant.

Constructor Detail

GbObjEditorModel

public GbObjEditorModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
That method is called by the EditorStartControl. It creates the global object and puts it in m_ptGlobalObject.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Parameters:
_htFormData -
Returns:
boolean Is true if the current user has the rights to access this Editor.

GetGlobalObject

public java.lang.Object GetGlobalObject()
Returns the the Global Object being edited.

Returns:
IPTObject

GetPTSession

public IPTSession GetPTSession()
Returns the IPTSession for the current user.

Returns:
IPTSession

Init

public void Init(AActivitySpace parent)
Inits the Model with the IPTSession.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent -

SetGlobalObjectID

public void SetGlobalObjectID(int _nGbObjectID)
Sets the global object ID.

Parameters:
IPTObject -

SetMemberVariablesFromQS

public void SetMemberVariablesFromQS(XPHashtable _htFormData)
Helper method for the StartEditor method. Fill out the member variables with data from QS.

Parameters:
_htFormData -

StartMigrationHistory

protected void StartMigrationHistory()
Saves the Migration history poge.




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