Class PredictionApplierHxAuthClient

java.lang.Object
org.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient
org.alfresco.hxi_connector.prediction_applier.auth.PredictionApplierHxAuthClient
All Implemented Interfaces:
org.alfresco.hxi_connector.common.adapters.auth.AuthenticationClient, org.apache.camel.builder.ModelRoutesBuilder, org.apache.camel.CamelContextAware, org.apache.camel.Ordered, org.apache.camel.RoutesBuilder, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.ResourceAware

@Component public class PredictionApplierHxAuthClient extends org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient
  • Field Summary

    Fields inherited from class org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient

    EXPECTED_STATUS_CODE, LOCAL_AUTH_ENDPOINT

    Fields inherited from interface org.apache.camel.Ordered

    HIGHEST, LOWEST
  • Constructor Summary

    Constructors
    Constructor
    Description
    PredictionApplierHxAuthClient(org.apache.camel.CamelContext camelContext, HxInsightProperties hxInsightProperties, org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties oAuth2ClientProperties, RepositoryApiProperties repositoryApiProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.alfresco.hxi_connector.common.adapters.auth.AuthenticationResult
    authenticate(String clientRegistrationId)
     
    org.alfresco.hxi_connector.common.adapters.auth.AuthenticationResult
    authenticate(String tokenUri, org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
     
    protected String
    createEncodedBody(String clientRegistrationId)
     

    Methods inherited from class org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient

    configure

    Methods inherited from class org.apache.camel.builder.RouteBuilder

    addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, addTemplatedRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configuration, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, dataFormat, errorHandler, errorHandler, expression, from, from, from, fromF, fromV, fromV, getBeans, getOrder, getResource, getRestCollection, getRestConfiguration, getRests, getRouteCollection, getRoutes, getRouteTemplateCollection, getTemplatedRouteCollection, initializeCamelContext, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateBeans, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, prepareModel, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, setRouteTemplateCollection, setTemplatedRouteCollection, templatedRoute, toString, transformer, updateRoutesToCamelContext, validator

    Methods inherited from class org.apache.camel.builder.BuilderSupport

    body, bodyAs, constant, constant, constant, createErrorHandlerBuilder, csimple, csimple, datasonnet, datasonnet, datasonnet, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, exceptionMessage, exchangeProperty, expression, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, java, java, joor, joor, jq, jq, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, variable, xpath, xpath, xpath, xpath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PredictionApplierHxAuthClient

      public PredictionApplierHxAuthClient(org.apache.camel.CamelContext camelContext, HxInsightProperties hxInsightProperties, org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties oAuth2ClientProperties, RepositoryApiProperties repositoryApiProperties)
  • Method Details

    • authenticate

      @Retryable(retryFor=org.alfresco.hxi_connector.common.exception.EndpointServerErrorException.class, maxAttemptsExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.attempts}", backoff=@Backoff(delayExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.initialDelay}",multiplierExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.delayMultiplier}")) public org.alfresco.hxi_connector.common.adapters.auth.AuthenticationResult authenticate(String tokenUri, org.springframework.security.oauth2.client.registration.ClientRegistration clientRegistration)
      Specified by:
      authenticate in interface org.alfresco.hxi_connector.common.adapters.auth.AuthenticationClient
      Overrides:
      authenticate in class org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient
    • authenticate

      @Retryable(retryFor=org.alfresco.hxi_connector.common.exception.EndpointServerErrorException.class, maxAttemptsExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.attempts}", backoff=@Backoff(delayExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.initialDelay}",multiplierExpression="#{@hxInsightProperties.hylandExperience.authentication.retry.delayMultiplier}")) public org.alfresco.hxi_connector.common.adapters.auth.AuthenticationResult authenticate(String clientRegistrationId)
      Specified by:
      authenticate in interface org.alfresco.hxi_connector.common.adapters.auth.AuthenticationClient
      Overrides:
      authenticate in class org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient
    • createEncodedBody

      protected String createEncodedBody(String clientRegistrationId)
      Overrides:
      createEncodedBody in class org.alfresco.hxi_connector.common.adapters.auth.HxAuthenticationClient