mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
63ace3abd8a60cdcda3b24e1a934ee48be80c5dc
* ContentMetadataExtracter (the Action service Executer): * Code refactored so that post processing of extracted properties can be called after a transform has taken place in an async call. Previously done in the same Thread. * The source size is passed to the metadataExtracterRegistry as this is needed to select the transform. * Passes the source nodeRef to the metadataExtractor, so that it is possible to update the correct node after the async transform call. * AbstractMappingMetadataExtracter (the base class for all extractors): * Post extract processing extracted into separate methods. * NodeRef made available to sub classes. * AsynchronousExtractor (new metadata extractor and embedder) that will use a T-Engine. * Set targetExtension in transform for metadata extract and embed requests to T-Engines in both LocalTransforms (community) and RenditionEventProducer (enterprise). * RenditionService2Impl (used to request and respond to async transform requests). * Add consumeExtractedMetadata and consumeEmbeddedMetadata methods, which handle the response, normally be calling AsynchronousExtractor. * Discovered that the JodConverterMetadataExtracter was superseded by the * TikaPoweredMetadataExtracter for all the types that it support in 6.0.1 and could have been deprecated at that time as part of REPO-2910. It will now be deprecated so that it can be removed in 7.0.0. Additional tests are being added to AsynchronousExtractorTest for overwritePolicy, enableStringTagging and carryAspectProperties in a separate PR, as these will cover tests at a likely to be removed when delete local extractors.
Alfresco Repository
Repository is a library packaged as a jar file which is part of Alfresco Content Services Repository. The library contains the following:
- DAOs and SQL scripts
- Various Service implementations
- Utility classes
Building and testing
The project can be built by running Maven command:
mvn clean install
The tests are combined in test classes split by test type or Spring application context used in the test, see classes in src/test/java/org/alfresco. All of these classes as well as individual tests can be run by specifying the test class name and a set of DB connection properties, for example:
mvn clean test -Dtest=SomeRepoTest -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql:alfresco -Ddb.username=alfresco -Ddb.password=alfresco
Artifacts
The artifacts can be obtained by:
- downloading from Alfresco repository
- getting as Maven dependency by adding the dependency to your pom file:
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-repository</artifactId>
<version>version</version>
</dependency>
and Alfresco Maven repository:
<repository>
<id>alfresco-maven-repo</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</repository>
The SNAPSHOT version of the artifact is never published.
Contributing guide
Please use this guide to make a contribution to the project.
Description
Languages
Java
96.5%
Fluent
1.1%
JavaScript
1%
HTML
0.5%
FreeMarker
0.4%
Other
0.3%