Interface CompatibilityService

  • All Known Implementing Classes:
    DefaultCompatibilityService

    public interface CompatibilityService
    Service which returns products based on feature compatibility and vendor compatibility.
    • 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 Code
        classAttributeAssignment - 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