public class DefaultClassificationService extends AbstractBusinessService implements ClassificationService
ClassificationService backed by Jalo API an flexible search.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultClassificationService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ClassificationAttributeUnitModel> |
getAttributeUnits(ClassificationSystemVersionModel systemVersion)
Returns a list of all classification attribute units.
|
Feature |
getFeature(ItemModel item,
ClassAttributeAssignmentModel assignment)
Deprecated.
since ages
|
Feature |
getFeature(ProductModel product,
ClassAttributeAssignmentModel assignment)
Returns a classification feature for a given product and assignment.
|
FeatureList |
getFeatures(ProductModel product)
Returns a list of classification features for a given product.
|
FeatureList |
getFeatures(ProductModel product,
java.util.List<ClassAttributeAssignmentModel> assignments)
Returns a list of classification features for a given product and assignments.
|
ProductFilterResult |
getProductsByFilter(ProductFilter filter)
Returns all products for which the given filter applies.
|
void |
replaceFeatures(ProductModel product,
FeatureList modelFeatureList)
Sets all the features from the list to the product model.
|
void |
setClassificationDao(ClassificationDao classificationDao) |
void |
setClassResolverStrategy(ClassificationClassesResolverStrategy classResolverStrategy) |
void |
setFeature(ProductModel product,
Feature feature)
Sets a single
Feature to the given ProductModel. |
void |
setFeatures(ProductModel product,
FeatureList modelFeatureList)
Sets the given list of classification
Features to the given ProductModel. |
void |
setFormatFactory(FormatFactory formatFactory) |
void |
setLoadStoreFeaturesStrategy(LoadStoreFeaturesStrategy loadStoreFeaturesStrategy) |
void |
setProductService(ProductService productService) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplace@Deprecated public Feature getFeature(ItemModel item, ClassAttributeAssignmentModel assignment)
getFeature in interface ClassificationServiceitem - the item to load the features forpublic Feature getFeature(ProductModel product, ClassAttributeAssignmentModel assignment)
ClassificationServicegetFeature in interface ClassificationServiceproduct - the item to load the features forpublic FeatureList getFeatures(ProductModel product)
ClassificationServicegetFeatures in interface ClassificationServiceproduct - the product to load the features forpublic void setFeature(ProductModel product, Feature feature)
ClassificationServiceFeature to the given ProductModel. Any other Feature at the product model won't be
changed.setFeature in interface ClassificationServiceproduct - the productfeature - the featurepublic void setFeatures(ProductModel product, FeatureList modelFeatureList)
ClassificationServiceFeatures to the given ProductModel. Any other existing
feature at the product model which is not in the list won't changesetFeatures in interface ClassificationServiceproduct - the productmodelFeatureList - the FeatureList objectpublic void replaceFeatures(ProductModel product, FeatureList modelFeatureList)
ClassificationServicereplaceFeatures in interface ClassificationServiceproduct - the Product modelmodelFeatureList - contains the features with new/changed feature values. Or features with the same feature values which
are already stored - those won't change then.public ProductFilterResult getProductsByFilter(ProductFilter filter) throws UnknownIdentifierException, AmbiguousIdentifierException
ClassificationServicevalueOf method of attribute value's class. When the attribute is of type enum
the string is interpreted as the code of the enum value.getProductsByFilter in interface ClassificationServicefilter - the filter to applyUnknownIdentifierException - when a attribute with a given code cannot be foundAmbiguousIdentifierException - when there's more than one attribute with a given codepublic java.util.Collection<ClassificationAttributeUnitModel> getAttributeUnits(ClassificationSystemVersionModel systemVersion)
ClassificationServicegetAttributeUnits in interface ClassificationServicesystemVersion - the system version of the classificationpublic FeatureList getFeatures(ProductModel product, java.util.List<ClassAttributeAssignmentModel> assignments)
ClassificationServicegetFeatures in interface ClassificationServiceproduct - the product to load the features forassignments - list of assignmentspublic void setClassificationDao(ClassificationDao classificationDao)
public void setProductService(ProductService productService)
public void setFormatFactory(FormatFactory formatFactory)
public void setLoadStoreFeaturesStrategy(LoadStoreFeaturesStrategy loadStoreFeaturesStrategy)
public void setClassResolverStrategy(ClassificationClassesResolverStrategy classResolverStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.