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 |
isContentNode(String id) |
boolean |
isReadonly() |
boolean |
isRoot(String id)
Pass-thru to the parent class in order to make this function public
|
protected org.modeshape.jcr.spi.federation.DocumentReader |
readDocument(org.infinispan.schematic.document.Document document) |
boolean |
removeDocument(String id) |
String |
sha1(File file)
Pass-thru to the parent class in order to make this function public
|
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, isExcluded, 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 IOException
initialize
in class org.modeshape.connector.filesystem.FileSystemConnector
IOException
public org.infinispan.schematic.document.Document getDocumentById(String id)
getDocumentById
in class org.modeshape.connector.filesystem.FileSystemConnector
protected boolean shouldCacheProperties()
public boolean isRoot(String id)
isRoot
in class org.modeshape.connector.filesystem.FileSystemConnector
id
- the node ID to testpublic String sha1(File file)
sha1
in class org.modeshape.connector.filesystem.FileSystemConnector
file
- the file used to compute a sha1 hashpublic 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)
id
- the idprotected 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
public boolean isContentNode(String id)
isContentNode
in class org.modeshape.connector.filesystem.FileSystemConnector
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.