Interface CommerceProductReferenceService<TYPE,TARGET>
- Type Parameters:
TYPE- the product reference typeTARGET- the target product
- All Known Implementing Classes:
DefaultCommerceProductReferenceService
public interface CommerceProductReferenceService<TYPE,TARGET>
Defines an API for product reference
-
Method Summary
Modifier and TypeMethodDescriptiongetProductReferencesForCode(String code, List<TYPE> referenceTypes, Integer limit) Retrieves product references for a given product and product reference type.getProductReferencesForCode(String code, TYPE referenceType, Integer limit) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.
-
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 ListreferenceTypes, final Integer limit); instead. - Parameters:
code- the product codereferenceType- the product reference typelimit- 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 codereferenceTypes- the product reference types to returnlimit- maximum number of references to retrieve. If null, all available references will be retrieved.- Returns:
- a collection product references.
-