|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.storage.DefaultDOManager
org.fcrepo.server.storage.GSearchDOManager
public class GSearchDOManager
DefaultDOManager extension that updates a GSearch (Fedora Generic Search) service as object changes are committed.
To use, simply change fedora.fcfg, replacing "DefaultDOManager" with "GSearchDOManager", and add the following xml param elements:
Required:
Optional (only needed if basic auth is required for GSearch REST access):
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary | |
|---|---|
static String |
GSEARCH_PASSWORD
Optional param: Password to use for GSearch authentication. |
static String |
GSEARCH_REST_URL
Required param: URL of GSearch REST interface. |
static String |
GSEARCH_USERNAME
Optional param: User to authenticate to GSearch as. |
| Fields inherited from class org.fcrepo.server.storage.DefaultDOManager |
|---|
m_connection, m_connectionPool, m_contentManager, m_fieldSearch, m_management, m_permanentStore, m_pidGenerator, m_resourceIndex, m_retainPIDs, m_storagePool, m_translator, m_validator |
| Constructor Summary | |
|---|---|
GSearchDOManager(Map moduleParameters,
Server server,
String role)
Delegates construction to the superclass. |
|
| Method Summary | |
|---|---|
void |
doCommit(boolean cachedObjectRequired,
Context context,
DigitalObject obj,
String logMessage,
boolean remove)
Commits the changes to the given object as usual, then attempts to propagate the change to the GSearch service. |
void |
postInitModule()
Performs superclass post-initialization, then completes initialization using GSearch-specific parameters. |
| Methods inherited from class org.fcrepo.server.storage.DefaultDOManager |
|---|
findObjects, getConnectionPool, getDefaultExportFormat, getDOValidator, getIngestWriter, getNextPID, getReader, getRepositoryHash, getRequiredModuleRoles, getServiceDefinitionReader, getServiceDeploymentReader, getStorageCharacterEncoding, getStorageFormat, getTranslator, getWriter, initModule, initRetainPID, listObjectPIDs, lookupDeploymentForCModel, objectExists, releaseWriter, reservePIDs, resumeFindObjects, shutdownModule, toSql |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GSEARCH_REST_URL
public static final String GSEARCH_USERNAME
public static final String GSEARCH_PASSWORD
| Constructor Detail |
|---|
public GSearchDOManager(Map moduleParameters,
Server server,
String role)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void postInitModule()
throws ModuleInitializationException
postInitModule in class DefaultDOManagerModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public void doCommit(boolean cachedObjectRequired,
Context context,
DigitalObject obj,
String logMessage,
boolean remove)
throws ServerException
doCommit in class DefaultDOManagerServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||