Class DummySourcingService

    • Constructor Detail

      • DummySourcingService

        public DummySourcingService()
    • Method Detail

      • 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