Class DefaultOutboundServiceFacade
java.lang.Object
de.hybris.platform.outboundservices.facade.impl.DefaultOutboundServiceFacade
- All Implemented Interfaces:
OutboundServiceFacade
Default implementation of OutboundServiceFacade.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOutboundServiceFacade(@NotNull DecoratorContextFactory ctxFactory, @NotNull RemoteSystemClient client) Deprecated, for removal: This API element is subject to removal in a future version.DefaultOutboundServiceFacade(@NotNull RemoteSystemClient client) Instantiates this facade with the provided dependencies it relies on. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<String>createBatchObservable(List<SyncParameters> params) protected rx.Observable<org.springframework.http.ResponseEntity<Map>>createObservable(SyncParameters params) protected IntegrationRestTemplateFactoryDeprecated, for removal: This API element is subject to removal in a future version.IntegrationRestTemplateFactoryis not needed anymore in this class and will be removedprotected OutboundRequestDecoratorDeprecated, for removal: This API element is subject to removal in a future version.OutboundRequestDecoratoris not needed anymore in this class and will be removedrx.Observable<org.springframework.http.ResponseEntity<Map>>Deprecated, for removal: This API element is subject to removal in a future version.usesend(SyncParameters)instead.rx.Observable<org.springframework.http.ResponseEntity<Map>>send(SyncParameters params) Method orchestrates the services to build the payload and to integrate with restful endpoint.org.springframework.http.ResponseEntity<String>sendBatch(List<SyncParameters> params) Method orchestrates the services to build a batch payload and to integrate with restful endpoint.voidsetContextFactory(DecoratorContextFactory factory) Deprecated, for removal: This API element is subject to removal in a future version.this property is not required anymore.voidsetIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory) Deprecated, for removal: This API element is subject to removal in a future version.IntegrationRestTemplateFactoryis not needed anymore in this class and will be removedvoidsetMonitoringDecorator(OutboundRequestDecorator decorator) Deprecated, for removal: This API element is subject to removal in a future version.OutboundRequestDecoratoris not required anymore and will be removed.voidsetMultiPartRequestGenerator(MultiPartRequestGenerator multiPartRequestGenerator) voidsetRequestDecoratorService(RequestDecoratorService requestDecoratorService)
-
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.useDefaultOutboundServiceFacade(RemoteSystemClient)instead.Instantiates this facade with the provided dependencies it relies on.- Parameters:
ctxFactory- implementation of theDecoratorContextFactoryto be usedclient- implementation of theRemoteSystemClientto be used
-
DefaultOutboundServiceFacade
Instantiates this facade with the provided dependencies it relies on.- Parameters:
client- implementation of theRemoteSystemClientto 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.usesend(SyncParameters)instead.Method orchestrates the services to build the payload and to integrate with restful endpoint. AModelNotFoundExceptionwill be thrown if a validIntegrationObjectModelcannot be found for the passed ioCode.- Specified by:
sendin interfaceOutboundServiceFacade- Parameters:
itemModel- the model to be convertedioCode- the name of the integration object to convert this model as payloaddestinationId- endpoint destination information- Returns:
- rx.Observable which allows the caller to subscribe the callback method
-
send
Description copied from interface:OutboundServiceFacadeMethod orchestrates the services to build the payload and to integrate with restful endpoint.- Specified by:
sendin interfaceOutboundServiceFacade- 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
Description copied from interface:OutboundServiceFacadeMethod orchestrates the services to build a batch payload and to integrate with restful endpoint.- Specified by:
sendBatchin interfaceOutboundServiceFacade- 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
-
setMultiPartRequestGenerator
-
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.IntegrationRestTemplateFactoryis not needed anymore in this class and will be removedInjects 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.IntegrationRestTemplateFactoryis not needed anymore in this class and will be removedGetter for theIntegrationRestTemplateFactory- 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.OutboundRequestDecoratoris 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.OutboundRequestDecoratoris not needed anymore in this class and will be removedGetter for theOutboundRequestDecorator- Returns:
OutboundRequestDecorator
-
DefaultOutboundServiceFacade(RemoteSystemClient)instead.