Class AnnotationIndexAugmenter

java.lang.Object
io.goobi.viewer.model.annotation.serialization.AnnotationIndexAugmenter
All Implemented Interfaces:
IndexAugmenter

public class AnnotationIndexAugmenter extends Object implements IndexAugmenter
Author:
florian
  • Field Details

    • SUFFIX_ANNOTATIONS

      public static final String SUFFIX_ANNOTATIONS
      Constant SUFFIX_ANNOTATIONS="_annotations"
      See Also:
  • Constructor Details

    • AnnotationIndexAugmenter

      public AnnotationIndexAugmenter(Collection<PersistentAnnotation> annotations)
    • AnnotationIndexAugmenter

      public AnnotationIndexAugmenter()
  • Method Details

    • augmentReIndexRecord

      public void augmentReIndexRecord(String pi, String dataRepository, String namingScheme) throws Exception
      Description copied from interface: IndexAugmenter
      Any additional tasks this module needs to perform when re-indexing a record (e.g. putting additional files into the hotfolder).
      Specified by:
      augmentReIndexRecord in interface IndexAugmenter
      Parameters:
      pi - a String object.
      dataRepository - a String object.
      namingScheme - a String object.
      Throws:
      Exception - if any.
    • augmentReIndexPage

      public boolean augmentReIndexPage(String pi, int page, org.apache.solr.common.SolrDocument doc, String dataRepository, String namingScheme) throws Exception
      Description copied from interface: IndexAugmenter
      Any additional tasks this module needs to perform when re-indexing a page (e.g. putting additional files into the hotfolder).
      Specified by:
      augmentReIndexPage in interface IndexAugmenter
      Parameters:
      pi - a String object.
      page - a int.
      doc - a SolrDocument object.
      dataRepository - a String object.
      namingScheme - a String object.
      Returns:
      true if successful; false otherwise
      Throws:
      Exception - if any.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Two instances are equal if they contain the same annotations (disregarding order)
      Overrides:
      equals in class Object