Class DefaultSourcingService
java.lang.Object
com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
com.sap.sapoaacosintegration.services.sourcing.impl.DefaultCosSourcingService
com.sap.sapoaacarintegration.services.sourcing.impl.DefaultSourcingService
- All Implemented Interfaces:
OaaRestService,SourcingService,CosRestService,CosSourcingService
Default Sourcing Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallRestService(AbstractOrderModel abstractOrderModel, boolean execAllStrategies, boolean reserve) Calls the callCosRestService method to fulfill the sourcing servicevoidCalls the COS rest service for fetching sourcing resultsprotected AuthenticationServiceprotected SourcingRequestMapperde.hybris.platform.servicelayer.config.ConfigurationServiceprotected HttpEntityBuilderprotected HttpHeaderProviderprotected SourcingResultHandlerprotected URLProvidervoidsetAuthenticationService(AuthenticationService authenticationService) voidsetCartMapper(SourcingRequestMapper cartMapper) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetHttpEntityBuilder(HttpEntityBuilder httpEntityBuilder) voidsetHttpHeaderProvider(HttpHeaderProvider httpHeaderProvider) voidsetOaaRestService(DefaultRestService oaaRestService) voidsetSourcingResultHandler(SourcingResultHandler sourcingResultHandler) voidsetUrlProvider(URLProvider urlProvider) Methods inherited from class com.sap.sapoaacosintegration.services.sourcing.impl.DefaultCosSourcingService
callCosRestService, callSourcingRestService, confirmReservation, constructSourcingResponse, createHttpEntityForSourcing, decideAndPerformReservation, doSourcingAndPersistResult, exchangeRestTemplateAndExtractSourcingResponse, getCommonUtils, getCosServiceUtils, getCosSourcingRequestMapper, getCosSourcingResponseMapper, getCosSourcingResultHandler, getIntegrationRestTemplateFactory, getModelService, getReservationService, getSourcingResponse, resetReservationId, setCommonUtils, setCosServiceUtils, setCosSourcingRequestMapper, setCosSourcingResponseMapper, setCosSourcingResultHandler, setIntegrationRestTemplateFactory, setModelService, setReservationService, setRestServiceConfigurationMethods inherited from class com.sap.sapoaacosintegration.services.rest.impl.DefaultAbstractCosRestService
checkHttpStatusCode, getSessionService, setBackendDown, setSessionServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.retail.oaa.commerce.services.rest.OaaRestService
setBackendDown
-
Constructor Details
-
DefaultSourcingService
public DefaultSourcingService()
-
-
Method Details
-
callRestServiceAndPersistResult
public void callRestServiceAndPersistResult(AbstractOrderModel model) throws SourcingException, BackendDownException Description copied from class:DefaultCosSourcingServiceCalls the COS rest service for fetching sourcing results- Specified by:
callRestServiceAndPersistResultin interfaceSourcingService- Overrides:
callRestServiceAndPersistResultin classDefaultCosSourcingService- Parameters:
model- Hybris cart or order model- Throws:
SourcingExceptionBackendDownException
-
callRestService
public SourcingResponse callRestService(AbstractOrderModel abstractOrderModel, boolean execAllStrategies, boolean reserve) throws SourcingException, BackendDownException Description copied from class:DefaultCosSourcingServiceCalls the callCosRestService method to fulfill the sourcing service- Specified by:
callRestServicein interfaceSourcingService- Overrides:
callRestServicein classDefaultCosSourcingService- Parameters:
abstractOrderModel- Hybris order or cartexecAllStrategies- Flag which indicates if a all sourcing strategies should be executed.reserve- Create or update a temporary reservation in case the sourcing was executed successfully- Returns:
SourcingResponse- Throws:
SourcingExceptionBackendDownException
-
setSourcingResultHandler
- Parameters:
sourcingResultHandler- the sourcingResultHandler to set
-
getSourcingResultHandler
- Returns:
- the sourcingResultHandler
-
setCartMapper
- Parameters:
cartMapper- the cartMapper to set
-
getCartMapper
- Returns:
- the cartMapper
-
setHttpHeaderProvider
- Parameters:
httpHeaderProvider- the httpHeaderProvider to set
-
getHttpHeaderProvider
- Returns:
- the httpHeaderProvider
-
setUrlProvider
- Parameters:
urlProvider- the urlProvider to set
-
getUrlProvider
- Returns:
- the urlProvider
-
setAuthenticationService
- Parameters:
authenticationService- the authenticationService to set
-
getAuthenticationService
- Returns:
- the authenticationService
-
setHttpEntityBuilder
- Parameters:
httpEntityBuilder- the httpEntityBuilder to set
-
getHttpEntityBuilder
- Returns:
- the httpEntityBuilder
-
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) - Parameters:
configurationService- the configurationService to set
-
getOaaRestService
-
setOaaRestService
-