Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Browse your home directory through fedora at http://localhost:8080/rest/home

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.