public abstract class AbstractSearchController extends AbstractBackofficeWidgetController
| Modifier and Type | Field and Description |
|---|---|
protected CockpitLocaleService |
cockpitLocaleService
Deprecated.
since 6.7, will be removed in the future.
|
protected LabelService |
labelService
Deprecated.
since 6.7, will be removed in the future.
|
static String |
MODEL_INIT_CONTEXT |
static String |
MODEL_INITIALIZED_FROM_INIT_CTX |
protected PermissionFacade |
permissionFacade
Deprecated.
since 6.7, will be removed in the future.
|
static String |
SEARCH_MODEL |
protected org.zkoss.zul.Bandbox |
searchBox |
protected static String |
SETTING_ACTION_SLOT_COMPONENT_CTX |
protected static String |
SETTING_ADVANCED_SEARCH_CONFIG_CTX_CODE |
protected static String |
SETTING_DISABLE_AUTO_SEARCH |
protected static String |
SETTING_MIN_AUTO_SUGGESTIONS_QUERY_LENGTH |
protected static String |
SETTING_SIMPLE_SEARCH_CONFIG_CTX_CODE |
protected static String |
SIMPLE_SEARCH_MODE_ACTIVE |
static String |
SIMPLE_SEARCH_TEXT_QUERY |
static String |
SOCKET_OUT_AUTO_SUGGESTION_DATA |
static String |
SOCKET_OUT_SEARCH_DATA |
protected TypeFacade |
typeFacade |
| Constructor and Description |
|---|
AbstractSearchController() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
adjustWidgetModel(AdvancedSearch advancedSearch,
AdvancedSearchData searchData,
boolean rootTypeChanged,
DataType dataType) |
protected void |
applySimpleSearchConfiguration(String searchText,
String typeCode,
AdvancedSearchData queryData) |
protected AdvancedSearchData |
buildQueryData(String searchText,
String typeCode) |
protected boolean |
canReadType(String typeCode)
Deprecated.
since 6.7, the method will not be used anymore
|
protected void |
clearSearchBox()
Deprecated.
since 6.7, the method will not be used anymore
|
protected void |
clearSearchBoxAndRelatedViews() |
protected AdvancedSearchData |
createAdvancedSearchDataWithInitContext()
Creates a new instance of
AdvancedSearchData. |
protected void |
createListenerForBandPopup() |
protected abstract boolean |
doSimpleSearch() |
protected Actions |
getActionSlot() |
protected org.zkoss.zul.Bandpopup |
getAutosuggestionBandpopup() |
protected org.zkoss.zul.Listbox |
getAutosuggestionListbox() |
protected String |
getCompleteSuggestion(String searchedPhraseWithoutLastWord,
String suggestion) |
protected LabelService |
getLabelService()
Deprecated.
since 6.7, will be removed in the future.
|
protected String |
getSearchText() |
protected TypeFacade |
getTypeFacade() |
protected void |
initAutoSuggestionAndAutoCorrectionComponents() |
protected boolean |
isSearchBoxOrRelatedViewsNull() |
protected boolean |
isSimpleSearchActive() |
protected <T> T |
loadConfiguration(ConfigContext configurationContext,
Class<T> configurationClass) |
protected <T> T |
loadConfiguration(String type,
String configurationContextCode,
Class<T> configurationClass) |
protected DataType |
loadDataTypeForCode(String typeCode) |
protected SimpleSearch |
loadSimpleConfiguration(String type) |
protected void |
openSearchBoxWithBandPopup() |
protected void |
populateAutoSuggestions(String query) |
protected void |
processAutoSuggestions(Map<String,Collection> autoSuggestions) |
protected void |
processFullTextSearchData(FullTextSearchData fullTextSearchData) |
void |
requestAutoSuggestions() |
protected void |
setActionSlot(Actions actionSlot) |
protected void |
setActionSlotTypeCode(String typeCode) |
protected void |
setAutosuggestionBandpopup(org.zkoss.zul.Bandpopup autosuggestionBandpopup) |
protected void |
setAutosuggestionListbox(org.zkoss.zul.Listbox autosuggestionListbox) |
void |
setTypeFacade(TypeFacade typeFacade) |
protected boolean |
shouldPopulateAutoSuggestions(String query) |
getNotificationSource, handleRuntimeExceptiondoAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initialize, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitlescanEventListenersalert, didActivate, getPage, willClone, willPassivatepublic static final String SEARCH_MODEL
public static final String MODEL_INIT_CONTEXT
public static final String SIMPLE_SEARCH_TEXT_QUERY
public static final String MODEL_INITIALIZED_FROM_INIT_CTX
public static final String SOCKET_OUT_AUTO_SUGGESTION_DATA
public static final String SOCKET_OUT_SEARCH_DATA
protected static final String SETTING_DISABLE_AUTO_SEARCH
protected static final String SETTING_SIMPLE_SEARCH_CONFIG_CTX_CODE
protected static final String SIMPLE_SEARCH_MODE_ACTIVE
protected static final String SETTING_ACTION_SLOT_COMPONENT_CTX
protected static final String SETTING_ADVANCED_SEARCH_CONFIG_CTX_CODE
protected static final String SETTING_MIN_AUTO_SUGGESTIONS_QUERY_LENGTH
protected transient TypeFacade typeFacade
@Deprecated protected transient LabelService labelService
@Deprecated protected transient PermissionFacade permissionFacade
@Deprecated protected transient CockpitLocaleService cockpitLocaleService
protected org.zkoss.zul.Bandbox searchBox
public void requestAutoSuggestions()
protected boolean shouldPopulateAutoSuggestions(String query)
protected void populateAutoSuggestions(String query)
protected void initAutoSuggestionAndAutoCorrectionComponents()
protected org.zkoss.zul.Bandpopup getAutosuggestionBandpopup()
protected void setAutosuggestionBandpopup(org.zkoss.zul.Bandpopup autosuggestionBandpopup)
protected org.zkoss.zul.Listbox getAutosuggestionListbox()
protected void setAutosuggestionListbox(org.zkoss.zul.Listbox autosuggestionListbox)
protected void processAutoSuggestions(Map<String,Collection> autoSuggestions)
protected boolean isSearchBoxOrRelatedViewsNull()
protected void clearSearchBoxAndRelatedViews()
protected String getCompleteSuggestion(String searchedPhraseWithoutLastWord, String suggestion)
@Deprecated protected void clearSearchBox()
protected void createListenerForBandPopup()
protected void openSearchBoxWithBandPopup()
protected void processFullTextSearchData(FullTextSearchData fullTextSearchData)
protected void setActionSlotTypeCode(String typeCode)
@Deprecated protected boolean canReadType(String typeCode)
protected abstract void adjustWidgetModel(AdvancedSearch advancedSearch, AdvancedSearchData searchData, boolean rootTypeChanged, DataType dataType)
protected abstract boolean doSimpleSearch()
protected String getSearchText()
protected boolean isSimpleSearchActive()
protected AdvancedSearchData buildQueryData(String searchText, String typeCode)
protected void applySimpleSearchConfiguration(String searchText, String typeCode, AdvancedSearchData queryData)
protected SimpleSearch loadSimpleConfiguration(String type)
protected AdvancedSearchData createAdvancedSearchDataWithInitContext()
AdvancedSearchData. If MODEL_INIT_CONTEXT in widgetModel is not null then
a copy of its
AdvancedSearchInitContext.getAdvancedSearchData() is
returnedAdvancedSearchData.protected <T> T loadConfiguration(String type, String configurationContextCode, Class<T> configurationClass)
protected <T> T loadConfiguration(ConfigContext configurationContext, Class<T> configurationClass)
protected Actions getActionSlot()
protected void setActionSlot(Actions actionSlot)
protected TypeFacade getTypeFacade()
public void setTypeFacade(TypeFacade typeFacade)
@Deprecated protected LabelService getLabelService()
Copyright © 2018. All rights reserved.