Modeshape sequencer to process large tar/zip archive files. Initial proof-of-concept implementation extracts table of contents and stores as a separate textfile datastream.
To add this sequencer to a webapp such as kitchen-sink:
-
Build fcrepo-sequencer-archives and install it in your local Maven repository:
$ mvn install
-
In the webapp project, add a dependency to
pom.xml
:<dependency> <groupId>org.fcrepo</groupId> <artifactId>fcrepo-sequencer-archive</artifactId> <version>${project.version}</version> </dependency>
-
And add a sequencing block to
repository.json
:"sequencing" : { "removeDerivedContentWithOriginal" : true, "sequencers" : { "ArchiveSequencer" : { "classname" : "org.fcrepo.sequencer.archive.ArchiveSequencer", "pathExpressions":["fedora://(*.zip)/jcr:content[@jcr:data] => ." ], "endpoint" : "http://localhost:8000" } } },