Package org.dlese.dpc.schemedit.dcs
Class DcsDataFileIndexingPlugin
java.lang.Object
org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
org.dlese.dpc.schemedit.dcs.DcsDataFileIndexingPlugin
- All Implemented Interfaces:
FileIndexingPlugin
Helper for indexing DCS-specific workflow status information along with the
normally-indexed fields for a metadata record.
Status information is obtained from a DcsDataRecord
via the DcsDataManager.
Invoked by the RepositoryManager
putRecord method during all indexing operations.
- Author:
- ostwald
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddFields(File file, org.apache.lucene.document.Document newDoc, org.apache.lucene.document.Document existingDoc, String docType, String docGroup) Adds workflow status fields to the index for a particular record.protected voidPrint a line to standard out.Methods inherited from class org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
getServletContext, setServletContext
-
Field Details
-
debug
protected static boolean debugDescription of the Field -
FIELD_NS
Name space prefix for dcs indexing fields- See Also:
-
-
Constructor Details
-
DcsDataFileIndexingPlugin
public DcsDataFileIndexingPlugin()
-
-
Method Details
-
addFields
public final void addFields(File file, org.apache.lucene.document.Document newDoc, org.apache.lucene.document.Document existingDoc, String docType, String docGroup) throws Exception Adds workflow status fields to the index for a particular record.- Parameters:
file- The sourceFile that is being indexed.newDoc- The new Document that is being created for this resourceexistingDoc- An existing Document that currently resides in the index for the given resource, or null if none was previously presentdocType- The feature to be added to the Fields attributedocGroup- The feature to be added to the Fields attribute- Throws:
Exception- If an error occurs- See Also:
-
prtln
Print a line to standard out.- Parameters:
s- The String to print.
-