DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.dcs
Class DcsDataFileIndexingPlugin

java.lang.Object
  extended by org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
      extended by org.dlese.dpc.schemedit.dcs.DcsDataFileIndexingPlugin
All Implemented Interfaces:
FileIndexingPlugin

public class DcsDataFileIndexingPlugin
extends ServletContextFileIndexingPlugin

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
protected static boolean debug
          Description of the Field
static String FIELD_NS
          Name space prefix for dcs indexing fields
 
Constructor Summary
DcsDataFileIndexingPlugin()
           
 
Method Summary
 void addFields(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  void prtln(String s)
          Print a line to standard out.
 
Methods inherited from class org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
getServletContext, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static boolean debug
Description of the Field


FIELD_NS

public static final String FIELD_NS
Name space prefix for dcs indexing fields

See Also:
Constant Field Values
Constructor Detail

DcsDataFileIndexingPlugin

public DcsDataFileIndexingPlugin()
Method Detail

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:
newDoc - The new Document that is being created for this resource
existingDoc - An existing Document that currently resides in the index for the given resource, or null if none was previously present
file - The sourceFile that is being indexed.
docType - The feature to be added to the Fields attribute
docGroup - The feature to be added to the Fields attribute
Throws:
Exception - If an error occurs
See Also:
Document

prtln

protected void prtln(String s)
Print a line to standard out.

Parameters:
s - The String to print.

DLESE Tools
v1.6.0