Class AlfrescoRepositoryContentClient
java.lang.Object
org.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
org.alfresco.hxi_connector.live_ingester.adapters.messaging.repository.AlfrescoRepositoryContentClient
- All Implemented Interfaces:
RepositoryContentStorage,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 AlfrescoRepositoryContentClient
extends org.apache.camel.builder.RouteBuilder
implements RepositoryContentStorage
Client for downloading content directly from Alfresco repository. Used when content does not require transformation (source and target MIME types match).
-
Field Summary
Fields inherited from class org.apache.camel.builder.RouteBuilder
logFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadContent(String nodeId) Downloads content for a node directly from the Alfresco repository.Methods inherited from class org.apache.camel.builder.RouteBuilder
addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, addTemplatedRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configuration, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, customize, customize, 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, tokenizer, toString, transformer, updateRoutesToCamelContext, validatorMethods 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, simple, simple, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, variable, xpath, xpath, xpath, xpath
-
Constructor Details
-
AlfrescoRepositoryContentClient
public AlfrescoRepositoryContentClient()
-
-
Method Details
-
configure
public void configure()- Specified by:
configurein classorg.apache.camel.builder.RouteBuilder
-
downloadContent
@Retryable(retryFor=org.alfresco.hxi_connector.common.exception.EndpointServerErrorException.class, maxAttemptsExpression="#{@integrationProperties.alfresco.transform.sharedFileStore.retry.attempts}", backoff=@Backoff(delayExpression="#{@integrationProperties.alfresco.transform.sharedFileStore.retry.initialDelay}",multiplierExpression="#{@integrationProperties.alfresco.transform.sharedFileStore.retry.delayMultiplier}")) public File downloadContent(String nodeId) Description copied from interface:RepositoryContentStorageDownloads content for a node directly from the Alfresco repository.- Specified by:
downloadContentin interfaceRepositoryContentStorage- Parameters:
nodeId- the node ID (UUID format, without workspace://SpacesStore/ prefix)- Returns:
- the file content
-