public class Fedora3FederationConnector
extends org.modeshape.jcr.federation.spi.ReadOnlyConnector
implements org.fcrepo.jcr.FedoraJcrTypes
| Modifier and Type | Class and Description |
|---|---|
class |
Fedora3FederationConnector.Fedora3DatastreamBinaryValue |
| Modifier and Type | Field and Description |
|---|---|
protected Fedora3DataInterface |
f3 |
protected String |
fedoraUrl
Set by reflection to the value in the ModeShape repository configuration
json file, this is the URL for the fedora repository over which
this connector federates.
|
protected RepositoryOrganizer |
organizer |
protected String |
password
Set by reflection to the value in the ModeShape repository configuration
json file, this is the password to access the fedora 3 repository over
which this connector federates.
|
protected String |
username
Set by reflection to the value in the ModeShape repository configuration
json file, this is the username to access the fedora 3 repository over
which this connector federates.
|
| Constructor and Description |
|---|
Fedora3FederationConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildPath(String path,
String currentId)
The root path is always '/', organizational node paths are made up up
any number of organizational node ids concatenated together, while all
other nodes are made up of any number of organizational node paths
concatenated together followed by an object, datastream or content ID.
|
org.modeshape.jcr.value.binary.ExternalBinaryValue |
getBinaryValue(String idStr)
Gets an ExternalBinaryValue that exposes access to content nodes in
the federation.
|
org.infinispan.schematic.document.Document |
getDocumentById(String idStr) |
String |
getDocumentId(String externalPath) |
Collection<String> |
getDocumentPathsById(String id) |
protected String |
getIdFromPath(String path)
The root path is always '/', organizational node paths are made up up
any number of organizational node ids concatenated together, while all
other nodes are made up of any number of organizational node paths
concatenated together followed by an object, datastream or content ID.
|
boolean |
hasDocument(String idStr)
Checks if a document with the given id exists.
|
void |
initialize(javax.jcr.NamespaceRegistry registry,
org.modeshape.jcr.api.nodetype.NodeTypeManager nodeTypeManager) |
isReadonly, newDocumentId, removeDocument, storeDocument, updateDocumentcheckFieldNotNull, extraPropertiesFor, extraPropertiesStore, factories, getCacheTtlSeconds, getChildReference, getContext, getEnvironment, getLogger, getMimeTypeDetector, getRepositoryName, getSourceName, getTransactionManager, isQueryable, nameFrom, nameFrom, nameFrom, newChildReference, newConnectorChangedSet, newDocument, newPageDocument, pathFactory, pathFrom, pathFrom, propertyFactory, readDocument, setExtraPropertiesStore, shutdown, translator, writeDocumentprotected Fedora3DataInterface f3
protected String fedoraUrl
protected String username
protected String password
protected RepositoryOrganizer organizer
public void initialize(javax.jcr.NamespaceRegistry registry,
org.modeshape.jcr.api.nodetype.NodeTypeManager nodeTypeManager)
throws javax.jcr.RepositoryException,
IOException
initialize in class org.modeshape.jcr.federation.spi.Connectorjavax.jcr.RepositoryExceptionIOExceptionpublic org.infinispan.schematic.document.Document getDocumentById(String idStr)
getDocumentById in class org.modeshape.jcr.federation.spi.Connectorpublic String getDocumentId(String externalPath)
getDocumentId in class org.modeshape.jcr.federation.spi.Connectorprotected String getIdFromPath(String path)
public Collection<String> getDocumentPathsById(String id)
getDocumentPathsById in class org.modeshape.jcr.federation.spi.Connectorprotected String buildPath(String path, String currentId)
public boolean hasDocument(String idStr)
hasDocument in class org.modeshape.jcr.federation.spi.ConnectoridStr - a non-null string representing the identifier
within the system whose existence is being queried in this
federation.public org.modeshape.jcr.value.binary.ExternalBinaryValue getBinaryValue(String idStr)
getBinaryValue in class org.modeshape.jcr.federation.spi.ConnectorCopyright © 2013 DuraSpace, Inc.. All rights reserved.