Class DummySourcingService
java.lang.Object
com.sap.retail.oaa.commerce.services.sourcing.impl.DummySourcingService
- All Implemented Interfaces:
OaaRestService,SourcingService
Dummy implementation of SourcingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallRestService(AbstractOrderModel orderModel, boolean execAllStrategies, boolean reserve) Call the REST service in Customer Activity Repository (CAR) and return the service call response without persisting in hybris to the method invoker.voidCall the REST Service in Customer Activity Repository (CAR) and persist the result (Schedule Lines) in the given cart.voidsetBackendDown(boolean backendDown) Set the Attribute for BackendDown in the SessionvoidsetRestServiceConfiguration(RestServiceConfiguration restServiceConfiguration) Set the REST service configuration
-
Constructor Details
-
DummySourcingService
public DummySourcingService()
-
-
Method Details
-
setRestServiceConfiguration
Description copied from interface:OaaRestServiceSet the REST service configuration- Specified by:
setRestServiceConfigurationin interfaceOaaRestService- Parameters:
restServiceConfiguration- the restServiceConfiguration to set
-
setBackendDown
public void setBackendDown(boolean backendDown) Description copied from interface:OaaRestServiceSet the Attribute for BackendDown in the Session- Specified by:
setBackendDownin interfaceOaaRestService- Parameters:
backendDown- the value to set in the session
-
callRestServiceAndPersistResult
Description copied from interface:SourcingServiceCall the REST Service in Customer Activity Repository (CAR) and persist the result (Schedule Lines) in the given cart.- Specified by:
callRestServiceAndPersistResultin interfaceSourcingService- Parameters:
model- Hybris cart or order model
-
callRestService
public SourcingResponse callRestService(AbstractOrderModel orderModel, boolean execAllStrategies, boolean reserve) Description copied from interface:SourcingServiceCall the REST service in Customer Activity Repository (CAR) and return the service call response without persisting in hybris to the method invoker.- Specified by:
callRestServicein interfaceSourcingService- Parameters:
orderModel- 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:
SourcingResponseThe response from the sourcing call
-