Class NavigationContextController
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
de.hybris.platform.adaptivesearchbackoffice.widgets.navigationcontext.NavigationContextController
- All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController,com.hybris.cockpitng.dnd.WidgetDragAndDropAware,com.hybris.cockpitng.engine.WidgetInstanceManagerAware,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 NavigationContextController
extends com.hybris.cockpitng.util.DefaultWidgetController
Controller for the navigation context widget.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsSearchProviderFactoryprotected static final Stringprotected static final Stringprotected org.zkoss.zul.Comboboxprotected CatalogVersionServiceprotected static final Stringprotected static final Stringprotected I18NServiceprotected static final Stringprotected static final Stringprotected static final Stringprotected org.zkoss.zul.Comboboxprotected org.zkoss.zul.Comboboxprotected com.hybris.cockpitng.labels.LabelServiceprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected com.hybris.cockpitng.components.Editorprotected SessionServiceFields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
_separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScopeFields inherited from class org.zkoss.zk.ui.util.GenericComposer
_applied -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intcompareCatalogVersions(CatalogVersionModel catalogVersion1, CatalogVersionModel catalogVersion2) protected intcompareIndexConfigurations(IndexConfigurationModel indexConfiguration1, IndexConfigurationModel indexConfiguration2) protected intcompareIndexTypes(IndexTypeModel indexType1, IndexTypeModel indexType2) protected CatalogVersionModelprotected IndexConfigurationModelprotected IndexTypeModelconvertIndexType(AsIndexTypeData source) protected ObjectcreateParentObject(NavigationContextData navigationContext) protected List<CatalogVersionModel>findCatalogVersions(String indexConfiguration, String indexType) protected List<IndexConfigurationModel>protected List<IndexTypeModel>findIndexTypes(String indexConfiguration) org.zkoss.zul.ListModelList<CatalogVersionModel>org.zkoss.zul.ListModelList<IndexConfigurationModel>org.zkoss.zul.ListModelList<IndexTypeModel>voidinitialize(org.zkoss.zk.ui.Component component) protected voidprotected booleanisValidCatalogVersion(CatalogVersionModel catalogVersion) protected booleanisValidIndexConfiguration(AsIndexConfigurationData indexConfiguration) protected booleanisValidIndexType(AsIndexTypeData indexType) voidonCatalogVersionChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, CatalogVersionData> event) Event handler for catalog version changes.voidonCategoryChanged(CategoryData category) Event handler for category changes.voidonIndexConfigurationChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, String> event) Event handler for index configuration changes.voidonIndexTypeChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, String> event) Event handler for index type changes.voidEvent handler for search profile changes.protected CatalogVersionModelresolveCatalogVersion(CatalogVersionData catalogVersion) protected voidsendNavigationContext(NavigationContextData navigationContext) voidsetNavigationContext(NavigationContextData navigationContext) protected voidupdateCatalogVersions(NavigationContextData navigationContext) protected voidupdateIndexConfigurations(NavigationContextData navigationContext) protected voidupdateIndexTypes(NavigationContextData navigationContext) protected voidupdateSearchProfiles(NavigationContextData navigationContext) protected voidupdateSelectors(NavigationContextData navigationContext) 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, setWidgetTitleMethods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer
scanEventListenersMethods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer
alert, didActivate, getPage, willClone, willPassivateMethods inherited from class org.zkoss.zk.ui.util.GenericComposer
doCatch, doFinallyMethods inherited from class org.zkoss.zk.ui.event.GenericEventListener
bindComponent, getController, onEvent, unbindComponent
-
Field Details
-
INDEX_CONFIGURATION_SELECTOR_ID
- See Also:
-
INDEX_TYPE_SELECTOR_ID
- See Also:
-
CATALOG_VERSION_SELECTOR_ID
- See Also:
-
SEARCH_PROFILE_SELECTOR_ID
- See Also:
-
ON_VALUE_CHANGED
- See Also:
-
CATEGORY_IN_SOCKET
- See Also:
-
COLLAPSE_STATE_OUT_SOCKET
- See Also:
-
NAVIGATION_CONTEXT_KEY
- See Also:
-
INDEX_TYPE_KEY
- See Also:
-
CATALOG_VERSION_KEY
- See Also:
-
SEARCH_PROFILE_CREATE_WIZARD_CTX
- See Also:
-
sessionService
-
i18nService
-
catalogVersionService
-
asSearchProviderFactory
-
labelService
protected transient com.hybris.cockpitng.labels.LabelService labelService -
indexConfigurationSelector
protected org.zkoss.zul.Combobox indexConfigurationSelector -
indexTypeSelector
protected org.zkoss.zul.Combobox indexTypeSelector -
catalogVersionSelector
protected org.zkoss.zul.Combobox catalogVersionSelector -
searchProfileSelector
protected com.hybris.cockpitng.components.Editor searchProfileSelector
-
-
Constructor Details
-
NavigationContextController
public NavigationContextController()
-
-
Method Details
-
getIndexConfigurationsModel
-
getIndexTypesModel
-
getCatalogVersionsModel
-
initialize
public void initialize(org.zkoss.zk.ui.Component component) - Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
initializeSelectors
protected void initializeSelectors() -
onIndexConfigurationChanged
public void onIndexConfigurationChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, String> event) Event handler for index configuration changes.- Parameters:
event- - the event
-
onIndexTypeChanged
public void onIndexTypeChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, String> event) Event handler for index type changes.- Parameters:
event- - the event
-
onCatalogVersionChanged
public void onCatalogVersionChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem, CatalogVersionData> event) Event handler for catalog version changes.- Parameters:
event- - the event
-
onSearchProfileChanged
public void onSearchProfileChanged()Event handler for search profile changes. -
onCategoryChanged
Event handler for category changes.- Parameters:
category- - the category
-
findIndexConfigurations
-
isValidIndexConfiguration
-
convertIndexConfiguration
-
findIndexTypes
-
isValidIndexType
-
convertIndexType
-
findCatalogVersions
protected List<CatalogVersionModel> findCatalogVersions(String indexConfiguration, String indexType) -
isValidCatalogVersion
-
convertCatalogVersion
-
resolveCatalogVersion
-