public class FedoraFileSystemConnector extends org.modeshape.connector.filesystem.FileSystemConnector
FileSystemConnector to enable the autocreation of Fedora-specific datastream and
content properties.| Constructor and Description |
|---|
FedoraFileSystemConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
fileFor(String id) |
org.infinispan.schematic.document.Document |
getDocumentById(String id)
This method returns the object/document for the node with the federated arg 'id'.
|
void |
initialize(javax.jcr.NamespaceRegistry registry,
org.modeshape.jcr.api.nodetype.NodeTypeManager nodeTypeManager) |
boolean |
isReadonly() |
protected org.modeshape.jcr.spi.federation.DocumentReader |
readDocument(org.infinispan.schematic.document.Document document) |
boolean |
removeDocument(String id) |
String |
sha1(File file) |
protected boolean |
shouldCacheProperties()
Checks whether internally managed properties can and should be stored to
an ExtraPropertiesStore.
|
void |
storeDocument(org.infinispan.schematic.document.Document document) |
protected void |
touchParent(String id)
Find the parent file, and set its timestamp to the current time.
|
void |
updateDocument(org.modeshape.jcr.spi.federation.DocumentChanges changes) |
binaryFor, checkFileNotExcluded, contentBasedSha1, contentChildId, createBinaryValue, createFileForUrl, createUrlForFile, getBinaryValue, getChildren, getDocumentId, getDocumentPathsById, hasDocument, idFor, isContentNode, isExcluded, isRoot, newDocumentId, shutdowncheckFieldNotNull, extraPropertiesFor, extraPropertiesStore, factories, getCacheTtlSeconds, getChildReference, getContext, getEnvironment, getLogger, getMimeTypeDetector, getRepositoryName, getSourceName, getTransactionManager, isQueryable, log, moveExtraProperties, nameFrom, nameFrom, nameFrom, newChildReference, newConnectorChangedSet, newDocument, newPageDocument, pathFactory, pathFrom, pathFrom, propertyFactory, setExtraPropertiesStore, translator, writeDocumentpublic FedoraFileSystemConnector()
public void initialize(javax.jcr.NamespaceRegistry registry, org.modeshape.jcr.api.nodetype.NodeTypeManager nodeTypeManager) throws javax.jcr.RepositoryException, IOException
initialize in class org.modeshape.connector.filesystem.FileSystemConnectorjavax.jcr.RepositoryExceptionIOExceptionpublic org.infinispan.schematic.document.Document getDocumentById(String id)
getDocumentById in class org.modeshape.connector.filesystem.FileSystemConnectorprotected boolean shouldCacheProperties()
public String sha1(File file)
sha1 in class org.modeshape.connector.filesystem.FileSystemConnectorpublic boolean removeDocument(String id)
removeDocument in class org.modeshape.connector.filesystem.FileSystemConnectorpublic void storeDocument(org.infinispan.schematic.document.Document document)
storeDocument in class org.modeshape.connector.filesystem.FileSystemConnectorpublic void updateDocument(org.modeshape.jcr.spi.federation.DocumentChanges changes)
updateDocument in class org.modeshape.connector.filesystem.FileSystemConnectorprotected void touchParent(String id)
protected File fileFor(String id)
fileFor in class org.modeshape.connector.filesystem.FileSystemConnectorprotected org.modeshape.jcr.spi.federation.DocumentReader readDocument(org.infinispan.schematic.document.Document document)
readDocument in class org.modeshape.jcr.spi.federation.Connectorpublic boolean isReadonly()
isReadonly in class org.modeshape.jcr.spi.federation.WritableConnectorCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.