com.plumtree.portalpages.admin.serversettings.search
Class SearchServerSettingsEditorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.serversettings.search.SearchServerSettingsEditorModel
All Implemented Interfaces:
ISearchServerSettingsEditorModelRO, PropertyValidatorOwner, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class SearchServerSettingsEditorModel
extends EditorModel
implements ISearchServerSettingsEditorModelRO, PropertyValidatorOwner

Author:
OlegS

Nested Class Summary
static class SearchServerSettingsEditorModel.IndexingCount
           
 
Field Summary
static java.lang.String DateTimePickerKey
           
static java.lang.String INDEXPREF_SAVEDIDS
           
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
SearchServerSettingsEditorModel()
           
 
Method Summary
 void ActionOnRepost()
           
 void AddAllUnusedISTypes()
           
 void AddTypeToIndexingStatus(int classid)
           
 AActivitySpace asOwner()
           
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
protected  boolean ClassIDSearchable(int lClassID)
           
protected  boolean ComesAfter(int test, int id, int[] arrayOfInts)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  void CreateDatePicker(XPDateTime repairDate)
           
 void DeleteTypeFromIndexingStatus(int classid)
           
 void DoApplyChanges()
           
protected  int[] FilterToSearchableIDs(int[] idArray)
           
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
protected  IXPPropertyBag[] GenerateSearchUpdateReport()
           
 IXPPropertyBag GetClusterStatusPropertyBag()
           
 int GetCountDBClassID(int classid)
           
 int GetCountForClassID(IXPPropertyBag pbag, java.lang.String classid)
           
 int GetCountSIClassID(int classid)
           
 int GetCountSIClassID(int[] classids, XPArrayList exceptThese)
           
 JSDateTimePickerMgr GetDateTimePickerControlManager()
           
protected  int GetDBCountAllIDs(IXPPropertyBag[] bags, XPArrayList exceptTheseList)
           
 XPStringBuilder GetErrorString()
           
 java.lang.String GetFileSizePerBulkImport()
           
 XPArrayList GetIndexingCounts()
          Called from the IndexingStatusView to gather the data
 java.lang.String GetIndexingHost()
           
 java.lang.String GetIndexingPort()
           
 java.lang.String getLastSubmittedSearchTransactioID()
           
 java.lang.String GetMaxCharsPerDocument()
           
 java.lang.String GetMaxTermsForKeywordHighlighting()
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetNumberOfDaysBetweenRepair()
           
 java.lang.String GetNumCardsPerBulkImport()
           
protected  int[] GetSavedIds()
           
protected  int GetSICountAllIDs(XPArrayList exceptThese)
           
 IXPPropertyBag GetStatusPropertyBag()
           
 int GetTotalAllClassID(IXPPropertyBag pbag, XPArrayList exceptTheseList)
           
 XPArrayList GetUndisplayedNamesAndTypes()
           
 void Init(AActivitySpace parent)
          Inits the Model with the Activity Space.
 void InitializePropertyValues()
           
protected  void InitIndexingStatusList()
           
protected  void InsertInOrder(XPArrayList icArrayList, SearchServerSettingsEditorModel.IndexingCount ic)
           
protected  boolean ListContainsClassId(int classId, XPArrayList indexCountList)
           
protected  void LoadIndexingCount(SearchServerSettingsEditorModel.IndexingCount ic, int classID, java.lang.String className, IXPPropertyBag[] bags)
           
protected  int[] RemoveListIds(int[] idArray, XPArrayList exceptTheseList)
           
protected  void SaveClassIds(XPArrayList classIdList)
           
protected  int SaveMainPage(XPHashtable _htFormData)
           
protected  void SaveNextRepairDateAndRate(IPTSession ptSession)
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
protected  int[] SplitIntoInts(java.lang.String value, java.lang.String delimiter)
           
protected  void traceDebug(java.lang.String msg)
          Trace a message if debug tracing is enabled for the UI component.
protected  void UpdateIndexingCount(SearchServerSettingsEditorModel.IndexingCount ic, IXPPropertyBag[] bags)
           
protected  void UpdateIndexingCountAllOthers(SearchServerSettingsEditorModel.IndexingCount ic, IXPPropertyBag[] bags, XPArrayList icList)
           
protected  void updateRepairDateAndRateFromForm(XPHashtable formData)
           
protected  void UpdateStatusInfo(XPArrayList indexCountList)
           
 
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, 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

INDEXPREF_SAVEDIDS

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

STR_MVC_CLASS_NAME

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

DateTimePickerKey

public static final java.lang.String DateTimePickerKey
See Also:
Constant Field Values
Constructor Detail

SearchServerSettingsEditorModel

public SearchServerSettingsEditorModel()
Method Detail

Init

public void Init(AActivitySpace parent)
Description copied from class: EditorModel
Inits the Model with the Activity Space.

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

GetErrorString

public XPStringBuilder GetErrorString()
Specified by:
GetErrorString in interface PropertyValidatorOwner
Returns:

GetFileSizePerBulkImport

public java.lang.String GetFileSizePerBulkImport()
Specified by:
GetFileSizePerBulkImport in interface ISearchServerSettingsEditorModelRO
Returns:

GetIndexingHost

public java.lang.String GetIndexingHost()
Specified by:
GetIndexingHost in interface ISearchServerSettingsEditorModelRO
Returns:

GetIndexingPort

public java.lang.String GetIndexingPort()
Specified by:
GetIndexingPort in interface ISearchServerSettingsEditorModelRO
Returns:

GetMaxCharsPerDocument

public java.lang.String GetMaxCharsPerDocument()
Specified by:
GetMaxCharsPerDocument in interface ISearchServerSettingsEditorModelRO
Returns:

GetMaxTermsForKeywordHighlighting

public java.lang.String GetMaxTermsForKeywordHighlighting()
Specified by:
GetMaxTermsForKeywordHighlighting in interface ISearchServerSettingsEditorModelRO
Returns:

GetDateTimePickerControlManager

public JSDateTimePickerMgr GetDateTimePickerControlManager()
Specified by:
GetDateTimePickerControlManager in interface ISearchServerSettingsEditorModelRO
Returns:

GetNumCardsPerBulkImport

public java.lang.String GetNumCardsPerBulkImport()
Specified by:
GetNumCardsPerBulkImport in interface ISearchServerSettingsEditorModelRO
Returns:

GetNumberOfDaysBetweenRepair

public java.lang.String GetNumberOfDaysBetweenRepair()
Specified by:
GetNumberOfDaysBetweenRepair in interface ISearchServerSettingsEditorModelRO
Returns:

GetStatusPropertyBag

public IXPPropertyBag GetStatusPropertyBag()
Specified by:
GetStatusPropertyBag in interface ISearchServerSettingsEditorModelRO
Returns:

GetClusterStatusPropertyBag

public IXPPropertyBag GetClusterStatusPropertyBag()
Specified by:
GetClusterStatusPropertyBag in interface ISearchServerSettingsEditorModelRO
Returns:

getLastSubmittedSearchTransactioID

public java.lang.String getLastSubmittedSearchTransactioID()
Specified by:
getLastSubmittedSearchTransactioID in interface ISearchServerSettingsEditorModelRO

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
Returns:
boolean Is true if the current user has the rights to access this Editor.

InitializePropertyValues

public void InitializePropertyValues()

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

DoApplyChanges

public void DoApplyChanges()

SaveNextRepairDateAndRate

protected void SaveNextRepairDateAndRate(IPTSession ptSession)

updateRepairDateAndRateFromForm

protected void updateRepairDateAndRateFromForm(XPHashtable formData)

CreateDatePicker

protected void CreateDatePicker(XPDateTime repairDate)

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:

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:

asOwner

public AActivitySpace asOwner()
Specified by:
asOwner in interface PropertyValidatorOwner
Returns:

traceDebug

protected void traceDebug(java.lang.String msg)
Trace a message if debug tracing is enabled for the UI component. This method could be moved into the EditorModel base class, along with trace() and traceEnabled().


ActionOnRepost

public void ActionOnRepost()

SaveMainPage

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

UpdateIndexingCount

protected void UpdateIndexingCount(SearchServerSettingsEditorModel.IndexingCount ic,
                                   IXPPropertyBag[] bags)

UpdateIndexingCountAllOthers

protected void UpdateIndexingCountAllOthers(SearchServerSettingsEditorModel.IndexingCount ic,
                                            IXPPropertyBag[] bags,
                                            XPArrayList icList)

LoadIndexingCount

protected void LoadIndexingCount(SearchServerSettingsEditorModel.IndexingCount ic,
                                 int classID,
                                 java.lang.String className,
                                 IXPPropertyBag[] bags)

GetIndexingCounts

public XPArrayList GetIndexingCounts()
Called from the IndexingStatusView to gather the data

Returns:

ListContainsClassId

protected boolean ListContainsClassId(int classId,
                                      XPArrayList indexCountList)

UpdateStatusInfo

protected void UpdateStatusInfo(XPArrayList indexCountList)

GetUndisplayedNamesAndTypes

public XPArrayList GetUndisplayedNamesAndTypes()

InsertInOrder

protected void InsertInOrder(XPArrayList icArrayList,
                             SearchServerSettingsEditorModel.IndexingCount ic)

ComesAfter

protected boolean ComesAfter(int test,
                             int id,
                             int[] arrayOfInts)

AddTypeToIndexingStatus

public void AddTypeToIndexingStatus(int classid)

DeleteTypeFromIndexingStatus

public void DeleteTypeFromIndexingStatus(int classid)

AddAllUnusedISTypes

public void AddAllUnusedISTypes()

InitIndexingStatusList

protected void InitIndexingStatusList()

GetCountDBClassID

public int GetCountDBClassID(int classid)

GetCountSIClassID

public int GetCountSIClassID(int classid)

GetCountSIClassID

public int GetCountSIClassID(int[] classids,
                             XPArrayList exceptThese)

GenerateSearchUpdateReport

protected IXPPropertyBag[] GenerateSearchUpdateReport()

GetTotalAllClassID

public int GetTotalAllClassID(IXPPropertyBag pbag,
                              XPArrayList exceptTheseList)

GetCountForClassID

public int GetCountForClassID(IXPPropertyBag pbag,
                              java.lang.String classid)

GetDBCountAllIDs

protected int GetDBCountAllIDs(IXPPropertyBag[] bags,
                               XPArrayList exceptTheseList)

GetSICountAllIDs

protected int GetSICountAllIDs(XPArrayList exceptThese)

ClassIDSearchable

protected boolean ClassIDSearchable(int lClassID)

FilterToSearchableIDs

protected int[] FilterToSearchableIDs(int[] idArray)

RemoveListIds

protected int[] RemoveListIds(int[] idArray,
                              XPArrayList exceptTheseList)

GetSavedIds

protected int[] GetSavedIds()

SaveClassIds

protected void SaveClassIds(XPArrayList classIdList)

SplitIntoInts

protected int[] SplitIntoInts(java.lang.String value,
                              java.lang.String delimiter)



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