|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 |
|---|
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, 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 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 |
|---|
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 IModelInit in class EditorModelparent - the parent Activity Spaceprotected void InitSpellCheckThesaurus()
public XPStringBuilder GetErrorString()
public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
EditorModel
CheckEditorAccessAndStart in class EditorModelpublic java.lang.Object Create()
EditorModel
Create in interface IManagedObjectCreate in class EditorModelIManagedObject.Create()public void Finish()
EditorModel
Finish in interface IRepostModelFinish in class EditorModelpublic void DoApplyChanges(XPHashtable lastUserVals)
public java.lang.String GetName()
EditorModel
GetName in interface IMVCObjectGetName in class EditorModel
public int SavePage(java.lang.String _sPageName,
XPHashtable _htFormData)
EditorModel
SavePage in interface IRepostModelSavePage in class EditorModel_sPageName - _htFormData -
public java.lang.String GetBestBetSearchString()
GetBestBetSearchString in interface ISearchServerTuningEditorModelROpublic boolean GetIsShowAllBestBets()
GetIsShowAllBestBets in interface ISearchServerTuningEditorModelROpublic int GetNumBestBetsAskedFor()
GetNumBestBetsAskedFor in interface ISearchServerTuningEditorModelROpublic int GetNumBestBetsOnPage()
GetNumBestBetsOnPage in interface ISearchServerTuningEditorModelROpublic int GetBestBetStartCount()
GetBestBetStartCount in interface ISearchServerTuningEditorModelROpublic boolean GetShowPreviousBestBet()
GetShowPreviousBestBet in interface ISearchServerTuningEditorModelROpublic boolean GetShowNextBestBet()
GetShowNextBestBet in interface ISearchServerTuningEditorModelROpublic int GetTotalBestBetCount()
GetTotalBestBetCount in interface ISearchServerTuningEditorModelROpublic int GetNumDeletedBestBets()
GetNumDeletedBestBets in interface ISearchServerTuningEditorModelROpublic 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 ISearchServerTuningEditorModelROpublic java.lang.String GetBestBetTrigger(int i)
GetBestBetTrigger in interface ISearchServerTuningEditorModelROpublic java.lang.String GetBestBetSetupString(int i)
GetBestBetSetupString in interface ISearchServerTuningEditorModelROpublic IXPList GetBestBetTargets(int i)
GetBestBetTargets in interface ISearchServerTuningEditorModelROpublic boolean HasBestBetBeenDeleted(int i)
HasBestBetBeenDeleted in interface ISearchServerTuningEditorModelROpublic 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 ISearchServerTuningEditorModelROpublic 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 ISearchServerTuningEditorModelROnumber - 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 ISearchServerTuningEditorModelROpublic java.lang.Object[] GetCurrentAliasElements()
GetCurrentAliasElements in interface ISearchServerTuningEditorModelROprotected void RecalculatePercentages(SearchServerTuningEditorModel.AliasElement[] elements)
public boolean GetThesaurusOn()
GetThesaurusOn in interface ISearchServerTuningEditorModelROpublic void SetThesaurusOn(boolean tf)
ISearchServerTuningEditorModelRO
SetThesaurusOn in interface ISearchServerTuningEditorModelROpublic boolean GetSpellCheckOn()
GetSpellCheckOn in interface ISearchServerTuningEditorModelROpublic void SetSpellCheckOn(boolean tf)
ISearchServerTuningEditorModelRO
SetSpellCheckOn in interface ISearchServerTuningEditorModelROpublic 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 | ||||||||