Class AdvancedSearchController
- java.lang.Object
-
- org.zkoss.zk.ui.event.GenericEventListener
-
- org.zkoss.zk.ui.util.GenericComposer<T>
-
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
-
- org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
-
- com.hybris.cockpitng.util.ViewAnnotationAwareComposer
-
- com.hybris.cockpitng.util.DefaultWidgetController
-
- com.hybris.backoffice.widgets.advancedsearch.AbstractSearchController
-
- com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchController
-
- All Implemented Interfaces:
WidgetController,WidgetDragAndDropAware,WidgetInstanceManagerAware,WidgetCaptionRenderer,java.io.Serializable,org.zkoss.zk.ui.event.EventListener,org.zkoss.zk.ui.event.SerializableEventListener,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>
public class AdvancedSearchController extends AbstractSearchController implements WidgetCaptionRenderer
Widget controller of theadvanced searchwidget.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringACTION_SLOT_GROUP_COMMONstatic java.lang.StringADVANCED_SEARCH_CONFIGURATIONstatic java.lang.StringBUTTON_SEARCHMODE_TOOLTIP_I18N_KEYprotected CockpitLocaleServicecockpitLocaleServiceprotected DefaultFacetRendererdefaultFacetRendererprotected static java.lang.StringDISABLE_SUBTYPES_CHECKBOXprotected static java.lang.StringDISABLE_TYPES_SELECTORprotected org.zkoss.zul.DivfacetContainerprotected static java.lang.StringFORCE_SEARCH_FOR_CODEstatic java.lang.StringINSUFFICIENT_PERMISSION_TO_SEARCHstatic java.lang.StringMODEL_SUBTYPE_CHANGEDstatic java.lang.StringSCLASS_NON_COLLAPSIBLE_CONTAINERstatic java.lang.StringSEARCHstatic java.lang.StringSEARCH_MODEL_CACHEprotected static java.lang.StringSEND_RESET_WHEN_DISABLE_AUTO_SEARCHprotected static java.lang.StringSETTING_DISABLE_SEARCH_MODEL_CACHEprotected static java.lang.StringSETTING_DISABLE_SIMPLE_SEARCHprotected static java.lang.StringSETTING_DISPLAY_IN_NON_COLLAPSIBLE_CONTAINERprotected static java.lang.StringSETTING_ENABLED_NESTED_WIDGET_VIEWstatic java.lang.StringSOCKET_IN_ATTACH_PARAMETERSstatic java.lang.StringSOCKET_IN_AUTO_SUGGESTIONSstatic java.lang.StringSOCKET_IN_FULL_TEXT_SEARCH_DATAstatic java.lang.StringSOCKET_IN_INIT_CONTEXTstatic java.lang.StringSOCKET_IN_REFRESH_RESULTSprotected static java.lang.StringSOCKET_IN_SORTDATAstatic java.lang.StringSOCKET_IN_TYPEstatic java.lang.StringSOCKET_OUT_RESETprotected static java.lang.StringSORT_CONTROL_CNTstatic java.lang.StringWIDGET_SETTING_ENABLE_QUICK_FACET_FILTERstatic java.lang.StringWIDGET_SETTING_FACET_RENDER_INCREMENT_STEPstatic java.lang.StringWIDGET_SETTING_FACET_RENDER_LIMITstatic java.lang.StringWIDGET_SETTING_HIDE_TYPES_WITHOUT_CLAZZstatic java.lang.StringWIDGET_SETTING_INSTANT_FACETSstatic java.lang.StringWIDGET_SETTING_MAX_INLINE_FACETS-
Fields inherited from class com.hybris.backoffice.widgets.advancedsearch.AbstractSearchController
MODEL_INIT_CONTEXT, MODEL_INITIALIZED_FROM_INIT_CTX, permissionFacade, SEARCH_MODEL, searchBox, SETTING_ACTION_SLOT_COMPONENT_CTX, SETTING_ADVANCED_SEARCH_CONFIG_CTX_CODE, SETTING_DISABLE_AUTO_SEARCH, SETTING_MIN_AUTO_SUGGESTIONS_QUERY_LENGTH, SETTING_SIMPLE_SEARCH_CONFIG_CTX_CODE, SIMPLE_SEARCH_MODE_ACTIVE, SIMPLE_SEARCH_TEXT_QUERY, SOCKET_OUT_AUTO_SUGGESTION_DATA, SOCKET_OUT_SEARCH_DATA, typeFacade
-
-
Constructor Summary
Constructors Constructor Description AdvancedSearchController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidadjustIncludeSubtypeControl(org.zkoss.zul.Checkbox includeSubtypes, AdvancedSearch advancedSearch)Deprecated, for removal: This API element is subject to removal in a future version.protected voidadjustIncludeSubtypeControl(org.zkoss.zul.Checkbox includeSubtypes, AdvancedSearch advancedSearch, AdvancedSearchData searchData)protected voidadjustWidgetModel(AdvancedSearch advancedSearch, AdvancedSearchData searchData, boolean rootTypeChanged, DataType dataType)protected voidassignType(java.lang.String typeCode)voidattachParameters(AdvancedSearchDataParameters parameters)protected booleancanResetFacets(java.lang.String selectedTypeCode, java.lang.String searchDataTypeCode)voidchangeType(java.lang.String typeCode)protected voidclearSimpleTextbox()protected booleandoAdvancedSearch()booleandoSearch()protected booleandoSimpleSearch()protected java.util.Optional<AdvancedSearchData>getAdvancedSearchDataFromInitCtx()protected AdvancedSearchDataUtilgetAdvancedSearchDataUtil()org.zkoss.zul.DivgetAdvancedSearchModeCaptionContainer()org.zkoss.zul.GridgetAttributesGrid()CockpitLocaleServicegetCockpitLocaleService()protected ValueComparisonOperatorgetCurrentGlobalOperator()DefaultFacetRenderergetDefaultFacetRenderer()org.zkoss.zul.DivgetFacetContainer()protected java.util.Set<java.lang.String>getForcedSearchTypeCodes()org.zkoss.zul.CheckboxgetIncludeSubtypes()WidgetslotgetNestedWidget()org.zkoss.zul.DivgetNonCollapsibleCaptionContainer()protected NotificationServicegetNotificationService()protected java.lang.StringgetNotificationSource()org.zkoss.zul.ComboboxgetOperatorSelector()AdvancedSearchRenderergetRenderer()org.zkoss.zul.BandboxgetSearchBox()org.zkoss.zul.ButtongetSearchButton()org.zkoss.zul.DivgetSearchComponentsContainer()org.zkoss.zul.DivgetSearchModeCaptionContainer()protected java.util.Optional<AdvancedSearchData>getSearchModel()org.zkoss.zul.ButtongetSearchModeToggleButton()org.zkoss.zul.LabelgetSearchTitle()org.zkoss.zul.RadiogroupgetSortControlCnt()org.zkoss.zul.DivgetTopContainer()org.zkoss.zul.BandboxgetTypeSelectorBBox()org.zkoss.zul.TreegetTypeSelectorTree()protected voidhandleRuntimeException(java.lang.RuntimeException exception)protected booleanhasInitialContext()protected booleanhasInternalStateChanged(java.lang.String type)protected voidinitActionSlotComponent()protected voidinitAdvancedSearchCaptionComponents()protected voidinitCaptionComponents()voidinitialize(org.zkoss.zk.ui.Component comp)Override this method to do initialization stuff for your widget, like initialize widget settings, restore view state from viewmodel, etc.voidinitializeWithContext(AdvancedSearchInitContext initContext)protected AdvancedSearchDatainitOrLoadAdvancedSearchModel(AdvancedSearch advancedSearch, DataType dataType)protected voidinitSimpleSearchCaptionComponents()protected booleanisAttributesContainerCollapsed()protected booleanisCurrentTypeSearchable()protected booleanisDisplayInNonCollapsibleContainer()protected booleanisIncludeSubtypesCheckboxDisabled(AdvancedSearch advancedSearch)protected booleanisIncludeSubtypesDisabledBySetting()protected booleanisInitializedWithCtxForType(java.lang.String typeCode)protected booleanisNestedWidgetViewEnabled()protected booleanisSimpleSearchActive()protected booleanisSimpleSearchDisabledByInitCtx()protected booleanisTypesSelectorDisabledBySetting()protected booleanisWidgetCaptionRenderedByController()protected AdvancedSearchloadAdvancedConfiguration(java.lang.String type)voidonAutoSuggestions(java.util.Map<java.lang.String,java.util.Collection> autoSuggestions)protected voidonChangeType(java.lang.String typeCode, boolean rootTypeChanged)voidonFullTextSearchData(FullTextSearchData fullTextSearchData)voidonGlobalOperatorChange()voidonIncludeSubtypesChange()voidonRefreshResults()voidonSortChange(org.zkoss.zk.ui.event.CheckEvent event)protected voidperformChangeType(java.lang.String typeCode, boolean rootTypeChanged)protected voidprepareModelForType(java.lang.String typeCode)voidprocessSortData(SortData sortData)protected voidrecalculateNestedWidgetSize()protected voidregisterModelObservers()org.zkoss.zk.ui.ComponentrenderCaption(WidgetCaptionWrapper captionWrapper)protected voidresetFacets()protected voidresetFacetsOnChangeType()protected booleanresetOnAutoSearchOff()protected voidresetSimpleSearchTerm()protected voidsearchOnTypeChangeIfRequired(java.lang.String typeCode, boolean isTypeChanging)voidsetAdvancedSearchDataUtil(AdvancedSearchDataUtil advancedSearchDataUtil)voidsetAdvancedSearchModeCaptionContainer(org.zkoss.zul.Div advancedSearchModeCaptionContainer)voidsetAttributesGrid(org.zkoss.zul.Grid attributesGrid)voidsetFacetContainer(org.zkoss.zul.Div facetContainer)voidsetIncludeSubtypes(org.zkoss.zul.Checkbox includeSubtypes)voidsetNestedWidget(Widgetslot nestedWidget)voidsetNonCollapsibleCaptionContainer(org.zkoss.zul.Div nonCollapsibleCaptionContainer)voidsetOperatorSelector(org.zkoss.zul.Combobox operatorSelector)voidsetSearchBox(org.zkoss.zul.Bandbox searchBox)voidsetSearchButton(org.zkoss.zul.Button searchButton)voidsetSearchComponentsContainer(org.zkoss.zul.Div searchComponentsContainer)protected voidsetSearchModeCaptionContainer(boolean simpleSearchVisible, boolean simpleSearchDisabled, boolean simpleSearchDisabledByQuery)voidsetSearchModeCaptionContainer(org.zkoss.zul.Div searchModeCaptionContainer)voidsetSearchModeToggleButton(org.zkoss.zul.Button searchModeToggleButton)voidsetSearchTitle(org.zkoss.zul.Label searchTitle)voidsetSortControlCnt(org.zkoss.zul.Radiogroup sortControlCnt)protected voidsetTitleOfTheWidget(java.lang.String type)voidsetTopContainer(org.zkoss.zul.Div topContainer)voidsetTypeSelectorBBox(org.zkoss.zul.Bandbox typeSelectorBBox)voidsetTypeSelectorTree(org.zkoss.zul.Tree typeSelectorTree)protected booleanshouldDisplayFacets()protected booleanshouldDoAutoSearch(AdvancedSearch config)protected booleanshouldShowSimpleSearch(AdvancedSearch config)protected voidupdateIncludeSubtypesCheckbox(AdvancedSearchData searchData)protected voidupdateOpenStateSClass(boolean isOpen)protected voidupdateSearchMode(AdvancedSearch config)protected booleanvalidateMandatoryFields(AdvancedSearchData searchData)Validates that for each mandatory field at least 1 condition is provided.protected voidwarmUpFacadeWithSubtypes(DataType dataType)-
Methods inherited from class com.hybris.backoffice.widgets.advancedsearch.AbstractSearchController
applySimpleSearchConfiguration, buildQueryData, canReadType, clearSearchBoxAndRelatedViews, createAdvancedSearchDataWithInitContext, createListenerForBandPopup, getActionSlot, getAutosuggestionBandpopup, getAutosuggestionListbox, getCompleteSuggestion, getPermissionFacade, getSearchText, getTypeFacade, initAutoSuggestionAndAutoCorrectionComponents, isApplicableForSimpleSearch, isSearchBoxOrRelatedViewsNull, loadConfiguration, loadConfiguration, loadDataTypeForCode, loadSimpleConfiguration, openSearchBoxWithBandPopup, populateAutoSuggestions, processAutoSuggestions, processFullTextSearchData, requestAutoSuggestions, setActionSlot, setActionSlotTypeCode, setAutosuggestionBandpopup, setAutosuggestionListbox, setPermissionFacade, setTypeFacade, shouldPopulateAutoSuggestions
-
Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController
doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitle
-
Methods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListeners
-
Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivate
-
-
-
-
Field Detail
-
SEARCH_MODEL_CACHE
public static final java.lang.String SEARCH_MODEL_CACHE
- See Also:
- Constant Field Values
-
ADVANCED_SEARCH_CONFIGURATION
public static final java.lang.String ADVANCED_SEARCH_CONFIGURATION
- See Also:
- Constant Field Values
-
MODEL_SUBTYPE_CHANGED
public static final java.lang.String MODEL_SUBTYPE_CHANGED
- See Also:
- Constant Field Values
-
SCLASS_NON_COLLAPSIBLE_CONTAINER
public static final java.lang.String SCLASS_NON_COLLAPSIBLE_CONTAINER
- See Also:
- Constant Field Values
-
BUTTON_SEARCHMODE_TOOLTIP_I18N_KEY
public static final java.lang.String BUTTON_SEARCHMODE_TOOLTIP_I18N_KEY
- See Also:
- Constant Field Values
-
SEARCH
public static final java.lang.String SEARCH
- See Also:
- Constant Field Values
-
WIDGET_SETTING_INSTANT_FACETS
public static final java.lang.String WIDGET_SETTING_INSTANT_FACETS
- See Also:
- Constant Field Values
-
WIDGET_SETTING_ENABLE_QUICK_FACET_FILTER
public static final java.lang.String WIDGET_SETTING_ENABLE_QUICK_FACET_FILTER
- See Also:
- Constant Field Values
-
WIDGET_SETTING_MAX_INLINE_FACETS
public static final java.lang.String WIDGET_SETTING_MAX_INLINE_FACETS
- See Also:
- Constant Field Values
-
WIDGET_SETTING_FACET_RENDER_LIMIT
public static final java.lang.String WIDGET_SETTING_FACET_RENDER_LIMIT
- See Also:
- Constant Field Values
-
WIDGET_SETTING_FACET_RENDER_INCREMENT_STEP
public static final java.lang.String WIDGET_SETTING_FACET_RENDER_INCREMENT_STEP
- See Also:
- Constant Field Values
-
WIDGET_SETTING_HIDE_TYPES_WITHOUT_CLAZZ
public static final java.lang.String WIDGET_SETTING_HIDE_TYPES_WITHOUT_CLAZZ
- See Also:
- Constant Field Values
-
SOCKET_IN_REFRESH_RESULTS
public static final java.lang.String SOCKET_IN_REFRESH_RESULTS
- See Also:
- Constant Field Values
-
SOCKET_OUT_RESET
public static final java.lang.String SOCKET_OUT_RESET
- See Also:
- Constant Field Values
-
SOCKET_IN_INIT_CONTEXT
public static final java.lang.String SOCKET_IN_INIT_CONTEXT
- See Also:
- Constant Field Values
-
SOCKET_IN_FULL_TEXT_SEARCH_DATA
public static final java.lang.String SOCKET_IN_FULL_TEXT_SEARCH_DATA
- See Also:
- Constant Field Values
-
SOCKET_IN_TYPE
public static final java.lang.String SOCKET_IN_TYPE
- See Also:
- Constant Field Values
-
SOCKET_IN_AUTO_SUGGESTIONS
public static final java.lang.String SOCKET_IN_AUTO_SUGGESTIONS
- See Also:
- Constant Field Values
-
SOCKET_IN_ATTACH_PARAMETERS
public static final java.lang.String SOCKET_IN_ATTACH_PARAMETERS
- See Also:
- Constant Field Values
-
INSUFFICIENT_PERMISSION_TO_SEARCH
public static final java.lang.String INSUFFICIENT_PERMISSION_TO_SEARCH
- See Also:
- Constant Field Values
-
ACTION_SLOT_GROUP_COMMON
protected static final java.lang.String ACTION_SLOT_GROUP_COMMON
- See Also:
- Constant Field Values
-
SORT_CONTROL_CNT
protected static final java.lang.String SORT_CONTROL_CNT
- See Also:
- Constant Field Values
-
SOCKET_IN_SORTDATA
protected static final java.lang.String SOCKET_IN_SORTDATA
- See Also:
- Constant Field Values
-
SETTING_DISABLE_SIMPLE_SEARCH
protected static final java.lang.String SETTING_DISABLE_SIMPLE_SEARCH
- See Also:
- Constant Field Values
-
SETTING_ENABLED_NESTED_WIDGET_VIEW
protected static final java.lang.String SETTING_ENABLED_NESTED_WIDGET_VIEW
- See Also:
- Constant Field Values
-
FORCE_SEARCH_FOR_CODE
protected static final java.lang.String FORCE_SEARCH_FOR_CODE
- See Also:
- Constant Field Values
-
SETTING_DISABLE_SEARCH_MODEL_CACHE
protected static final java.lang.String SETTING_DISABLE_SEARCH_MODEL_CACHE
- See Also:
- Constant Field Values
-
SETTING_DISPLAY_IN_NON_COLLAPSIBLE_CONTAINER
protected static final java.lang.String SETTING_DISPLAY_IN_NON_COLLAPSIBLE_CONTAINER
- See Also:
- Constant Field Values
-
SEND_RESET_WHEN_DISABLE_AUTO_SEARCH
protected static final java.lang.String SEND_RESET_WHEN_DISABLE_AUTO_SEARCH
- See Also:
- Constant Field Values
-
DISABLE_SUBTYPES_CHECKBOX
protected static final java.lang.String DISABLE_SUBTYPES_CHECKBOX
- See Also:
- Constant Field Values
-
DISABLE_TYPES_SELECTOR
protected static final java.lang.String DISABLE_TYPES_SELECTOR
- See Also:
- Constant Field Values
-
cockpitLocaleService
protected transient CockpitLocaleService cockpitLocaleService
-
defaultFacetRenderer
protected transient DefaultFacetRenderer defaultFacetRenderer
-
facetContainer
protected org.zkoss.zul.Div facetContainer
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component comp)
Description copied from class:DefaultWidgetControllerOverride this method to do initialization stuff for your widget, like initialize widget settings, restore view state from viewmodel, etc. This method will be invoked byDefaultWidgetController.doAfterCompose(Component)everytime your widget view is created. SeeGenericForwardComposer.doAfterCompose(Component)for more details.- Overrides:
initializein classDefaultWidgetController
-
onRefreshResults
public void onRefreshResults()
-
changeType
public void changeType(java.lang.String typeCode)
-
getNotificationSource
protected java.lang.String getNotificationSource()
-
handleRuntimeException
protected void handleRuntimeException(java.lang.RuntimeException exception)
-
onFullTextSearchData
public void onFullTextSearchData(FullTextSearchData fullTextSearchData)
-
attachParameters
public void attachParameters(AdvancedSearchDataParameters parameters)
-
initializeWithContext
public void initializeWithContext(AdvancedSearchInitContext initContext)
-
onChangeType
protected void onChangeType(java.lang.String typeCode, boolean rootTypeChanged)
-
searchOnTypeChangeIfRequired
protected void searchOnTypeChangeIfRequired(java.lang.String typeCode, boolean isTypeChanging)
-
warmUpFacadeWithSubtypes
protected void warmUpFacadeWithSubtypes(DataType dataType)
-
onAutoSuggestions
public void onAutoSuggestions(java.util.Map<java.lang.String,java.util.Collection> autoSuggestions)
-
processSortData
public void processSortData(SortData sortData)
-
updateIncludeSubtypesCheckbox
protected void updateIncludeSubtypesCheckbox(AdvancedSearchData searchData)
-
resetFacetsOnChangeType
protected void resetFacetsOnChangeType()
-
initActionSlotComponent
protected void initActionSlotComponent()
-
initCaptionComponents
protected void initCaptionComponents()
-
initAdvancedSearchCaptionComponents
protected void initAdvancedSearchCaptionComponents()
-
initSimpleSearchCaptionComponents
protected void initSimpleSearchCaptionComponents()
-
isWidgetCaptionRenderedByController
protected boolean isWidgetCaptionRenderedByController()
-
isDisplayInNonCollapsibleContainer
protected boolean isDisplayInNonCollapsibleContainer()
-
doSimpleSearch
protected boolean doSimpleSearch()
- Specified by:
doSimpleSearchin classAbstractSearchController
-
hasInitialContext
protected boolean hasInitialContext()
-
assignType
protected void assignType(java.lang.String typeCode)
-
canResetFacets
protected boolean canResetFacets(java.lang.String selectedTypeCode, java.lang.String searchDataTypeCode)
-
prepareModelForType
protected void prepareModelForType(java.lang.String typeCode)
-
isInitializedWithCtxForType
protected boolean isInitializedWithCtxForType(java.lang.String typeCode)
-
getAdvancedSearchDataFromInitCtx
protected java.util.Optional<AdvancedSearchData> getAdvancedSearchDataFromInitCtx()
-
resetSimpleSearchTerm
protected void resetSimpleSearchTerm()
-
resetFacets
protected void resetFacets()
-
adjustWidgetModel
protected void adjustWidgetModel(AdvancedSearch advancedSearch, AdvancedSearchData searchData, boolean rootTypeChanged, DataType dataType)
- Specified by:
adjustWidgetModelin classAbstractSearchController
-
setTitleOfTheWidget
protected void setTitleOfTheWidget(java.lang.String type)
-
adjustIncludeSubtypeControl
@Deprecated(since="1811", forRemoval=true) protected void adjustIncludeSubtypeControl(org.zkoss.zul.Checkbox includeSubtypes, AdvancedSearch advancedSearch)Deprecated, for removal: This API element is subject to removal in a future version.
-
adjustIncludeSubtypeControl
protected void adjustIncludeSubtypeControl(org.zkoss.zul.Checkbox includeSubtypes, AdvancedSearch advancedSearch, AdvancedSearchData searchData)
-
isIncludeSubtypesCheckboxDisabled
protected boolean isIncludeSubtypesCheckboxDisabled(AdvancedSearch advancedSearch)
-
isIncludeSubtypesDisabledBySetting
protected boolean isIncludeSubtypesDisabledBySetting()
-
isTypesSelectorDisabledBySetting
protected boolean isTypesSelectorDisabledBySetting()
-
shouldDoAutoSearch
protected boolean shouldDoAutoSearch(AdvancedSearch config)
-
resetOnAutoSearchOff
protected boolean resetOnAutoSearchOff()
-
hasInternalStateChanged
protected boolean hasInternalStateChanged(java.lang.String type)
-
getForcedSearchTypeCodes
protected java.util.Set<java.lang.String> getForcedSearchTypeCodes()
-
performChangeType
protected void performChangeType(java.lang.String typeCode, boolean rootTypeChanged)
-
registerModelObservers
protected void registerModelObservers()
-
shouldDisplayFacets
protected boolean shouldDisplayFacets()
-
initOrLoadAdvancedSearchModel
protected AdvancedSearchData initOrLoadAdvancedSearchModel(AdvancedSearch advancedSearch, DataType dataType)
-
getSearchModel
protected java.util.Optional<AdvancedSearchData> getSearchModel()
-
onGlobalOperatorChange
public void onGlobalOperatorChange()
-
getCurrentGlobalOperator
protected ValueComparisonOperator getCurrentGlobalOperator()
-
onIncludeSubtypesChange
public void onIncludeSubtypesChange()
-
onSortChange
public void onSortChange(org.zkoss.zk.ui.event.CheckEvent event)
-
doSearch
public boolean doSearch()
-
doAdvancedSearch
protected boolean doAdvancedSearch()
-
isSimpleSearchActive
protected boolean isSimpleSearchActive()
- Overrides:
isSimpleSearchActivein classAbstractSearchController
-
validateMandatoryFields
protected boolean validateMandatoryFields(AdvancedSearchData searchData)
Validates that for each mandatory field at least 1 condition is provided. Highlights the missing conditions.
-
getRenderer
public AdvancedSearchRenderer getRenderer()
-
renderCaption
public org.zkoss.zk.ui.Component renderCaption(WidgetCaptionWrapper captionWrapper)
- Specified by:
renderCaptionin interfaceWidgetCaptionRenderer- Parameters:
captionWrapper- The captionWrapper should be used to communicate with the parent container- Returns:
- The content of the caption to be displayed.
-
recalculateNestedWidgetSize
protected void recalculateNestedWidgetSize()
-
updateOpenStateSClass
protected void updateOpenStateSClass(boolean isOpen)
-
updateSearchMode
protected void updateSearchMode(AdvancedSearch config)
-
setSearchModeCaptionContainer
protected void setSearchModeCaptionContainer(boolean simpleSearchVisible, boolean simpleSearchDisabled, boolean simpleSearchDisabledByQuery)
-
shouldShowSimpleSearch
protected boolean shouldShowSimpleSearch(AdvancedSearch config)
-
isSimpleSearchDisabledByInitCtx
protected boolean isSimpleSearchDisabledByInitCtx()
-
isNestedWidgetViewEnabled
protected boolean isNestedWidgetViewEnabled()
-
isAttributesContainerCollapsed
protected boolean isAttributesContainerCollapsed()
-
clearSimpleTextbox
protected void clearSimpleTextbox()
-
isCurrentTypeSearchable
protected boolean isCurrentTypeSearchable()
-
loadAdvancedConfiguration
protected AdvancedSearch loadAdvancedConfiguration(java.lang.String type)
-
getAttributesGrid
public org.zkoss.zul.Grid getAttributesGrid()
-
setAttributesGrid
public void setAttributesGrid(org.zkoss.zul.Grid attributesGrid)
-
getTopContainer
public org.zkoss.zul.Div getTopContainer()
-
setTopContainer
public void setTopContainer(org.zkoss.zul.Div topContainer)
-
getTypeSelectorTree
public org.zkoss.zul.Tree getTypeSelectorTree()
-
setTypeSelectorTree
public void setTypeSelectorTree(org.zkoss.zul.Tree typeSelectorTree)
-
getTypeSelectorBBox
public org.zkoss.zul.Bandbox getTypeSelectorBBox()
-
setTypeSelectorBBox
public void setTypeSelectorBBox(org.zkoss.zul.Bandbox typeSelectorBBox)
-
getOperatorSelector
public org.zkoss.zul.Combobox getOperatorSelector()
-
setOperatorSelector
public void setOperatorSelector(org.zkoss.zul.Combobox operatorSelector)
-
getSortControlCnt
public org.zkoss.zul.Radiogroup getSortControlCnt()
-
setSortControlCnt
public void setSortControlCnt(org.zkoss.zul.Radiogroup sortControlCnt)
-
getIncludeSubtypes
public org.zkoss.zul.Checkbox getIncludeSubtypes()
-
setIncludeSubtypes
public void setIncludeSubtypes(org.zkoss.zul.Checkbox includeSubtypes)
-
getSearchTitle
public org.zkoss.zul.Label getSearchTitle()
-
setSearchTitle
public void setSearchTitle(org.zkoss.zul.Label searchTitle)
-
getSearchModeCaptionContainer
public org.zkoss.zul.Div getSearchModeCaptionContainer()
-
setSearchModeCaptionContainer
public void setSearchModeCaptionContainer(org.zkoss.zul.Div searchModeCaptionContainer)
-
getFacetContainer
public org.zkoss.zul.Div getFacetContainer()
-
setFacetContainer
public void setFacetContainer(org.zkoss.zul.Div facetContainer)
-
getSearchComponentsContainer
public org.zkoss.zul.Div getSearchComponentsContainer()
-
setSearchComponentsContainer
public void setSearchComponentsContainer(org.zkoss.zul.Div searchComponentsContainer)
-
getAdvancedSearchModeCaptionContainer
public org.zkoss.zul.Div getAdvancedSearchModeCaptionContainer()
-
setAdvancedSearchModeCaptionContainer
public void setAdvancedSearchModeCaptionContainer(org.zkoss.zul.Div advancedSearchModeCaptionContainer)
-
getSearchModeToggleButton
public org.zkoss.zul.Button getSearchModeToggleButton()
-
setSearchModeToggleButton
public void setSearchModeToggleButton(org.zkoss.zul.Button searchModeToggleButton)
-
getSearchBox
public org.zkoss.zul.Bandbox getSearchBox()
-
setSearchBox
public void setSearchBox(org.zkoss.zul.Bandbox searchBox)
-
getSearchButton
public org.zkoss.zul.Button getSearchButton()
-
setSearchButton
public void setSearchButton(org.zkoss.zul.Button searchButton)
-
getNonCollapsibleCaptionContainer
public org.zkoss.zul.Div getNonCollapsibleCaptionContainer()
-
setNonCollapsibleCaptionContainer
public void setNonCollapsibleCaptionContainer(org.zkoss.zul.Div nonCollapsibleCaptionContainer)
-
getCockpitLocaleService
public CockpitLocaleService getCockpitLocaleService()
-
getNestedWidget
public Widgetslot getNestedWidget()
-
setNestedWidget
public void setNestedWidget(Widgetslot nestedWidget)
-
getDefaultFacetRenderer
public DefaultFacetRenderer getDefaultFacetRenderer()
-
getAdvancedSearchDataUtil
protected AdvancedSearchDataUtil getAdvancedSearchDataUtil()
-
setAdvancedSearchDataUtil
public void setAdvancedSearchDataUtil(AdvancedSearchDataUtil advancedSearchDataUtil)
-
getNotificationService
protected NotificationService getNotificationService()
-
-