Class CatalogVersionFacetChartFilterAdapter

java.lang.Object
com.hybris.pcmbackoffice.widgets.charts.facetchart.filter.AbstractFacetChartFilterAdapter
com.hybris.pcmbackoffice.widgets.charts.facetchart.filter.CatalogVersionFacetChartFilterAdapter
All Implemented Interfaces:
ReferenceEditorFacetChartFilterAdapter

public class CatalogVersionFacetChartFilterAdapter extends AbstractFacetChartFilterAdapter implements ReferenceEditorFacetChartFilterAdapter
  • Constructor Details

    • CatalogVersionFacetChartFilterAdapter

      public CatalogVersionFacetChartFilterAdapter()
  • Method Details

    • convertToFacetValue

      public String convertToFacetValue(Object object)
      Description copied from interface: ReferenceEditorFacetChartFilterAdapter
      Convert value from filter (CategoryModel, CatalogVersionModel) to value used in facet search
      Specified by:
      convertToFacetValue in interface ReferenceEditorFacetChartFilterAdapter
      Parameters:
      object - value from filter
      Returns:
      value used in solr index
    • deleteFilter

      public void deleteFilter(com.hybris.cockpitng.core.events.CockpitEvent event, String selectedFilterValue, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.core.Executable onDeletedCallback)
      Description copied from interface: ReferenceEditorFacetChartFilterAdapter
      deletes filter from the widget model when it gets deleted from the system
      Specified by:
      deleteFilter in interface ReferenceEditorFacetChartFilterAdapter
      Parameters:
      event - incoming delete event, from which name of deleted filter can be extracted
      selectedFilterValue - value of selected filter as a String
      widgetInstanceManager - widget instance manager used for accessing widget model
      onDeletedCallback - executable callback, which will be invoked when filter will be deleted from the model
    • getNamesOfDeletedFilters

      protected List<String> getNamesOfDeletedFilters(com.hybris.cockpitng.core.events.CockpitEvent event)
    • getCatalogVersions

      protected Stream<String> getCatalogVersions(Collection<?> items)
    • getCatalogVersion

      protected Optional<String> getCatalogVersion(ClassificationSystemVersionModel model)
    • canDelete

      protected boolean canDelete(Object filterValue, String nameOfDeletedItem)
    • setLabelService

      public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)