com.plumtree.portalpages.admin.editors.doctypemapextension
Class GbDocTypeExtModel

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

public class GbDocTypeExtModel
extends GbObjEditorModel
implements IGbDocTypeExtModelRO

Author:
SudhaS

Field Summary
protected  boolean m_bAdded
           
protected  boolean m_bEdit
           
protected  int m_nDocTypeID
           
protected  int m_nGbDocTypeModelID
           
protected  int m_nGbDocTypeSectionID
           
protected  int m_nRowIndex
           
protected  java.lang.String m_sSetting1
           
protected  java.lang.String m_sSetting2
           
protected  java.lang.String m_strDocTypeName
           
protected  java.lang.String m_strExtension
           
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
m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
GbDocTypeExtModel()
           
 
Method Summary
 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()
          Implement some code to execute when the user clicks on "Finish".
 int GetDocTypeID()
           
 java.lang.String GetDocTypeName()
           
 java.lang.String GetExtName()
           
 boolean GetIsAdded()
           
 boolean GetIsEdit()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetRow()
           
 IASQueryResult GetValidDocumentTypes(int _nSectionID)
           
 int SaveMainPage(XPHashtable _htFormData)
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetAdded(boolean _bAdded)
           
 void SetEdit(boolean _bEdit)
           
protected  void StartGbDocTypeExtList()
           
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
GetGlobalObject, GetPTSession, Init, SetGlobalObjectID, SetMemberVariablesFromQS, StartMigrationHistory
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnStartEditor, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, 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, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

m_sSetting1

protected java.lang.String m_sSetting1

m_sSetting2

protected java.lang.String m_sSetting2

m_strDocTypeName

protected java.lang.String m_strDocTypeName

m_strExtension

protected java.lang.String m_strExtension

m_bAdded

protected boolean m_bAdded

m_bEdit

protected boolean m_bEdit

m_nDocTypeID

protected int m_nDocTypeID

m_nGbDocTypeSectionID

protected int m_nGbDocTypeSectionID

m_nGbDocTypeModelID

protected int m_nGbDocTypeModelID

m_nRowIndex

protected int m_nRowIndex
Constructor Detail

GbDocTypeExtModel

public GbDocTypeExtModel()
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.

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

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()
Description copied from class: EditorModel
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

GetDocTypeID

public int GetDocTypeID()
Specified by:
GetDocTypeID in interface IGbDocTypeExtModelRO
Returns:

GetDocTypeName

public java.lang.String GetDocTypeName()
Returns:

GetExtName

public java.lang.String GetExtName()
Specified by:
GetExtName in interface IGbDocTypeExtModelRO
Returns:

GetIsAdded

public boolean GetIsAdded()
Returns:

GetIsEdit

public boolean GetIsEdit()
Returns:

GetName

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

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

GetRow

public int GetRow()
Returns:

GetValidDocumentTypes

public IASQueryResult GetValidDocumentTypes(int _nSectionID)
Parameters:
_nSectionID -
Returns:
Throws:
java.lang.Exception
XPException

SaveMainPage

public int SaveMainPage(XPHashtable _htFormData)
Parameters:
_htFormData -
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

SetAdded

public void SetAdded(boolean _bAdded)
Parameters:
_bAdded -

SetEdit

public void SetEdit(boolean _bEdit)
Parameters:
_bEdit -

StartGbDocTypeExtList

protected void StartGbDocTypeExtList()



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