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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconvertToFacetValue(Object object) Convert value from filter (CategoryModel, CatalogVersionModel) to value used in facet searchvoiddeleteFilter(com.hybris.cockpitng.core.events.CockpitEvent event, String selectedFilterValue, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.core.Executable onDeletedCallback) deletes filter from the widget model when it gets deleted from the systemgetCatalogVersions(Collection<?> items) getNamesOfDeletedFilters(com.hybris.cockpitng.core.events.CockpitEvent event) voidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService) Methods inherited from class com.hybris.pcmbackoffice.widgets.charts.facetchart.filter.AbstractFacetChartFilterAdapter
deleteFilterFromModel
-
Constructor Details
-
CatalogVersionFacetChartFilterAdapter
public CatalogVersionFacetChartFilterAdapter()
-
-
Method Details
-
convertToFacetValue
Description copied from interface:ReferenceEditorFacetChartFilterAdapterConvert value from filter (CategoryModel, CatalogVersionModel) to value used in facet search- Specified by:
convertToFacetValuein interfaceReferenceEditorFacetChartFilterAdapter- 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:ReferenceEditorFacetChartFilterAdapterdeletes filter from the widget model when it gets deleted from the system- Specified by:
deleteFilterin interfaceReferenceEditorFacetChartFilterAdapter- Parameters:
event- incoming delete event, from which name of deleted filter can be extractedselectedFilterValue- value of selected filter as a StringwidgetInstanceManager- widget instance manager used for accessing widget modelonDeletedCallback- executable callback, which will be invoked when filter will be deleted from the model
-
getNamesOfDeletedFilters
-
getCatalogVersions
-
getCatalogVersion
-
canDelete
-
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
-