Class DefaultOutboundServiceFacade
java.lang.Object
de.hybris.platform.outboundservices.facade.impl.DefaultOutboundServiceFacade
- All Implemented Interfaces:
OutboundServiceFacade
Default implementation of OutboundServiceFacade.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.DefaultOutboundServiceFacade(@NotNull DecoratorContextFactory ctxFactory, @NotNull RemoteSystemClient client) Instantiates this facade with the provided dependencies it relies on. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OutboundRequestDecorator>addMonitoringDecorator(List<OutboundRequestDecorator> requestDecorators) Deprecated, for removal: This API element is subject to removal in a future version.not used: code was previously invoked increateHttpEntity(HttpHeaders, Map, DecoratorContext)) which has also been deprecated.createHttpEntity(ItemModel itemModel, String integrationObjectCode, ConsumedDestinationModel destinationModel, Map<String, Object> payload) Deprecated, for removal: This API element is subject to removal in a future version.usecreateHttpEntity(HttpHeaders, Map, DecoratorContext)instead.createHttpEntity(org.springframework.http.HttpHeaders headers, Map<String, Object> payload, DecoratorContext context) Deprecated, for removal: This API element is subject to removal in a future version.not used: logic extracted toRequestDecoratorService.createHttpEntity(SyncParameters).protected rx.Observable<org.springframework.http.ResponseEntity<Map>>createObservable(SyncParameters params) protected rx.Observable<org.springframework.http.ResponseEntity<Map>>createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, String integrationObjectCode, ConsumedDestinationModel destinationModel, Map<String, Object> payload) Deprecated, for removal: This API element is subject to removal in a future version.usecreateObservable(SyncParameters)instead.protected StringfindIntegrationObjectItemCode(String integrationObjectCode, ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.not used: integration object code is converted toIntegrationObjectDescriptorinDecoratorContextFactory.protected ConsumedDestinationModelgetConsumedDestinationModelById(String destinationId) Deprecated, for removal: This API element is subject to removal in a future version.not used: destination ID is converted toConsumedDestinationModelinDecoratorContextFactory.protected FlexibleSearchServiceDeprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected IntegrationObjectServiceDeprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected IntegrationRestTemplateFactoryprotected OutboundRequestDecoratorprotected List<OutboundRequestDecorator>Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected OutboundServicesConfigurationDeprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected rx.Observable<org.springframework.http.ResponseEntity<Map>>orchestrate(ItemModel itemModel, String integrationObjectCode, String destinationId) Deprecated, for removal: This API element is subject to removal in a future version.usesend(SyncParameters)instead.rx.Observable<org.springframework.http.ResponseEntity<Map>>Method orchestrates the services to build the payload and to integrate with restful endpoint.rx.Observable<org.springframework.http.ResponseEntity<Map>>send(SyncParameters params) Method orchestrates the services to build the payload and to integrate with restful endpoint.voidsetContextFactory(DecoratorContextFactory factory) Deprecated, for removal: This API element is subject to removal in a future version.injectDecoratorContextFactorydependency through the constructorvoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.voidsetIntegrationObjectService(IntegrationObjectService integrationObjectService) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.voidsetIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory) Deprecated, for removal: This API element is subject to removal in a future version.use theDefaultOutboundServiceFacade(DecoratorContextFactory, RemoteSystemClient)constructor instead.voidsetMonitoringDecorator(OutboundRequestDecorator monitoringDecorator) voidsetOutboundRequestDecorators(List<OutboundRequestDecorator> decorators) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.voidsetOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.voidsetRequestDecoratorService(RequestDecoratorService requestDecoratorService)
-
Constructor Details
-
DefaultOutboundServiceFacade
Deprecated, for removal: This API element is subject to removal in a future version.use theDefaultOutboundServiceFacade(DecoratorContextFactory, RemoteSystemClient)constructor.Instantiates this facade. When using this constructor it's important to inject all dependencies this implementation relies on through the setters. -
DefaultOutboundServiceFacade
public DefaultOutboundServiceFacade(@NotNull @NotNull DecoratorContextFactory ctxFactory, @NotNull @NotNull RemoteSystemClient client) Instantiates this facade with the provided dependencies it relies on.- Parameters:
ctxFactory- implementation of theDecoratorContextFactoryto be usedclient- implementation of theRemoteSystemClientto be used
-
-
Method Details
-
send
public rx.Observable<org.springframework.http.ResponseEntity<Map>> send(ItemModel itemModel, String ioCode, String destinationId) Description copied from interface:OutboundServiceFacadeMethod orchestrates the services to build the payload and to integrate with restful endpoint.- 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.
-
createObservable
protected rx.Observable<org.springframework.http.ResponseEntity<Map>> createObservable(SyncParameters params) -
createHttpEntity
@Deprecated(since="2105.0", forRemoval=true) protected org.springframework.http.HttpEntity<Map<String,Object>> createHttpEntity(org.springframework.http.HttpHeaders headers, Map<String, Object> payload, DecoratorContext context) Deprecated, for removal: This API element is subject to removal in a future version.not used: logic extracted toRequestDecoratorService.createHttpEntity(SyncParameters). -
addMonitoringDecorator
@Deprecated(since="2105.0", forRemoval=true) protected List<OutboundRequestDecorator> addMonitoringDecorator(List<OutboundRequestDecorator> requestDecorators) Deprecated, for removal: This API element is subject to removal in a future version.not used: code was previously invoked increateHttpEntity(HttpHeaders, Map, DecoratorContext)) which has also been deprecated. -
getConsumedDestinationModelById
@Deprecated(since="2011.0", forRemoval=true) protected ConsumedDestinationModel getConsumedDestinationModelById(String destinationId) Deprecated, for removal: This API element is subject to removal in a future version.not used: destination ID is converted toConsumedDestinationModelinDecoratorContextFactory. -
findIntegrationObjectItemCode
@Deprecated(since="2011.0", forRemoval=true) protected String findIntegrationObjectItemCode(String integrationObjectCode, ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.not used: integration object code is converted toIntegrationObjectDescriptorinDecoratorContextFactory. -
orchestrate
@Deprecated(since="2011.0", forRemoval=true) protected rx.Observable<org.springframework.http.ResponseEntity<Map>> orchestrate(ItemModel itemModel, String integrationObjectCode, String destinationId) Deprecated, for removal: This API element is subject to removal in a future version.usesend(SyncParameters)instead. -
createObservable
@Deprecated(since="2011.0", forRemoval=true) protected rx.Observable<org.springframework.http.ResponseEntity<Map>> createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, String integrationObjectCode, ConsumedDestinationModel destinationModel, Map<String, Object> payload) Deprecated, for removal: This API element is subject to removal in a future version.usecreateObservable(SyncParameters)instead. -
createHttpEntity
@Deprecated(since="2011.0", forRemoval=true) protected org.springframework.http.HttpEntity<Map<String,Object>> createHttpEntity(ItemModel itemModel, String integrationObjectCode, ConsumedDestinationModel destinationModel, Map<String, Object> payload) Deprecated, for removal: This API element is subject to removal in a future version.usecreateHttpEntity(HttpHeaders, Map, DecoratorContext)instead. -
getIntegrationRestTemplateFactory
-
setIntegrationRestTemplateFactory
@Deprecated(since="2105", forRemoval=true) public void setIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory) Deprecated, for removal: This API element is subject to removal in a future version.use theDefaultOutboundServiceFacade(DecoratorContextFactory, RemoteSystemClient)constructor instead.Injects rest template factory to be used.- Parameters:
integrationRestTemplateFactory- factory implementation to use for rest templates creation
-
getOutboundRequestDecorators
@Deprecated(since="2105.0", forRemoval=true) protected List<OutboundRequestDecorator> getOutboundRequestDecorators()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
setOutboundRequestDecorators
@Deprecated(since="2105.0", forRemoval=true) public void setOutboundRequestDecorators(List<OutboundRequestDecorator> decorators) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
getMonitoringDecorator
-
setMonitoringDecorator
-
getIntegrationObjectService
@Deprecated(since="2011.0", forRemoval=true) protected IntegrationObjectService getIntegrationObjectService()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
setIntegrationObjectService
@Deprecated(since="2011.0", forRemoval=true) public void setIntegrationObjectService(IntegrationObjectService integrationObjectService) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
getOutboundServicesConfiguration
@Deprecated(since="2105.0", forRemoval=true) protected OutboundServicesConfiguration getOutboundServicesConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
setOutboundServicesConfiguration
@Deprecated(since="2105.0", forRemoval=true) public void setOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
getFlexibleSearchService
@Deprecated(since="2011.0", forRemoval=true) protected FlexibleSearchService getFlexibleSearchService()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
setFlexibleSearchService
@Deprecated(since="2011.0", forRemoval=true) public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService) Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods. Will be removed with them. -
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.injectDecoratorContextFactorydependency through the constructor -
setRequestDecoratorService
-
DefaultOutboundServiceFacade(DecoratorContextFactory, RemoteSystemClient)constructor.