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, shutdown
checkFieldNotNull, 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, writeDocument
public 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.FileSystemConnector
javax.jcr.RepositoryException
IOException
public org.infinispan.schematic.document.Document getDocumentById(String id)
getDocumentById
in class org.modeshape.connector.filesystem.FileSystemConnector
protected boolean shouldCacheProperties()
public String sha1(File file)
sha1
in class org.modeshape.connector.filesystem.FileSystemConnector
public boolean removeDocument(String id)
removeDocument
in class org.modeshape.connector.filesystem.FileSystemConnector
public void storeDocument(org.infinispan.schematic.document.Document document)
storeDocument
in class org.modeshape.connector.filesystem.FileSystemConnector
public void updateDocument(org.modeshape.jcr.spi.federation.DocumentChanges changes)
updateDocument
in class org.modeshape.connector.filesystem.FileSystemConnector
protected void touchParent(String id)
protected File fileFor(String id)
fileFor
in class org.modeshape.connector.filesystem.FileSystemConnector
protected org.modeshape.jcr.spi.federation.DocumentReader readDocument(org.infinispan.schematic.document.Document document)
readDocument
in class org.modeshape.jcr.spi.federation.Connector
public boolean isReadonly()
isReadonly
in class org.modeshape.jcr.spi.federation.WritableConnector
Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.