Class DummySourcingService
- java.lang.Object
-
- com.sap.retail.oaa.commerce.services.sourcing.impl.DummySourcingService
-
- All Implemented Interfaces:
OaaRestService,SourcingService
public class DummySourcingService extends java.lang.Object implements SourcingService
Dummy implementation of SourcingService
-
-
Constructor Summary
Constructors Constructor Description DummySourcingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcingResponsecallRestService(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.voidcallRestServiceAndPersistResult(AbstractOrderModel model)Call 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
-
-
-
Method Detail
-
setRestServiceConfiguration
public void setRestServiceConfiguration(RestServiceConfiguration restServiceConfiguration)
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
public void callRestServiceAndPersistResult(AbstractOrderModel model)
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
-
-