Class DefaultOutboundServiceFacade

    • Constructor Detail

      • DefaultOutboundServiceFacade

        @Deprecated(since="2105",
                    forRemoval=true)
        public DefaultOutboundServiceFacade()
        Deprecated, for removal: This API element is subject to removal in a future version.
        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 the DecoratorContextFactory to be used
        client - implementation of the RemoteSystemClient to 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: 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
        ioCode - 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
      • send

        public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send​(SyncParameters params)
        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:
        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.
      • 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 to ConsumedDestinationModel in DecoratorContextFactory.
      • 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 to IntegrationObjectDescriptor in DecoratorContextFactory.
      • 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.
      • 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.
      • 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.
      • 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.
        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 deprecated protected methods. 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 deprecated protected methods. Will be removed with them.
      • 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 deprecated protected methods. 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 deprecated protected methods. 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 deprecated protected methods. 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 deprecated protected methods. 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 deprecated protected methods. 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 deprecated protected methods. Will be removed with them.
      • setRequestDecoratorService

        public void setRequestDecoratorService​(RequestDecoratorService requestDecoratorService)