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 Detail

      • getProductReferencesForCode

        @Deprecated(since="5.0",
                    forRemoval=true)
        java.util.List<ReferenceData<TYPE,​TARGET>> getProductReferencesForCode​(java.lang.String code,
                                                                                     TYPE referenceType,
                                                                                     java.lang.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

        java.util.List<ReferenceData<TYPE,​TARGET>> getProductReferencesForCode​(java.lang.String code,
                                                                                     java.util.List<TYPE> referenceTypes,
                                                                                     java.lang.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.