Class DcsDataFileIndexingPlugin

java.lang.Object
org.dlese.dpc.index.writer.ServletContextFileIndexingPlugin
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 Details

    • 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:
  • 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 resource
      existingDoc - An existing Document that currently resides in the index for the given resource, or null if none was previously present
      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.