com.plumtree.portalpages.common.dirprefs
Class DirPrefsModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.common.dirprefs.DirPrefsModel
All Implemented Interfaces:
IDirPrefsModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class DirPrefsModel
extends EditorModel
implements IDirPrefsModelRO

Author:
StephenC

Field Summary
 int m_nBrowseBy
           
 int m_nDefaultDocType
           
 int m_nNumDocsPerPage
           
 int m_nNumFolderColumns
           
 int m_nNumSubSubFolders
           
 int m_nRelatedResourcesPlacement
           
protected  IPTServerConfigSettings m_SCS
           
 java.lang.String m_strDocDescriptionType
           
 java.lang.String m_strFolderDescriptionType
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
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
DirPrefsModel()
           
 
Method Summary
 java.lang.String AddToErrorString(java.lang.String strErrorMsgs, java.lang.String strNewMessage)
           
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 int GetBrowseBy()
           
 int GetDefaultDocType()
           
 java.lang.String GetDocDescriptionType()
           
 IASQueryResult GetDocTypes()
           
 java.lang.String GetFolderDescriptionType()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetNumDocsPerPage()
           
 int GetNumFolderColumns()
           
 int GetNumSubSubFolders()
           
 int GetRelatedResourcesPlacement()
           
 void LoadSettings()
           
protected  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.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, Init, 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

m_strDocDescriptionType

public java.lang.String m_strDocDescriptionType

m_strFolderDescriptionType

public java.lang.String m_strFolderDescriptionType

m_nBrowseBy

public int m_nBrowseBy

m_nDefaultDocType

public int m_nDefaultDocType

m_nNumDocsPerPage

public int m_nNumDocsPerPage

m_nNumFolderColumns

public int m_nNumFolderColumns

m_nNumSubSubFolders

public int m_nNumSubSubFolders

m_nRelatedResourcesPlacement

public int m_nRelatedResourcesPlacement

m_SCS

protected IPTServerConfigSettings m_SCS
Constructor Detail

DirPrefsModel

public DirPrefsModel()
Method Detail

GetBrowseBy

public int GetBrowseBy()
Specified by:
GetBrowseBy in interface IDirPrefsModelRO
Returns:

GetDefaultDocType

public int GetDefaultDocType()
Specified by:
GetDefaultDocType in interface IDirPrefsModelRO
Returns:

GetDocDescriptionType

public java.lang.String GetDocDescriptionType()
Specified by:
GetDocDescriptionType in interface IDirPrefsModelRO
Returns:

GetFolderDescriptionType

public java.lang.String GetFolderDescriptionType()
Specified by:
GetFolderDescriptionType in interface IDirPrefsModelRO
Returns:

GetNumDocsPerPage

public int GetNumDocsPerPage()
Specified by:
GetNumDocsPerPage in interface IDirPrefsModelRO
Returns:

GetNumFolderColumns

public int GetNumFolderColumns()
Specified by:
GetNumFolderColumns in interface IDirPrefsModelRO
Returns:

GetNumSubSubFolders

public int GetNumSubSubFolders()
Specified by:
GetNumSubSubFolders in interface IDirPrefsModelRO
Returns:

GetRelatedResourcesPlacement

public int GetRelatedResourcesPlacement()
Specified by:
GetRelatedResourcesPlacement in interface IDirPrefsModelRO
Returns:

AddToErrorString

public java.lang.String AddToErrorString(java.lang.String strErrorMsgs,
                                         java.lang.String strNewMessage)
Parameters:
strErrorMsgs -
strNewMessage -
Returns:

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Description copied from class: EditorModel
Implements some actions to perform on start. Use the Editor Type if needed.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Parameters:
_htFormData -
Returns:

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

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

GetDocTypes

public IASQueryResult GetDocTypes()
Specified by:
GetDocTypes in interface IDirPrefsModelRO
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:

LoadSettings

public void LoadSettings()

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
Parameters:
_sPageName -
_htFormData -
Returns:

SaveMainPage

protected int SaveMainPage(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:



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