...
Modeshape's FileSystemConnector documentation and configuration provide additional information about configuring the filesystem connector.
Multiple Directories
Although the syntax appears to support multiple mappings, we have found that a separate configuration block is required for each directory to be federated:
Code Block |
---|
"externalSources" : {
"federated-1" : {
"classname" : "org.fcrepo.connector.file.FedoraFileSystemConnector",
"directoryPath" : "/path/to/dir1",
"projections" : [ "default:/dir1 => /" ],
"contentBasedSha1" : "false",
"readonly" : true,
"extraPropertiesStorage" : "none"
},
"federated-2" : {
"classname" : "org.fcrepo.connector.file.FedoraFileSystemConnector",
"directoryPath" : "/path/to/dir2",
"projections" : [ "default:/dir2 => /" ],
"contentBasedSha1" : "false",
"readonly" : true,
"extraPropertiesStorage" : "none"
}
} |
This configuration would provide access to the two directories at http://localhost:8080/rest/dir1 and http://localhost:8080/rest/dir2.
Other Connectors
In addition to the filesystem connector, Modeshape includes several other connectors, for federating content from Git, CMIS repositories, and relational databases.
...