Class AbstractSearchController

    • Field Detail

      • MODEL_INIT_CONTEXT

        public static final java.lang.String MODEL_INIT_CONTEXT
        See Also:
        Constant Field Values
      • SIMPLE_SEARCH_TEXT_QUERY

        public static final java.lang.String SIMPLE_SEARCH_TEXT_QUERY
        See Also:
        Constant Field Values
      • MODEL_INITIALIZED_FROM_INIT_CTX

        public static final java.lang.String MODEL_INITIALIZED_FROM_INIT_CTX
        See Also:
        Constant Field Values
      • SOCKET_OUT_AUTO_SUGGESTION_DATA

        public static final java.lang.String SOCKET_OUT_AUTO_SUGGESTION_DATA
        See Also:
        Constant Field Values
      • SOCKET_OUT_SEARCH_DATA

        public static final java.lang.String SOCKET_OUT_SEARCH_DATA
        See Also:
        Constant Field Values
      • SETTING_DISABLE_AUTO_SEARCH

        protected static final java.lang.String SETTING_DISABLE_AUTO_SEARCH
        See Also:
        Constant Field Values
      • SETTING_SIMPLE_SEARCH_CONFIG_CTX_CODE

        protected static final java.lang.String SETTING_SIMPLE_SEARCH_CONFIG_CTX_CODE
        See Also:
        Constant Field Values
      • SIMPLE_SEARCH_MODE_ACTIVE

        protected static final java.lang.String SIMPLE_SEARCH_MODE_ACTIVE
        See Also:
        Constant Field Values
      • SETTING_ACTION_SLOT_COMPONENT_CTX

        protected static final java.lang.String SETTING_ACTION_SLOT_COMPONENT_CTX
        See Also:
        Constant Field Values
      • SETTING_ADVANCED_SEARCH_CONFIG_CTX_CODE

        protected static final java.lang.String SETTING_ADVANCED_SEARCH_CONFIG_CTX_CODE
        See Also:
        Constant Field Values
      • SETTING_MIN_AUTO_SUGGESTIONS_QUERY_LENGTH

        protected static final java.lang.String SETTING_MIN_AUTO_SUGGESTIONS_QUERY_LENGTH
        See Also:
        Constant Field Values
      • typeFacade

        protected transient TypeFacade typeFacade
      • searchBox

        protected org.zkoss.zul.Bandbox searchBox
    • Constructor Detail

      • AbstractSearchController

        public AbstractSearchController()
    • Method Detail

      • requestAutoSuggestions

        public void requestAutoSuggestions()
      • shouldPopulateAutoSuggestions

        protected boolean shouldPopulateAutoSuggestions​(java.lang.String query)
      • populateAutoSuggestions

        protected void populateAutoSuggestions​(java.lang.String query)
      • initAutoSuggestionAndAutoCorrectionComponents

        protected void initAutoSuggestionAndAutoCorrectionComponents()
      • getAutosuggestionBandpopup

        protected org.zkoss.zul.Bandpopup getAutosuggestionBandpopup()
      • setAutosuggestionBandpopup

        protected void setAutosuggestionBandpopup​(org.zkoss.zul.Bandpopup autosuggestionBandpopup)
      • getAutosuggestionListbox

        protected org.zkoss.zul.Listbox getAutosuggestionListbox()
      • setAutosuggestionListbox

        protected void setAutosuggestionListbox​(org.zkoss.zul.Listbox autosuggestionListbox)
      • processAutoSuggestions

        protected void processAutoSuggestions​(java.util.Map<java.lang.String,​java.util.Collection> autoSuggestions)
      • canReadType

        protected boolean canReadType​(java.lang.String typeCode)
      • isSearchBoxOrRelatedViewsNull

        protected boolean isSearchBoxOrRelatedViewsNull()
      • clearSearchBoxAndRelatedViews

        protected void clearSearchBoxAndRelatedViews()
      • getCompleteSuggestion

        protected java.lang.String getCompleteSuggestion​(java.lang.String searchedPhraseWithoutLastWord,
                                                         java.lang.String suggestion)
      • createListenerForBandPopup

        protected void createListenerForBandPopup()
      • openSearchBoxWithBandPopup

        protected void openSearchBoxWithBandPopup()
      • loadDataTypeForCode

        protected DataType loadDataTypeForCode​(java.lang.String typeCode)
      • processFullTextSearchData

        protected void processFullTextSearchData​(FullTextSearchData fullTextSearchData)
      • setActionSlotTypeCode

        protected void setActionSlotTypeCode​(java.lang.String typeCode)
      • doSimpleSearch

        protected abstract boolean doSimpleSearch()
      • getSearchText

        protected java.lang.String getSearchText()
      • isSimpleSearchActive

        protected boolean isSimpleSearchActive()
      • buildQueryData

        protected AdvancedSearchData buildQueryData​(java.lang.String searchText,
                                                    java.lang.String typeCode)
      • applySimpleSearchConfiguration

        protected void applySimpleSearchConfiguration​(java.lang.String searchText,
                                                      java.lang.String typeCode,
                                                      AdvancedSearchData queryData)
      • isApplicableForSimpleSearch

        protected boolean isApplicableForSimpleSearch​(java.lang.String typeCode,
                                                      java.lang.String fieldName)
      • loadSimpleConfiguration

        protected SimpleSearch loadSimpleConfiguration​(java.lang.String type)
      • loadConfiguration

        protected <T> T loadConfiguration​(java.lang.String type,
                                          java.lang.String configurationContextCode,
                                          java.lang.Class<T> configurationClass)
      • loadConfiguration

        protected <T> T loadConfiguration​(ConfigContext configurationContext,
                                          java.lang.Class<T> configurationClass)
      • getActionSlot

        protected Actions getActionSlot()
      • setActionSlot

        protected void setActionSlot​(Actions actionSlot)
      • getTypeFacade

        protected TypeFacade getTypeFacade()
      • setTypeFacade

        public void setTypeFacade​(TypeFacade typeFacade)
      • setPermissionFacade

        public void setPermissionFacade​(PermissionFacade permissionFacade)