|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.editor.EditorModel com.plumtree.portalpages.admin.serversettings.search.SearchServerTuningEditorModel
public class SearchServerTuningEditorModel
Nested Class Summary | |
---|---|
static class |
SearchServerTuningEditorModel.AliasElement
|
Field Summary | |
---|---|
static java.lang.String |
STR_MVC_CLASS_NAME
|
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 | |
---|---|
SearchServerTuningEditorModel()
|
Method Summary | |
---|---|
void |
ActionOnRepost()
|
void |
AddAliasTerm(XPHashtable lastUserVals)
|
AActivitySpace |
asOwner()
|
protected void |
BuildAliasFromElements()
|
protected boolean |
CheckBannerAliasAndDelocalizeWeights()
|
boolean |
CheckDuplicateBestBetQuery(java.lang.String originalTrigger,
java.lang.String strTrigger,
boolean bNewlyAdded)
|
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 |
DeleteBestBets(int[] ids)
|
void |
DeleteTheseAliasTerms(int[] indices,
XPHashtable lastUserVals)
|
void |
DoApplyChanges(XPHashtable lastUserVals)
|
void |
Finish()
Implement some code to execute when the user clicks on "Finish". |
java.lang.String |
GetBestBetSearchString()
|
java.lang.String |
GetBestBetSetupString(int i)
|
int |
GetBestBetStartCount()
|
IXPList |
GetBestBetTargets(int i)
|
java.lang.String |
GetBestBetTrigger(int i)
|
java.lang.Object[] |
GetCurrentAliasElements()
|
XPStringBuilder |
GetErrorString()
|
protected java.lang.String |
GetFieldAliasFromServer()
|
boolean |
GetIsShowAllBestBets()
|
char |
GetLocalizedDecimalSeperator()
GetLocalizedDecimalSeperator - Returns the locale specific decimal seperator. |
java.lang.String |
GetName()
Returns the Class name. |
int |
GetNumAddedBestBets()
|
int |
GetNumBestBetsAskedFor()
|
int |
GetNumBestBetsOnPage()
|
int |
GetNumDeletedBestBets()
|
boolean |
GetShowNextBestBet()
|
boolean |
GetShowPreviousBestBet()
|
boolean |
GetSpellCheckOn()
|
boolean |
GetThesaurusOn()
|
int |
GetTotalBestBetCount()
|
boolean |
HasBestBetBeenDeleted(int i)
|
boolean |
HasBestBetBeenNewlyAdded(int i)
|
boolean |
HasBestBetStringBeenDeleted(java.lang.String trigger)
|
void |
Init(AActivitySpace parent)
Inits the Model with the Activity Space. |
protected void |
InitSpellCheckThesaurus()
|
void |
LoadLastUserVals(XPHashtable lastUserVals)
|
java.lang.String |
LocalizeFloat(java.lang.String strFloatVal)
LocalizeFloat - Converts internal string representation of floating point number into the locale specific string representation. |
boolean |
OkToDeleteThisManyAliasTerms(int number)
Returns true if a sufficient number of terms (1) would be left after the delete. |
void |
PaginateBestBets(int startCount,
int numResultsPerPage)
|
protected SearchServerTuningEditorModel.AliasElement[] |
ParseAlias(java.lang.String alias)
|
protected int |
RaiseBannerAliasError(java.lang.String message)
|
protected void |
RecalculatePercentages(SearchServerTuningEditorModel.AliasElement[] elements)
|
void |
RestoreDefaultFieldAlias()
Restore banner search field alias to default value. |
protected int |
SaveBannerAlias(XPHashtable _htFormData)
END - BEST BET RELATED METHODS |
protected void |
SaveFieldAliasToServer()
|
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. |
protected void |
SaveThesaurusFromForm(XPHashtable _htFormData)
|
protected void |
SaveThesaurusSpellToServer()
|
void |
SearchBestBets(java.lang.String str)
|
void |
SetBestBetStartCount(int n)
|
void |
SetNumBestBetsAskedFor(int n)
|
void |
SetSpellCheckOn(boolean tf)
Set spell checking on if tf is true. |
void |
SetThesaurusOn(boolean tf)
Set thesaurus usage on if tf is true. |
void |
ShowAllBestBets()
|
protected void |
TraceDebug(java.lang.String msg)
Trace a message if debug tracing is enabled for the UI component. |
void |
UpdateBestBetFromSubEditor(java.lang.String originalTrigger,
boolean bModifiedBBWasFromDB,
java.lang.String strTrigger,
java.lang.String setup,
IXPList arrTargets)
|
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel |
---|
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, 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 |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
Constructor Detail |
---|
public SearchServerTuningEditorModel()
Method Detail |
---|
public void Init(AActivitySpace parent)
EditorModel
Init
in interface IModel
Init
in class EditorModel
parent
- the parent Activity Spaceprotected void InitSpellCheckThesaurus()
public XPStringBuilder GetErrorString()
public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
EditorModel
CheckEditorAccessAndStart
in class EditorModel
public java.lang.Object Create()
EditorModel
Create
in interface IManagedObject
Create
in class EditorModel
IManagedObject.Create()
public void Finish()
EditorModel
Finish
in interface IRepostModel
Finish
in class EditorModel
public void DoApplyChanges(XPHashtable lastUserVals)
public java.lang.String GetName()
EditorModel
GetName
in interface IMVCObject
GetName
in class EditorModel
public int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
EditorModel
SavePage
in interface IRepostModel
SavePage
in class EditorModel
_sPageName
- _htFormData
-
public java.lang.String GetBestBetSearchString()
GetBestBetSearchString
in interface ISearchServerTuningEditorModelRO
public boolean GetIsShowAllBestBets()
GetIsShowAllBestBets
in interface ISearchServerTuningEditorModelRO
public int GetNumBestBetsAskedFor()
GetNumBestBetsAskedFor
in interface ISearchServerTuningEditorModelRO
public int GetNumBestBetsOnPage()
GetNumBestBetsOnPage
in interface ISearchServerTuningEditorModelRO
public int GetBestBetStartCount()
GetBestBetStartCount
in interface ISearchServerTuningEditorModelRO
public boolean GetShowPreviousBestBet()
GetShowPreviousBestBet
in interface ISearchServerTuningEditorModelRO
public boolean GetShowNextBestBet()
GetShowNextBestBet
in interface ISearchServerTuningEditorModelRO
public int GetTotalBestBetCount()
GetTotalBestBetCount
in interface ISearchServerTuningEditorModelRO
public int GetNumDeletedBestBets()
GetNumDeletedBestBets
in interface ISearchServerTuningEditorModelRO
public int GetNumAddedBestBets()
GetNumAddedBestBets
in interface ISearchServerTuningEditorModelRO
public void UpdateBestBetFromSubEditor(java.lang.String originalTrigger, boolean bModifiedBBWasFromDB, java.lang.String strTrigger, java.lang.String setup, IXPList arrTargets)
UpdateBestBetFromSubEditor
in interface ISearchServerTuningEditorModelRO
public java.lang.String GetBestBetTrigger(int i)
GetBestBetTrigger
in interface ISearchServerTuningEditorModelRO
public java.lang.String GetBestBetSetupString(int i)
GetBestBetSetupString
in interface ISearchServerTuningEditorModelRO
public IXPList GetBestBetTargets(int i)
GetBestBetTargets
in interface ISearchServerTuningEditorModelRO
public boolean HasBestBetBeenDeleted(int i)
HasBestBetBeenDeleted
in interface ISearchServerTuningEditorModelRO
public boolean HasBestBetStringBeenDeleted(java.lang.String trigger)
public boolean HasBestBetBeenNewlyAdded(int i)
HasBestBetBeenNewlyAdded
in interface ISearchServerTuningEditorModelRO
public boolean CheckDuplicateBestBetQuery(java.lang.String originalTrigger, java.lang.String strTrigger, boolean bNewlyAdded)
CheckDuplicateBestBetQuery
in interface ISearchServerTuningEditorModelRO
public void SetNumBestBetsAskedFor(int n)
public void SetBestBetStartCount(int n)
public void DeleteBestBets(int[] ids)
public void SearchBestBets(java.lang.String str)
public void ShowAllBestBets()
public void PaginateBestBets(int startCount, int numResultsPerPage)
protected int SaveBannerAlias(XPHashtable _htFormData)
protected boolean CheckBannerAliasAndDelocalizeWeights()
public void AddAliasTerm(XPHashtable lastUserVals)
public boolean OkToDeleteThisManyAliasTerms(int number)
ISearchServerTuningEditorModelRO
OkToDeleteThisManyAliasTerms
in interface ISearchServerTuningEditorModelRO
number
- of terms to delete
public void DeleteTheseAliasTerms(int[] indices, XPHashtable lastUserVals)
public void LoadLastUserVals(XPHashtable lastUserVals)
protected void BuildAliasFromElements()
protected void SaveFieldAliasToServer()
protected int RaiseBannerAliasError(java.lang.String message)
public AActivitySpace asOwner()
protected void TraceDebug(java.lang.String msg)
public void ActionOnRepost()
protected int SaveMainPage(XPHashtable _htFormData)
_htFormData
-
protected void SaveThesaurusFromForm(XPHashtable _htFormData)
protected void SaveThesaurusSpellToServer()
protected java.lang.String GetFieldAliasFromServer()
protected SearchServerTuningEditorModel.AliasElement[] ParseAlias(java.lang.String alias)
public void RestoreDefaultFieldAlias()
ISearchServerTuningEditorModelRO
RestoreDefaultFieldAlias
in interface ISearchServerTuningEditorModelRO
public java.lang.Object[] GetCurrentAliasElements()
GetCurrentAliasElements
in interface ISearchServerTuningEditorModelRO
protected void RecalculatePercentages(SearchServerTuningEditorModel.AliasElement[] elements)
public boolean GetThesaurusOn()
GetThesaurusOn
in interface ISearchServerTuningEditorModelRO
public void SetThesaurusOn(boolean tf)
ISearchServerTuningEditorModelRO
SetThesaurusOn
in interface ISearchServerTuningEditorModelRO
public boolean GetSpellCheckOn()
GetSpellCheckOn
in interface ISearchServerTuningEditorModelRO
public void SetSpellCheckOn(boolean tf)
ISearchServerTuningEditorModelRO
SetSpellCheckOn
in interface ISearchServerTuningEditorModelRO
public char GetLocalizedDecimalSeperator()
public java.lang.String LocalizeFloat(java.lang.String strFloatVal)
strFloatVal
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |