com.plumtree.portalpages.admin.editors.doctypemapextension
Class GbDocTypeExtModel
java.lang.Object
com.plumtree.uiinfrastructure.editor.EditorModel
com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
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
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 |
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
GbDocTypeExtModel
public GbDocTypeExtModel()
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()