com.plumtree.portalpages.admin.editors.doctypemap
Class GbDocTypeModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
          extended by com.plumtree.portalpages.admin.editors.doctypemap.GbDocTypeModel
All Implemented Interfaces:
IGbDocTypeModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class GbDocTypeModel
extends GbObjEditorModel
implements IGbDocTypeModelRO

Version:
$Revision$
Author:
Sudha Sathiaseelan

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
EDITOR_QS_INT_QS_GLOBAL_OBJECT_ID, m_nGlobalObjectID, m_ptGlobalObject, m_Session
 
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
GbDocTypeModel()
           
 
Method Summary
 void ActionOnRepost()
          Modifies the object name on repost.
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          That method is called by the EditorStartControl.
 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()
          This method contains the code to store the Document Type Map.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetSectionName(int _nIndex)
           
 IASQueryResult GetSections()
          Returns the document type sections.
 int GetSectionsCount()
           
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.
protected  void StartGbDocTypeList()
           
protected  void StartMigrationHistory()
          Saves the Migration history poge.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
GetGlobalObject, GetPTSession, Init, SetGlobalObjectID, SetMemberVariablesFromQS
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, 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
 
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
See Also:
Constant Field Values
Constructor Detail

GbDocTypeModel

public GbDocTypeModel()
Method Detail

ActionOnRepost

public void ActionOnRepost()
Modifies the object name on repost.


CheckEditorAccessAndStart

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

Overrides:
CheckEditorAccessAndStart in class GbObjEditorModel
Parameters:
_htFormData -
Returns:
boolean Is true if the current user has the rights to access this Editor.
Throws:
XPException

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()
This method contains the code to store the Document Type Map.

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

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorModel
Returns:
String

GetSectionName

public java.lang.String GetSectionName(int _nIndex)
Specified by:
GetSectionName in interface IGbDocTypeModelRO
Parameters:
_nIndex -
Returns:
Throws:
java.lang.Exception

GetSections

public IASQueryResult GetSections()
Description copied from interface: IGbDocTypeModelRO
Returns the document type sections.

Specified by:
GetSections in interface IGbDocTypeModelRO
Returns:
Throws:
java.lang.Exception
XPException

GetSectionsCount

public int GetSectionsCount()
Returns:

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
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
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

SaveMainPage

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

Parameters:
_htFormData -

StartGbDocTypeList

protected void StartGbDocTypeList()

StartMigrationHistory

protected void StartMigrationHistory()
Description copied from class: GbObjEditorModel
Saves the Migration history poge.

Overrides:
StartMigrationHistory in class GbObjEditorModel



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