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 Details

    • INDEX_CONFIGURATION_SELECTOR_ID

      protected static final String INDEX_CONFIGURATION_SELECTOR_ID
      See Also:
    • INDEX_TYPE_SELECTOR_ID

      protected static final String INDEX_TYPE_SELECTOR_ID
      See Also:
    • CATALOG_VERSION_SELECTOR_ID

      protected static final String CATALOG_VERSION_SELECTOR_ID
      See Also:
    • SEARCH_PROFILE_SELECTOR_ID

      protected static final String SEARCH_PROFILE_SELECTOR_ID
      See Also:
    • ON_VALUE_CHANGED

      protected static final String ON_VALUE_CHANGED
      See Also:
    • CATEGORY_IN_SOCKET

      protected static final String CATEGORY_IN_SOCKET
      See Also:
    • COLLAPSE_STATE_OUT_SOCKET

      protected static final String COLLAPSE_STATE_OUT_SOCKET
      See Also:
    • INDEX_TYPE_KEY

      protected static final String INDEX_TYPE_KEY
      See Also:
    • CATALOG_VERSION_KEY

      protected static final String CATALOG_VERSION_KEY
      See Also:
    • SEARCH_PROFILE_CREATE_WIZARD_CTX

      protected static final String SEARCH_PROFILE_CREATE_WIZARD_CTX
      See Also:
    • 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
  • Constructor Details

    • NavigationContextController

      public NavigationContextController()
  • Method Details

    • 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:
      initialize in class com.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 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,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

      public void onCategoryChanged(CategoryData category)
      Event handler for category changes.
      Parameters:
      category - - the category
    • findIndexConfigurations

      protected 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 List<IndexTypeModel> findIndexTypes(String indexConfiguration)
    • isValidIndexType

      protected boolean isValidIndexType(AsIndexTypeData indexType)
    • convertIndexType

      protected IndexTypeModel convertIndexType(AsIndexTypeData source)
    • compareIndexTypes

      protected int compareIndexTypes(IndexTypeModel indexType1, IndexTypeModel indexType2)
    • findCatalogVersions

      protected List<CatalogVersionModel> findCatalogVersions(String indexConfiguration, 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)