Class DefaultBackofficeClassificationService
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.services.impl.DefaultBackofficeClassificationService
-
- All Implemented Interfaces:
BackofficeClassificationService
public class DefaultBackofficeClassificationService extends java.lang.Object implements BackofficeClassificationService
Contains methods helpful when working with classifications - e.g. getting classification descriptors, getting features values
-
-
Field Summary
Fields Modifier and Type Field Description protected CatalogVersionService
catalogVersionService
protected ClassificationService
classificationService
protected UserService
userService
-
Constructor Summary
Constructors Constructor Description DefaultBackofficeClassificationService()
-
Method Summary
-
-
-
Field Detail
-
classificationService
protected ClassificationService classificationService
-
userService
protected UserService userService
-
catalogVersionService
protected CatalogVersionService catalogVersionService
-
-
Method Detail
-
getFeatureValues
public java.util.Map<java.lang.String,java.util.Map<FeatureDescriptor,ClassificationInfo>> getFeatureValues(ProductModel product, java.util.List<ClassificationDescriptor> classificationDescriptors)
Description copied from interface:BackofficeClassificationService
Gets features values grouped by feature descriptors which can be accessed by classification code- Specified by:
getFeatureValues
in interfaceBackofficeClassificationService
- Parameters:
product
- products which values should be include into the resultclassificationDescriptors
- descriptors of the classifications which should be taken into account- Returns:
- map containing values of the features
-
getClassificationDescriptors
public java.util.List<ClassificationDescriptor> getClassificationDescriptors(java.util.Set<ProductModel> products)
Description copied from interface:BackofficeClassificationService
Gets classification descriptors for all provided products- Specified by:
getClassificationDescriptors
in interfaceBackofficeClassificationService
- Parameters:
products
- products which classifications should be returned- Returns:
- list of the classification descriptors for all provided products
-
getClassificationClassesFromFeatureLists
protected java.util.Set<ClassificationClassModel> getClassificationClassesFromFeatureLists(java.util.Set<FeatureList> featureLists)
-
getClassificationClassFromFeature
protected java.util.Optional<ClassificationClassModel> getClassificationClassFromFeature(Feature feature)
-
sortClassificationDescriptors
protected java.util.List<ClassificationDescriptor> sortClassificationDescriptors(java.util.Collection<ClassificationDescriptor> classificationDescriptors)
-
createCatalogDescriptor
protected CatalogDescriptor createCatalogDescriptor(ClassificationSystemVersionModel catalogVersion)
-
getClassificationService
protected ClassificationService getClassificationService()
-
setClassificationService
public void setClassificationService(ClassificationService classificationService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-