Class DefaultBackofficeClassificationService
java.lang.Object
de.hybris.platform.platformbackoffice.services.impl.DefaultBackofficeClassificationService
- All Implemented Interfaces:
BackofficeClassificationService
public class DefaultBackofficeClassificationService
extends Object
implements BackofficeClassificationService
Contains methods helpful when working with classifications - e.g. getting classification descriptors, getting
features values
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CatalogVersionServiceprotected ClassificationServiceprotected UserService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogDescriptorcreateCatalogDescriptor(ClassificationSystemVersionModel catalogVersion) protected CatalogVersionServiceprotected Set<ClassificationClassModel>getClassificationClassesFromFeatureLists(Set<FeatureList> featureLists) protected Optional<ClassificationClassModel>getClassificationClassFromFeature(Feature feature) getClassificationDescriptors(Set<ProductModel> products) Gets classification descriptors for all provided productsprotected ClassificationServicegetFeatureValues(ProductModel product, List<ClassificationDescriptor> classificationDescriptors) Gets features values grouped by feature descriptors which can be accessed by classification codegetFeatureValuesFromFeatureList(List<ClassificationDescriptor> classificationDescriptors, FeatureList featureList) Gets features values grouped by feature descriptors which can be accessed by classification codeprotected UserServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetClassificationService(ClassificationService classificationService) voidsetUserService(UserService userService) protected List<ClassificationDescriptor>sortClassificationDescriptors(Collection<ClassificationDescriptor> classificationDescriptors)
-
Field Details
-
classificationService
-
userService
-
catalogVersionService
-
-
Constructor Details
-
DefaultBackofficeClassificationService
public DefaultBackofficeClassificationService()
-
-
Method Details
-
getFeatureValues
public Map<String,Map<FeatureDescriptor, getFeatureValuesClassificationInfo>> (ProductModel product, List<ClassificationDescriptor> classificationDescriptors) Description copied from interface:BackofficeClassificationServiceGets features values grouped by feature descriptors which can be accessed by classification code- Specified by:
getFeatureValuesin 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
-
getFeatureValuesFromFeatureList
public Map<String,Map<FeatureDescriptor, getFeatureValuesFromFeatureListClassificationInfo>> (List<ClassificationDescriptor> classificationDescriptors, FeatureList featureList) Description copied from interface:BackofficeClassificationServiceGets features values grouped by feature descriptors which can be accessed by classification code- Specified by:
getFeatureValuesFromFeatureListin interfaceBackofficeClassificationService- Parameters:
classificationDescriptors- descriptors of the classifications which should be taken into accountfeatureList- featureList which values should be include into the result- Returns:
- map containing values of the features
-
getClassificationDescriptors
Description copied from interface:BackofficeClassificationServiceGets classification descriptors for all provided products- Specified by:
getClassificationDescriptorsin interfaceBackofficeClassificationService- Parameters:
products- products which classifications should be returned- Returns:
- list of the classification descriptors for all provided products
-
getClassificationClassesFromFeatureLists
protected Set<ClassificationClassModel> getClassificationClassesFromFeatureLists(Set<FeatureList> featureLists) -
getClassificationClassFromFeature
-
sortClassificationDescriptors
protected List<ClassificationDescriptor> sortClassificationDescriptors(Collection<ClassificationDescriptor> classificationDescriptors) -
createCatalogDescriptor
protected CatalogDescriptor createCatalogDescriptor(ClassificationSystemVersionModel catalogVersion) -
getClassificationService
-
setClassificationService
-
getUserService
-
setUserService
-
getCatalogVersionService
-
setCatalogVersionService
-