Class DefaultTelcoProductFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.product.impl.DefaultTelcoProductFacade
- All Implemented Interfaces:
TelcoProductFacade
Default implementation of Telco Product Facade
TelcoProductFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontains(List<ProductData> products, ProductData product) Checks whether the list given contains the product.protected CompatibilityServiceprotected de.hybris.platform.commercefacades.product.ProductFacadegetProductReferencesAndCompatibleProducts(String code, List<ProductReferenceTypeEnum> referenceTypes, List<ProductOption> options, Integer limit, ClassAttributeAssignmentModel classAttributeAssignment) Returns a list of products build of: product references, feature and vendor compatible products having the limit set by maximumNumber.getProductReferencesAndFeatureCompatibleProductsForCode(String code, List<ProductReferenceTypeEnum> referenceTypes, List<ProductOption> options, Integer limit, ClassAttributeAssignmentModel classAttributeAssignment) Get unique list of product references and feature compatible products with a max limit set by maximunNumber Of Products First list of product references is returned and then feature compatible products are returned.voidsetCompatibilityService(CompatibilityService compatibilityService) voidsetProductFacade(de.hybris.platform.commercefacades.product.ProductFacade productFacade)
-
Constructor Details
-
DefaultTelcoProductFacade
public DefaultTelcoProductFacade()
-
-
Method Details
-
getProductReferencesAndFeatureCompatibleProductsForCode
public List<ProductData> getProductReferencesAndFeatureCompatibleProductsForCode(String code, List<ProductReferenceTypeEnum> referenceTypes, List<ProductOption> options, Integer limit, ClassAttributeAssignmentModel classAttributeAssignment) Description copied from interface:TelcoProductFacadeGet unique list of product references and feature compatible products with a max limit set by maximunNumber Of Products First list of product references is returned and then feature compatible products are returned.- Specified by:
getProductReferencesAndFeatureCompatibleProductsForCodein interfaceTelcoProductFacade- Parameters:
code- product CodereferenceTypes-ListofProductReferenceTypeEnumsoptions-ListofProductOptionslimit- maximum size of returned dataclassAttributeAssignment- classification attribute of the classification class for the product- Returns:
ListofProductData
-
getProductReferencesAndCompatibleProducts
public List<ProductData> getProductReferencesAndCompatibleProducts(String code, List<ProductReferenceTypeEnum> referenceTypes, List<ProductOption> options, Integer limit, ClassAttributeAssignmentModel classAttributeAssignment) Description copied from interface:TelcoProductFacadeReturns a list of products build of: product references, feature and vendor compatible products having the limit set by maximumNumber.- Specified by:
getProductReferencesAndCompatibleProductsin interfaceTelcoProductFacade- Parameters:
code- code of the product for which the compatible products should be retrievedreferenceTypes-ListofProductReferenceTypeEnums for which the products should be returnedoptions-ListofProductOptions for populating information on the returnedProductDatalimit- maximum number of products to be returned. If null, all available products will be returned.classAttributeAssignment- classification attribute- Returns:
ListofProductData
-
contains
Checks whether the list given contains the product.- Parameters:
products- list of existing product data itemsproduct- product to check whether it is contained in the list- Returns:
- true if the given product is contained in the products list
-
getCompatibilityService
-
setCompatibilityService
-
getProductFacade
protected de.hybris.platform.commercefacades.product.ProductFacade getProductFacade() -
setProductFacade
public void setProductFacade(de.hybris.platform.commercefacades.product.ProductFacade productFacade)
-