GithubHelp home page GithubHelp logo

afaust / content-stores Goto Github PK

View Code? Open in Web Editor NEW
9.0 8.0 1.0 272 KB

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

Java 94.31% JavaScript 5.69%

content-stores's Introduction

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.

content-stores's People

Contributors

afaust avatar andtt7 avatar flox1an avatar marsbard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sa-jackmax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.