Skip to content

Commit

Permalink
Configuring fcrepo-sequencer-archive, including modified version of r…
Browse files Browse the repository at this point in the history
…epository.json instead of inheriting from fcrepo-webapp
  • Loading branch information
escowles committed Apr 11, 2013
1 parent d5d8373 commit ff1fa91
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -44,6 +44,11 @@
<artifactId>fcrepo-bagit-object-serialization</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.fcrepo</groupId>
<artifactId>fcrepo-sequencer-archive</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
Expand Down Expand Up @@ -149,6 +154,7 @@
<scanIntervalSeconds>2</scanIntervalSeconds>
<webApp>
<contextPath>/</contextPath>
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
</webApp>
</configuration>
</plugin>
Expand Down
51 changes: 51 additions & 0 deletions src/main/resources/config/repository.json
@@ -0,0 +1,51 @@
{
"name" : "repo",
"jndiName" : "",
"workspaces" : {
"predefined" : ["fedora"],
"default" : "fedora",
"allowCreation" : true
},
"clustering" : {
"clusterName" : "modeshape-cluster"
},
"query" : {
"enabled" : true,
"rebuildUponStartup" : "if_missing",
"indexStorage" : {
"type" : "filesystem",
"location" : "${fcrepo.modeshape.index.location:target/indexes}",
"lockingStrategy" : "native",
"fileSystemAccessType" : "auto"
}
},
"sequencing" : {
"removeDerivedContentWithOriginal" : true,
"sequencers" : {
"ArchiveSequencer" : {
"classname" : "org.fcrepo.sequencer.archive.ArchiveSequencer",
"pathExpressions":["fedora://(*.zip)/jcr:content[@jcr:data] => ." ],
"endpoint" : "http://localhost:8000"
}
}
},
"storage" : {
"cacheName" : "FedoraRepository",
"cacheConfiguration" : "${fcrepo.infinispan.cache_configuration:config/infinispan_configuration.xml}",
"binaryStorage" : {
"type" : "cache",
"dataCacheName" : "FedoraRepository",
"metadataCacheName" : "FedoraRepository"
}
},
"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
"useOnFailedLogin" : false
},
"providers" : [
{ "classname" : "servlet" }
]
},
"node-types" : ["fedora-node-types.cnd"]
}

0 comments on commit ff1fa91

Please sign in to comment.