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,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 NavigationContextController extends com.hybris.cockpitng.util.DefaultWidgetControllerController for the navigation context widget.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AsSearchProviderFactoryasSearchProviderFactoryprotected static java.lang.StringCATALOG_VERSION_KEYprotected static java.lang.StringCATALOG_VERSION_SELECTOR_IDprotected org.zkoss.zul.ComboboxcatalogVersionSelectorprotected CatalogVersionServicecatalogVersionServiceprotected static java.lang.StringCATEGORY_IN_SOCKETprotected static java.lang.StringCOLLAPSE_STATE_OUT_SOCKETprotected I18NServicei18nServiceprotected static java.lang.StringINDEX_CONFIGURATION_SELECTOR_IDprotected static java.lang.StringINDEX_TYPE_KEYprotected static java.lang.StringINDEX_TYPE_SELECTOR_IDprotected org.zkoss.zul.ComboboxindexConfigurationSelectorprotected org.zkoss.zul.ComboboxindexTypeSelectorprotected com.hybris.cockpitng.labels.LabelServicelabelServiceprotected static java.lang.StringNAVIGATION_CONTEXT_KEYprotected static java.lang.StringON_VALUE_CHANGEDprotected static java.lang.StringSEARCH_PROFILE_CREATE_WIZARD_CTXprotected static java.lang.StringSEARCH_PROFILE_SELECTOR_IDprotected com.hybris.cockpitng.components.EditorsearchProfileSelectorprotected SessionServicesessionService
-
Constructor Summary
Constructors Constructor Description NavigationContextController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollapseNavigationContext()protected intcompareCatalogVersions(CatalogVersionModel catalogVersion1, CatalogVersionModel catalogVersion2)protected intcompareIndexConfigurations(IndexConfigurationModel indexConfiguration1, IndexConfigurationModel indexConfiguration2)protected intcompareIndexTypes(IndexTypeModel indexType1, IndexTypeModel indexType2)protected CatalogVersionModelconvertCatalogVersion(CatalogVersionModel source)protected IndexConfigurationModelconvertIndexConfiguration(AsIndexConfigurationData source)protected IndexTypeModelconvertIndexType(AsIndexTypeData source)protected java.lang.ObjectcreateParentObject(NavigationContextData navigationContext)protected java.util.List<CatalogVersionModel>findCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)protected java.util.List<IndexConfigurationModel>findIndexConfigurations()protected java.util.List<IndexTypeModel>findIndexTypes(java.lang.String indexConfiguration)org.zkoss.zul.ListModelList<CatalogVersionModel>getCatalogVersionsModel()org.zkoss.zul.ListModelList<IndexConfigurationModel>getIndexConfigurationsModel()org.zkoss.zul.ListModelList<IndexTypeModel>getIndexTypesModel()NavigationContextDatagetNavigationContext()voidinitialize(org.zkoss.zk.ui.Component component)protected voidinitializeSelectors()protected 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,java.lang.String> event)Event handler for index configuration changes.voidonIndexTypeChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem,java.lang.String> event)Event handler for index type changes.voidonSearchProfileChanged()Event 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, 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
-
INDEX_CONFIGURATION_SELECTOR_ID
protected static final java.lang.String INDEX_CONFIGURATION_SELECTOR_ID
- See Also:
- Constant Field Values
-
INDEX_TYPE_SELECTOR_ID
protected static final java.lang.String INDEX_TYPE_SELECTOR_ID
- See Also:
- Constant Field Values
-
CATALOG_VERSION_SELECTOR_ID
protected static final java.lang.String CATALOG_VERSION_SELECTOR_ID
- See Also:
- Constant Field Values
-
SEARCH_PROFILE_SELECTOR_ID
protected static final java.lang.String SEARCH_PROFILE_SELECTOR_ID
- See Also:
- Constant Field Values
-
ON_VALUE_CHANGED
protected static final java.lang.String ON_VALUE_CHANGED
- See Also:
- Constant Field Values
-
CATEGORY_IN_SOCKET
protected static final java.lang.String CATEGORY_IN_SOCKET
- See Also:
- Constant Field Values
-
COLLAPSE_STATE_OUT_SOCKET
protected static final java.lang.String COLLAPSE_STATE_OUT_SOCKET
- See Also:
- Constant Field Values
-
NAVIGATION_CONTEXT_KEY
protected static final java.lang.String NAVIGATION_CONTEXT_KEY
- See Also:
- Constant Field Values
-
INDEX_TYPE_KEY
protected static final java.lang.String INDEX_TYPE_KEY
- See Also:
- Constant Field Values
-
CATALOG_VERSION_KEY
protected static final java.lang.String CATALOG_VERSION_KEY
- See Also:
- Constant Field Values
-
SEARCH_PROFILE_CREATE_WIZARD_CTX
protected static final java.lang.String SEARCH_PROFILE_CREATE_WIZARD_CTX
- See Also:
- Constant Field Values
-
sessionService
protected transient SessionService sessionService
-
i18nService
protected transient I18NService i18nService
-
catalogVersionService
protected transient CatalogVersionService catalogVersionService
-
asSearchProviderFactory
protected transient AsSearchProviderFactory 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
-
-
Method Detail
-
getIndexConfigurationsModel
public org.zkoss.zul.ListModelList<IndexConfigurationModel> getIndexConfigurationsModel()
-
getIndexTypesModel
public org.zkoss.zul.ListModelList<IndexTypeModel> getIndexTypesModel()
-
getCatalogVersionsModel
public org.zkoss.zul.ListModelList<CatalogVersionModel> getCatalogVersionsModel()
-
getNavigationContext
public NavigationContextData getNavigationContext()
-
setNavigationContext
public void setNavigationContext(NavigationContextData navigationContext)
-
initialize
public void initialize(org.zkoss.zk.ui.Component component)
- Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
initializeSelectors
protected void initializeSelectors()
-
updateSelectors
protected void updateSelectors(NavigationContextData navigationContext)
-
updateIndexConfigurations
protected void updateIndexConfigurations(NavigationContextData navigationContext)
-
updateIndexTypes
protected void updateIndexTypes(NavigationContextData navigationContext)
-
updateCatalogVersions
protected void updateCatalogVersions(NavigationContextData navigationContext)
-
updateSearchProfiles
protected void updateSearchProfiles(NavigationContextData navigationContext)
-
createParentObject
protected java.lang.Object createParentObject(NavigationContextData navigationContext)
-
sendNavigationContext
protected void sendNavigationContext(NavigationContextData navigationContext)
-
collapseNavigationContext
protected void collapseNavigationContext()
-
onIndexConfigurationChanged
public void onIndexConfigurationChanged(org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Comboitem,java.lang.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,java.lang.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
public void onCategoryChanged(CategoryData category)
Event handler for category changes.- Parameters:
category- - the category
-
findIndexConfigurations
protected java.util.List<IndexConfigurationModel> findIndexConfigurations()
-
isValidIndexConfiguration
protected boolean isValidIndexConfiguration(AsIndexConfigurationData indexConfiguration)
-
convertIndexConfiguration
protected IndexConfigurationModel convertIndexConfiguration(AsIndexConfigurationData source)
-
compareIndexConfigurations
protected int compareIndexConfigurations(IndexConfigurationModel indexConfiguration1, IndexConfigurationModel indexConfiguration2)
-
findIndexTypes
protected java.util.List<IndexTypeModel> findIndexTypes(java.lang.String indexConfiguration)
-
isValidIndexType
protected boolean isValidIndexType(AsIndexTypeData indexType)
-
convertIndexType
protected IndexTypeModel convertIndexType(AsIndexTypeData source)
-
compareIndexTypes
protected int compareIndexTypes(IndexTypeModel indexType1, IndexTypeModel indexType2)
-
findCatalogVersions
protected java.util.List<CatalogVersionModel> findCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)
-
isValidCatalogVersion
protected boolean isValidCatalogVersion(CatalogVersionModel catalogVersion)
-
convertCatalogVersion
protected CatalogVersionModel convertCatalogVersion(CatalogVersionModel source)
-
compareCatalogVersions
protected int compareCatalogVersions(CatalogVersionModel catalogVersion1, CatalogVersionModel catalogVersion2)
-
resolveCatalogVersion
protected CatalogVersionModel resolveCatalogVersion(CatalogVersionData catalogVersion)
-
-