obsolete-version-manager is Tieto project for Alfresco virtual Hackathon 2018
The main idea of this project is to implement "manager" which would take care of versions.
For example:
- Keep only x latest versions on fast (default) content store and move older ones to slow content store
- Keep just x latest versions and remove remaining
- Remove versions older than specific time
There are four different custom content stores used in this project:
- defaultTenantFileContentStore - Works in the same way as Alfresco default content store. Content is stored under ${dir.contentstore}
- fastFileStore - Used especially for demonstration purposes. Content is stored under ${dir.root}\fastStore
- slowFileStore - Same as above. Content is stored under ${dir.root}\slowStore
- propertyRoutingStore - This "facade" store decides which content store will be used based on cm:storeName property defined in cm:storeSelector aspect
All 4 content stores are configured in alfresco-global.properties
Since this addon uses Selector Property Store feature which is implemented as part of alfresco-simple-content-stores, several mandatory dependencies are automatically added.
Those dependecies are defined in repo/share pom file. You can check and change module versions if needed. Following modules are used:
Repository
- de.acosix.alfresco.utility.repo
- de.acosix.alfresco.simplecontentstores.repo
- support-tools-repo
- javascript-console-repo
Share
- support-tools-share
- javascript-console-share
We decided to use the latest (snapshot) versions of Acosix/alfresco-utility and Acosix/alfresco-simple-content-stores. Therefore, ossrh repository was added to repo pom file.
One advice for following methods, be sure that you are using the same version in pom file as in your local repo.
Just clone following repositories and execute mvn install
- Acosix/alfresco-utility
- Acosix/alfresco-simple-content-stores
- OrderOfTheBee/ootbee-support-tools
- share-extras/js-console
- It is not so easy to transfer versions
- Alfresco simple content store module is very useful