Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
/ content-stores Public archive

Alfresco Summit 2013 - Barcelona Hack-a-thon project for developing additional content store implementations for Alfresco - check out https://github.com/AFaust/simple-content-stores as a "successor" to this project

Notifications You must be signed in to change notification settings

AFaust/content-stores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

content-stores

Alfresco Summit 2013 - Barcelona Hack-a-thon project for developing additional content store implementations for Alfresco

HashBasedFileContentStore

Implements a variant of the FileContentStore that uses a message digest based directory structure instead of the date based one. This has the advantage that it provides de-deplication out of the box. To configure it instead of the default Alfresco FileContentStore use this configuration:

	<bean id="hashBasedFileContentStore" class="org.alfresco.hackathon.content.stores.repo.HashBasedFileContentStore" >
        <property name="rootDirectory" value="${dir.contentstore}" />
        <property name="messageDigestType" value="SHA-512" />
	</bean>	
	
	<!-- Point the ContentService to the 'selector' store -->
	<bean id="contentService" parent="baseContentService">
		<property name="store">
			<ref bean="hashBasedFileContentStore" />
		</property>
	</bean>

There is also a sample XML configuration file alfresco/WEB-INF/classes/alfresco/extension/hash-based-content-store-context.xml.sample which overrides the default file content store and only needs to be copied into the shared/classes/alfresco/extension directory and be renamed to remove the .sample suffix.

About

Alfresco Summit 2013 - Barcelona Hack-a-thon project for developing additional content store implementations for Alfresco - check out https://github.com/AFaust/simple-content-stores as a "successor" to this project

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •