Class DefaultOutboundServiceFacade

java.lang.Object
de.hybris.platform.outboundservices.facade.impl.DefaultOutboundServiceFacade
All Implemented Interfaces:
OutboundServiceFacade

public class DefaultOutboundServiceFacade extends Object implements OutboundServiceFacade
Default implementation of OutboundServiceFacade.
  • Constructor Details

    • DefaultOutboundServiceFacade

      @Deprecated(since="2211.FP1", forRemoval=true) public DefaultOutboundServiceFacade(@NotNull @NotNull DecoratorContextFactory ctxFactory, @NotNull @NotNull RemoteSystemClient client)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Instantiates this facade with the provided dependencies it relies on.
      Parameters:
      ctxFactory - implementation of the DecoratorContextFactory to be used
      client - implementation of the RemoteSystemClient to be used
    • DefaultOutboundServiceFacade

      public DefaultOutboundServiceFacade(@NotNull @NotNull RemoteSystemClient client)
      Instantiates this facade with the provided dependencies it relies on.
      Parameters:
      client - implementation of the RemoteSystemClient to be used
  • Method Details

    • send

      @Deprecated(since="2211.FP1", forRemoval=true) public rx.Observable<org.springframework.http.ResponseEntity<Map>> send(@NotNull @NotNull ItemModel itemModel, @NotNull @NotNull String ioCode, @NotNull @NotNull String destinationId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method orchestrates the services to build the payload and to integrate with restful endpoint. A ModelNotFoundException will be thrown if a valid IntegrationObjectModel cannot be found for the passed ioCode.
      Specified by:
      send in interface OutboundServiceFacade
      Parameters:
      itemModel - the model to be converted
      ioCode - the name of the integration object to convert this model as payload
      destinationId - endpoint destination information
      Returns:
      rx.Observable which allows the caller to subscribe the callback method
    • send

      public rx.Observable<org.springframework.http.ResponseEntity<Map>> send(SyncParameters params)
      Description copied from interface: OutboundServiceFacade
      Method orchestrates the services to build the payload and to integrate with restful endpoint.
      Specified by:
      send in interface OutboundServiceFacade
      Parameters:
      params - a parameter object holding data about the item synchronization request
      Returns:
      rx.Observable which allows the caller to subscribe the callback method that provides result of the item sending.
    • sendBatch

      public org.springframework.http.ResponseEntity<String> sendBatch(List<SyncParameters> params)
      Description copied from interface: OutboundServiceFacade
      Method orchestrates the services to build a batch payload and to integrate with restful endpoint.
      Specified by:
      sendBatch in interface OutboundServiceFacade
      Parameters:
      params - a parameter object holding a list of parameters with data about the parts for the batch synchronization request
      Returns:
      ResponseEntity that provides result of the request.
    • createObservable

      protected rx.Observable<org.springframework.http.ResponseEntity<Map>> createObservable(SyncParameters params)
    • createBatchObservable

      protected org.springframework.http.ResponseEntity<String> createBatchObservable(List<SyncParameters> params)
    • setContextFactory

      @Deprecated(since="2205", forRemoval=true) public void setContextFactory(DecoratorContextFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      this property is not required anymore.
    • setRequestDecoratorService

      public void setRequestDecoratorService(RequestDecoratorService requestDecoratorService)
    • setMultiPartRequestGenerator

      public void setMultiPartRequestGenerator(MultiPartRequestGenerator multiPartRequestGenerator)
    • setIntegrationRestTemplateFactory

      @Deprecated(since="2211.FP1", forRemoval=true) public void setIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      IntegrationRestTemplateFactory is not needed anymore in this class and will be removed
      Injects rest template factory to be used.
      Parameters:
      integrationRestTemplateFactory - factory implementation to use for rest templates creation
    • getIntegrationRestTemplateFactory

      @Deprecated(since="2211.FP1", forRemoval=true) protected IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
      IntegrationRestTemplateFactory is not needed anymore in this class and will be removed
      Returns:
      IntegrationRestTemplateFactory
    • setMonitoringDecorator

      @Deprecated(since="2211.FP1", forRemoval=true) public void setMonitoringDecorator(OutboundRequestDecorator decorator)
      Deprecated, for removal: This API element is subject to removal in a future version.
      OutboundRequestDecorator is not required anymore and will be removed.
      Injects rest template factory to be used.
      Parameters:
      decorator -
    • getMonitoringDecorator

      @Deprecated(since="2211.FP1", forRemoval=true) protected OutboundRequestDecorator getMonitoringDecorator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      OutboundRequestDecorator is not needed anymore in this class and will be removed
      Returns:
      OutboundRequestDecorator