public interface ClassificationService
| 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 - use
getFeature(ProductModel, ClassAttributeAssignmentModel) instead. |
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 featureList)
Sets all the features from the list to the product model.
|
void |
setFeature(ProductModel product,
Feature feature)
Sets a single
Feature to the given ProductModel. |
void |
setFeatures(ProductModel product,
FeatureList featureList)
Sets the given list of classification
Features to the given ProductModel. |
FeatureList getFeatures(ProductModel product)
product - the product to load the features forjava.lang.IllegalArgumentException - thrown when product is null or is not persisted@Deprecated Feature getFeature(ItemModel item, ClassAttributeAssignmentModel assignment)
getFeature(ProductModel, ClassAttributeAssignmentModel) instead.item - the item to load the features forFeature getFeature(ProductModel product, ClassAttributeAssignmentModel assignment)
product - the item to load the features forjava.lang.IllegalArgumentException - thrown when product is null or is not persisted, assignment is nullProductFilterResult getProductsByFilter(ProductFilter filter) throws UnknownIdentifierException, AmbiguousIdentifierException
valueOf method of attribute value's class. When the attribute is of type enum
the string is interpreted as the code of the enum value.filter - the filter to applyUnknownIdentifierException - when a attribute with a given code cannot be foundAmbiguousIdentifierException - when there's more than one attribute with a given codevoid setFeatures(ProductModel product, FeatureList featureList)
Features to the given ProductModel. Any other existing
feature at the product model which is not in the list won't changeproduct - the productfeatureList - the FeatureList objectjava.lang.IllegalArgumentException - thrown when product is null or is not persisted, featureList is nullvoid replaceFeatures(ProductModel product, FeatureList featureList)
product - the Product modelfeatureList - contains the features with new/changed feature values. Or features with the same feature values which
are already stored - those won't change then.java.lang.IllegalArgumentException - thrown when product is null or is not persisted, featureList is nullvoid setFeature(ProductModel product, Feature feature)
Feature to the given ProductModel. Any other Feature at the product model won't be
changed.product - the productfeature - the featurejava.lang.IllegalArgumentException - thrown when product is null or is not persisted, feature is nulljava.util.Collection<ClassificationAttributeUnitModel> getAttributeUnits(ClassificationSystemVersionModel systemVersion)
systemVersion - the system version of the classificationFeatureList getFeatures(ProductModel product, java.util.List<ClassAttributeAssignmentModel> assignments)
product - the product to load the features forassignments - list of assignmentsjava.lang.IllegalArgumentException - thrown when product is null or is not persistedCopyright © 2018 SAP SE. All Rights Reserved.