Class DefaultOutboundServiceFacade
- java.lang.Object
-
- de.hybris.platform.outboundservices.facade.impl.DefaultOutboundServiceFacade
-
- All Implemented Interfaces:
OutboundServiceFacade
public class DefaultOutboundServiceFacade extends java.lang.Object implements OutboundServiceFacade
Default implementation of OutboundServiceFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultOutboundServiceFacade()Deprecated, for removal: This API element is subject to removal in a future version.use theDefaultOutboundServiceFacade(DecoratorContextFactory, RemoteSystemClient)constructor.DefaultOutboundServiceFacade(@NotNull DecoratorContextFactory ctxFactory, @NotNull RemoteSystemClient client)Instantiates this facade with the provided dependencies it relies on.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.List<OutboundRequestDecorator>addMonitoringDecorator(java.util.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.protected org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>>createHttpEntity(ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)Deprecated, for removal: This API element is subject to removal in a future version.usecreateHttpEntity(HttpHeaders, Map, DecoratorContext)instead.protected org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>>createHttpEntity(org.springframework.http.HttpHeaders headers, java.util.Map<java.lang.String,java.lang.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<java.util.Map>>createObservable(SyncParameters params)protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)Deprecated, for removal: This API element is subject to removal in a future version.usecreateObservable(SyncParameters)instead.protected java.lang.StringfindIntegrationObjectItemCode(java.lang.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(java.lang.String destinationId)Deprecated, for removal: This API element is subject to removal in a future version.not used: destination ID is converted toConsumedDestinationModelinDecoratorContextFactory.protected FlexibleSearchServicegetFlexibleSearchService()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected IntegrationObjectServicegetIntegrationObjectService()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected IntegrationRestTemplateFactorygetIntegrationRestTemplateFactory()protected OutboundRequestDecoratorgetMonitoringDecorator()protected java.util.List<OutboundRequestDecorator>getOutboundRequestDecorators()Deprecated, for removal: This API element is subject to removal in a future version.used only in the other deprecatedprotectedmethods.protected OutboundServicesConfigurationgetOutboundServicesConfiguration()Deprecated, 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<java.util.Map>>orchestrate(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.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<java.util.Map>>send(ItemModel itemModel, java.lang.String ioCode, java.lang.String destinationId)Method orchestrates the services to build the payload and to integrate with restful endpoint.rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>send(SyncParameters params)Method orchestrates the services to build the payload and to integrate with restful endpoint.voidsetContextFactory(DecoratorContextFactory factory)voidsetFlexibleSearchService(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(java.util.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 Detail
-
DefaultOutboundServiceFacade
@Deprecated(since="2105", forRemoval=true) public 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 Detail
-
send
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send(ItemModel itemModel, java.lang.String ioCode, java.lang.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
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send(SyncParameters params)
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<java.util.Map>> createObservable(SyncParameters params)
-
createHttpEntity
@Deprecated(since="2105.0", forRemoval=true) protected org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>> createHttpEntity(org.springframework.http.HttpHeaders headers, java.util.Map<java.lang.String,java.lang.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 java.util.List<OutboundRequestDecorator> addMonitoringDecorator(java.util.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(java.lang.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 java.lang.String findIntegrationObjectItemCode(java.lang.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<java.util.Map>> orchestrate(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.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<java.util.Map>> createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.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<java.util.Map<java.lang.String,java.lang.Object>> createHttpEntity(ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)Deprecated, for removal: This API element is subject to removal in a future version.usecreateHttpEntity(HttpHeaders, Map, DecoratorContext)instead.
-
getIntegrationRestTemplateFactory
protected IntegrationRestTemplateFactory 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 java.util.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(java.util.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
protected OutboundRequestDecorator getMonitoringDecorator()
-
setMonitoringDecorator
public void setMonitoringDecorator(OutboundRequestDecorator monitoringDecorator)
-
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
public void setContextFactory(DecoratorContextFactory factory)
-
setRequestDecoratorService
public void setRequestDecoratorService(RequestDecoratorService requestDecoratorService)
-
-