Class CardCatalogIndex

java.lang.Object
io.goobi.viewer.model.archives.CardCatalogIndex

public class CardCatalogIndex extends Object
Compact positional index of one card catalog archive: the ordered list of its drawers with card counts, built from a handful of small Solr queries instead of materializing the full archive tree. Card lists are loaded lazily per drawer.
  • Constructor Details

    • CardCatalogIndex

      public CardCatalogIndex(String pi, String label, long dateIndexed, List<CardCatalogDrawer> drawers, boolean restrictedDescendants)
      Parameters:
      pi - PI of the archive resource
      label - display label of the archive
      dateIndexed - latest DATEINDEXED value of the archive's root document
      drawers - drawers in catalog order
      restrictedDescendants - whether any descendant node has a non-public access condition
  • Method Details

    • getPi

      public String getPi()
    • getLabel

      public String getLabel()
    • getDateIndexed

      public long getDateIndexed()
    • hasRestrictedDescendants

      public boolean hasRestrictedDescendants()
    • getDrawers

      public List<CardCatalogDrawer> getDrawers()
    • getDrawer

      public Optional<CardCatalogDrawer> getDrawer(String drawerId)
    • getTotalEntries

      public int getTotalEntries()
    • isStalenessCheckDue

      public boolean isStalenessCheckDue(long intervalMillis)
      Parameters:
      intervalMillis - minimum interval between staleness checks
      Returns:
      true if the last staleness check is older than the given interval
    • touchStalenessCheck

      public void touchStalenessCheck()