Class DefaultATPResourcePathBuilder
- java.lang.Object
-
- com.sap.sapoaacarintegration.services.atp.impl.DefaultATPResourcePathBuilder
-
- All Implemented Interfaces:
ATPResourcePathBuilder
public class DefaultATPResourcePathBuilder extends java.lang.Object implements ATPResourcePathBuilder
Default Resource Builder for ATP Service
-
-
Constructor Summary
Constructors Constructor Description DefaultATPResourcePathBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbuildBatchRessourceServicePath(ProductModel product, java.util.List<java.lang.String> sourcesList)Assembles the resource service path string for batch calljava.lang.StringbuildBatchRessourceServicePath(java.util.List<ProductModel> productList)Assembles the resource service path string for batch calljava.lang.StringbuildRessourceServicePath(ProductModel product)Assembles the resource service path string for product ATP calljava.lang.StringbuildRessourceServicePath(ProductModel product, java.lang.String source)Assembles the resource service path string for product / source ATP callorg.springframework.util.MultiValueMap<java.lang.String,java.lang.String>compileUriQueryParameters(java.lang.String cartId, java.lang.String itemId, java.lang.String productUnit, RestServiceConfiguration restConfiguration)Set URI Query Parameters for calling availability serviceorg.springframework.util.MultiValueMap<java.lang.String,java.lang.String>compileUriQueryParameters(java.lang.String cartId, java.util.List<java.lang.String> itemIdList, java.lang.String productUnit, RestServiceConfiguration restConfiguration)Set URI Query Parameters for calling availability service for batch callprotected ServiceUtilsgetServiceUtils()voidsetServiceUtils(ServiceUtils serviceUtils)
-
-
-
Method Detail
-
compileUriQueryParameters
public org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> compileUriQueryParameters(java.lang.String cartId, java.util.List<java.lang.String> itemIdList, java.lang.String productUnit, RestServiceConfiguration restConfiguration)Description copied from interface:ATPResourcePathBuilderSet URI Query Parameters for calling availability service for batch call- Specified by:
compileUriQueryParametersin interfaceATPResourcePathBuilder- Returns:
- URI Query parameters
-
compileUriQueryParameters
public org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> compileUriQueryParameters(java.lang.String cartId, java.lang.String itemId, java.lang.String productUnit, RestServiceConfiguration restConfiguration)Description copied from interface:ATPResourcePathBuilderSet URI Query Parameters for calling availability service- Specified by:
compileUriQueryParametersin interfaceATPResourcePathBuilder- Returns:
- URI Query parameters
-
buildBatchRessourceServicePath
public java.lang.String buildBatchRessourceServicePath(ProductModel product, java.util.List<java.lang.String> sourcesList)
Description copied from interface:ATPResourcePathBuilderAssembles the resource service path string for batch call- Specified by:
buildBatchRessourceServicePathin interfaceATPResourcePathBuilder- Returns:
- assembled service path
-
buildBatchRessourceServicePath
public java.lang.String buildBatchRessourceServicePath(java.util.List<ProductModel> productList)
Description copied from interface:ATPResourcePathBuilderAssembles the resource service path string for batch call- Specified by:
buildBatchRessourceServicePathin interfaceATPResourcePathBuilder- Returns:
- assembled service path
-
buildRessourceServicePath
public java.lang.String buildRessourceServicePath(ProductModel product, java.lang.String source)
Description copied from interface:ATPResourcePathBuilderAssembles the resource service path string for product / source ATP call- Specified by:
buildRessourceServicePathin interfaceATPResourcePathBuilder- Returns:
- assembled service path
-
buildRessourceServicePath
public java.lang.String buildRessourceServicePath(ProductModel product)
Description copied from interface:ATPResourcePathBuilderAssembles the resource service path string for product ATP call- Specified by:
buildRessourceServicePathin interfaceATPResourcePathBuilder- Returns:
- assembled service path
-
setServiceUtils
public void setServiceUtils(ServiceUtils serviceUtils)
- Parameters:
serviceUtils- the serviceUtils to set
-
getServiceUtils
protected ServiceUtils getServiceUtils()
- Returns:
- the serviceUtils
-
-