Interface CommerceProductReferenceService<TYPE,TARGET>

Type Parameters:
TYPE - the product reference type
TARGET - the target product
All Known Implementing Classes:
DefaultCommerceProductReferenceService

public interface CommerceProductReferenceService<TYPE,TARGET>
Defines an API for product reference
  • Method Details

    • getProductReferencesForCode

      @Deprecated(since="5.0", forRemoval=true) List<ReferenceData<TYPE,TARGET>> getProductReferencesForCode(String code, TYPE referenceType, Integer limit)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 5.0. Use getProductReferencesForCode(final String code, final List referenceTypes, final Integer limit); instead.
      Parameters:
      code - the product code
      referenceType - the product reference type
      limit - maximum number of references to retrieve. If null, all available references will be retrieved.
      Returns:
      a collection product references
    • getProductReferencesForCode

      List<ReferenceData<TYPE,TARGET>> getProductReferencesForCode(String code, List<TYPE> referenceTypes, Integer limit)
      Retrieves product references for a given product and product reference type.
      Parameters:
      code - the product code
      referenceTypes - the product reference types to return
      limit - maximum number of references to retrieve. If null, all available references will be retrieved.
      Returns:
      a collection product references.