Class AdvancedSearchEngineController
- 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.engine.AdvancedSearchEngineController
-
- All Implemented Interfaces:
WidgetController,WidgetDragAndDropAware,WidgetInstanceManagerAware,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 AdvancedSearchEngineController extends DefaultWidgetController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTOSUGGESTION_DATA_INPUTstatic java.lang.StringAUTOSUGGESTION_OUTPUTstatic java.lang.StringCHANGE_SEARCH_CONTEXTstatic java.lang.StringDEFAULT_PAGE_SIZE_KEYstatic intDEFAULT_PAGE_SIZE_VALUEstatic java.lang.StringFULL_TEXT_SEARCH_DATA_OUTPUTstatic java.lang.StringMODEL_SEARCH_CONTEXTstatic java.lang.StringPAGEABLE_OUTPUTstatic java.lang.StringSEARCH_DATA_INPUT
-
Constructor Summary
Constructors Constructor Description AdvancedSearchEngineController()
-
Method Summary
-
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
-
DEFAULT_PAGE_SIZE_VALUE
public static final int DEFAULT_PAGE_SIZE_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_PAGE_SIZE_KEY
public static final java.lang.String DEFAULT_PAGE_SIZE_KEY
- See Also:
- Constant Field Values
-
SEARCH_DATA_INPUT
public static final java.lang.String SEARCH_DATA_INPUT
- See Also:
- Constant Field Values
-
CHANGE_SEARCH_CONTEXT
public static final java.lang.String CHANGE_SEARCH_CONTEXT
- See Also:
- Constant Field Values
-
AUTOSUGGESTION_DATA_INPUT
public static final java.lang.String AUTOSUGGESTION_DATA_INPUT
- See Also:
- Constant Field Values
-
PAGEABLE_OUTPUT
public static final java.lang.String PAGEABLE_OUTPUT
- See Also:
- Constant Field Values
-
FULL_TEXT_SEARCH_DATA_OUTPUT
public static final java.lang.String FULL_TEXT_SEARCH_DATA_OUTPUT
- See Also:
- Constant Field Values
-
AUTOSUGGESTION_OUTPUT
public static final java.lang.String AUTOSUGGESTION_OUTPUT
- See Also:
- Constant Field Values
-
MODEL_SEARCH_CONTEXT
public static final java.lang.String MODEL_SEARCH_CONTEXT
- See Also:
- Constant Field Values
-
-
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
-
onSearchDataInput
public void onSearchDataInput(AdvancedSearchData searchData)
-
processAdvancedSearchQueryData
protected Pageable processAdvancedSearchQueryData(AdvancedSearchQueryData searchQueryData, AdvancedSearchData searchData)
-
onAutoSuggestionInput
public void onAutoSuggestionInput(AutosuggestionQueryData suggestionQueryData)
-
changeSearchContext
public void changeSearchContext(Context context)
-
buildQueryData
protected AdvancedSearchQueryData buildQueryData(AdvancedSearchData searchData)
-
getFieldSearchFacade
public FieldSearchFacade getFieldSearchFacade()
-
setFieldSearchFacade
public void setFieldSearchFacade(FieldSearchFacade fieldSearchFacade)
-
getExceptionTranslationService
public ExceptionTranslationService getExceptionTranslationService()
-
setExceptionTranslationService
public void setExceptionTranslationService(ExceptionTranslationService exceptionTranslationService)
-
getNotificationService
protected NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
-
getPermissionFacade
protected PermissionFacade getPermissionFacade()
-
setPermissionFacade
public void setPermissionFacade(PermissionFacade permissionFacade)
-
-