Interface CompatibilityService
-
- All Known Implementing Classes:
DefaultCompatibilityService
public interface CompatibilityServiceService which returns products based on feature compatibility and vendor compatibility.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ProductModel>getFeatureCompatibleProducts(java.lang.String code, ClassAttributeAssignmentModel classAttributeAssignment)Return list of compatible products based on featureCompatiblity classification feature.java.util.List<ProductModel>getProductsForVendorCompatibility(java.lang.String productCode)Returns a list of products which are considered compatible when the name of the manufacturer is the same as the vendor of the product.
-
-
-
Method Detail
-
getFeatureCompatibleProducts
@Nonnull java.util.List<ProductModel> getFeatureCompatibleProducts(java.lang.String code, ClassAttributeAssignmentModel classAttributeAssignment)
Return list of compatible products based on featureCompatiblity classification feature.- Parameters:
code- product CodeclassAttributeAssignment- classification attribute of the classification class for the target item- Returns:
- list of matching products
-
getProductsForVendorCompatibility
@Nonnull java.util.List<ProductModel> getProductsForVendorCompatibility(java.lang.String productCode)
Returns a list of products which are considered compatible when the name of the manufacturer is the same as the vendor of the product.- Parameters:
productCode- code of product for which compatible products should be returned- Returns:
- list of matching products
- Since:
- 6.6
-
-