Class DefaultOutboundServiceFacade

    • Constructor Detail

      • DefaultOutboundServiceFacade

        public DefaultOutboundServiceFacade()
    • Method Detail

      • send

        public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send​(ItemModel itemModel,
                                                                                          java.lang.String integrationObjectCode,
                                                                                          java.lang.String destinationId)
        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:
        itemModel - the model to be converted
        integrationObjectCode - 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
      • orchestrate

        protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> orchestrate​(ItemModel itemModel,
                                                                                                    java.lang.String integrationObjectCode,
                                                                                                    java.lang.String destinationId)
      • getConsumedDestinationModelById

        protected ConsumedDestinationModel getConsumedDestinationModelById​(java.lang.String destinationId)
      • createObservable

        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)
      • createHttpEntity

        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)
      • findIntegrationObjectItemCode

        protected java.lang.String findIntegrationObjectItemCode​(java.lang.String integrationObjectCode,
                                                                 ItemModel itemModel)
      • setIntegrationRestTemplateFactory

        public void setIntegrationRestTemplateFactory​(IntegrationRestTemplateFactory integrationRestTemplateFactory)
      • setOutboundRequestDecorators

        public void setOutboundRequestDecorators​(java.util.List<OutboundRequestDecorator> decorators)
      • setIntegrationObjectService

        public void setIntegrationObjectService​(IntegrationObjectService integrationObjectService)
      • setOutboundServicesConfiguration

        public void setOutboundServicesConfiguration​(OutboundServicesConfiguration outboundServicesConfiguration)
      • setFlexibleSearchService

        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)