Class DummySourcingService

java.lang.Object
com.sap.retail.oaa.commerce.services.sourcing.impl.DummySourcingService
All Implemented Interfaces:
OaaRestService, SourcingService

public class DummySourcingService extends Object implements SourcingService
Dummy implementation of SourcingService
  • Constructor Details

    • DummySourcingService

      public DummySourcingService()
  • Method Details

    • setRestServiceConfiguration

      public void setRestServiceConfiguration(RestServiceConfiguration restServiceConfiguration)
      Description copied from interface: OaaRestService
      Set the REST service configuration
      Specified by:
      setRestServiceConfiguration in interface OaaRestService
      Parameters:
      restServiceConfiguration - the restServiceConfiguration to set
    • setBackendDown

      public void setBackendDown(boolean backendDown)
      Description copied from interface: OaaRestService
      Set the Attribute for BackendDown in the Session
      Specified by:
      setBackendDown in interface OaaRestService
      Parameters:
      backendDown - the value to set in the session
    • callRestServiceAndPersistResult

      public void callRestServiceAndPersistResult(AbstractOrderModel model)
      Description copied from interface: SourcingService
      Call the REST Service in Customer Activity Repository (CAR) and persist the result (Schedule Lines) in the given cart.
      Specified by:
      callRestServiceAndPersistResult in interface SourcingService
      Parameters:
      model - Hybris cart or order model
    • callRestService

      public SourcingResponse callRestService(AbstractOrderModel orderModel, boolean execAllStrategies, boolean reserve)
      Description copied from interface: SourcingService
      Call the REST service in Customer Activity Repository (CAR) and return the service call response without persisting in hybris to the method invoker.
      Specified by:
      callRestService in interface SourcingService
      Parameters:
      orderModel - Hybris order or cart
      execAllStrategies - 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 The response from the sourcing call