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()
-
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)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)protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>createObservable(DecoratorContext context)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(DecoratorContext)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()protected OutboundServicesConfigurationgetOutboundServicesConfiguration()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)voidsetMonitoringDecorator(OutboundRequestDecorator monitoringDecorator)voidsetOutboundRequestDecorators(java.util.List<OutboundRequestDecorator> decorators)voidsetOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration)
-
-
-
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(DecoratorContext context)
-
createHttpEntity
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)
-
addMonitoringDecorator
protected java.util.List<OutboundRequestDecorator> addMonitoringDecorator(java.util.List<OutboundRequestDecorator> requestDecorators)
-
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(DecoratorContext)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
public void setIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
getOutboundRequestDecorators
protected java.util.List<OutboundRequestDecorator> getOutboundRequestDecorators()
-
setOutboundRequestDecorators
public void setOutboundRequestDecorators(java.util.List<OutboundRequestDecorator> decorators)
-
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
protected OutboundServicesConfiguration getOutboundServicesConfiguration()
-
setOutboundServicesConfiguration
public void setOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration)
-
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)
-
-