Class DefaultCosATPService
- java.lang.Object
-
- com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
-
- com.sap.sapoaacosintegration.services.atp.impl.DefaultCosATPService
-
- All Implemented Interfaces:
ATPService,CosRestService
public class DefaultCosATPService extends DefaultAbstractCosRestService implements ATPService
Default COS ATP service
-
-
Constructor Summary
Constructors Constructor Description DefaultCosATPService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ATPAvailability>callRestAvailabilityServiceForProduct(java.lang.String cartGuid, java.lang.String itemId, ProductModel product)Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availabilityjava.util.List<ATPAvailability>callRestAvailabilityServiceForProductAndSource(ProductModel product, java.lang.String source)Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given sourcejava.util.List<ATPAvailability>callRestAvailabilityServiceForProductAndSource(java.lang.String cartGuid, java.lang.String itemId, ProductModel product, java.lang.String source)Call the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given sourcejava.util.List<ATPProductAvailability>callRestAvailabilityServiceForProductAndSources(java.lang.String cartGuid, java.lang.String itemId, ProductModel product, java.util.List<java.lang.String> sourcesList)Call the REST Service in Customer Activity Repository (CAR) for a given product and sources list to get current product availability linesjava.util.List<ATPProductAvailability>callRestAvailabilityServiceForProducts(java.lang.String cartGuid, java.util.List<java.lang.String> itemIdList, java.lang.String productUnit, java.util.List<ProductModel> productList)Call the REST Service in Customer Activity Repository (CAR) for a given product list to get current product availability linesCosATPResourcePathBuildergetCosAtpResourcePathBuilder()CosATPResultHandlergetCosAtpResultHandler()CosServiceUtilsgetCosServiceUtils()de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactorygetIntegrationRestTemplateFactory()protected ServiceUtilsgetServiceUtils()voidsetCosAtpResourcePathBuilder(CosATPResourcePathBuilder cosAtpResourcePathBuilder)voidsetCosAtpResultHandler(CosATPResultHandler cosAtpResultHandler)voidsetCosServiceUtils(CosServiceUtils cosServiceUtils)voidsetIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)voidsetServiceUtils(ServiceUtils serviceUtils)-
Methods inherited from class com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
checkHttpStatusCode, getSessionService, setBackendDown, setSessionService
-
-
-
-
Method Detail
-
callRestAvailabilityServiceForProduct
public java.util.List<ATPAvailability> callRestAvailabilityServiceForProduct(java.lang.String cartGuid, java.lang.String itemId, ProductModel product)
Description copied from interface:ATPServiceCall the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability- Specified by:
callRestAvailabilityServiceForProductin interfaceATPService- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- The product availability to be checked.- Returns:
- list of current product availability
-
callRestAvailabilityServiceForProductAndSource
public java.util.List<ATPAvailability> callRestAvailabilityServiceForProductAndSource(java.lang.String cartGuid, java.lang.String itemId, ProductModel product, java.lang.String source)
Description copied from interface:ATPServiceCall the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source- Specified by:
callRestAvailabilityServiceForProductAndSourcein interfaceATPService- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- The product availability to be checked.source- The source availability to be checked.- Returns:
- list of current product location availability.
-
callRestAvailabilityServiceForProductAndSource
public java.util.List<ATPAvailability> callRestAvailabilityServiceForProductAndSource(ProductModel product, java.lang.String source)
Description copied from interface:ATPServiceCall the REST Service in Customer Activity Repository (CAR) for a given product to get current product availability in the given source- Specified by:
callRestAvailabilityServiceForProductAndSourcein interfaceATPService- Parameters:
product- The product availability to be checked.source- The source availability to be checked.- Returns:
- list of current product location availability.
-
callRestAvailabilityServiceForProducts
public java.util.List<ATPProductAvailability> callRestAvailabilityServiceForProducts(java.lang.String cartGuid, java.util.List<java.lang.String> itemIdList, java.lang.String productUnit, java.util.List<ProductModel> productList)
Description copied from interface:ATPServiceCall the REST Service in Customer Activity Repository (CAR) for a given product list to get current product availability lines- Specified by:
callRestAvailabilityServiceForProductsin interfaceATPService- Parameters:
cartGuid- The id for the cart.itemIdList- Must have the same order as parameter productListproductUnit- Single unit for all productsproductList- Must have the same order as parameter itemIdList- Returns:
- list of current availability for given products
-
callRestAvailabilityServiceForProductAndSources
public java.util.List<ATPProductAvailability> callRestAvailabilityServiceForProductAndSources(java.lang.String cartGuid, java.lang.String itemId, ProductModel product, java.util.List<java.lang.String> sourcesList)
Description copied from interface:ATPServiceCall the REST Service in Customer Activity Repository (CAR) for a given product and sources list to get current product availability lines- Specified by:
callRestAvailabilityServiceForProductAndSourcesin interfaceATPService- Parameters:
cartGuid- The id for the cart.itemId- The id for the item.product- The product availability to be checked.sourcesList- The source list availability to be checked.- Returns:
- list of current availability for given product and sources
-
getIntegrationRestTemplateFactory
public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
-
setIntegrationRestTemplateFactory
public void setIntegrationRestTemplateFactory(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
getCosAtpResultHandler
public CosATPResultHandler getCosAtpResultHandler()
-
setCosAtpResultHandler
public void setCosAtpResultHandler(CosATPResultHandler cosAtpResultHandler)
-
getCosAtpResourcePathBuilder
public CosATPResourcePathBuilder getCosAtpResourcePathBuilder()
-
setCosAtpResourcePathBuilder
public void setCosAtpResourcePathBuilder(CosATPResourcePathBuilder cosAtpResourcePathBuilder)
-
getCosServiceUtils
public CosServiceUtils getCosServiceUtils()
- Returns:
- the cosServiceUtils
-
setCosServiceUtils
public void setCosServiceUtils(CosServiceUtils cosServiceUtils)
- Parameters:
cosServiceUtils- the cosServiceUtils to set
-
setServiceUtils
public void setServiceUtils(ServiceUtils serviceUtils)
- Parameters:
serviceUtils- the serviceUtils to set
-
getServiceUtils
protected ServiceUtils getServiceUtils()
- Returns:
- the serviceUtils
-
-