Package io.goobi.viewer.model.archives
Class CardCatalogIndex
java.lang.Object
io.goobi.viewer.model.archives.CardCatalogIndex
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 Summary
ConstructorsConstructorDescriptionCardCatalogIndex(String pi, String label, long dateIndexed, List<CardCatalogDrawer> drawers, boolean restrictedDescendants) -
Method Summary
Modifier and TypeMethodDescriptionlonggetLabel()getPi()intbooleanbooleanisStalenessCheckDue(long intervalMillis) void
-
Constructor Details
-
CardCatalogIndex
public CardCatalogIndex(String pi, String label, long dateIndexed, List<CardCatalogDrawer> drawers, boolean restrictedDescendants) - Parameters:
pi- PI of the archive resourcelabel- display label of the archivedateIndexed- latest DATEINDEXED value of the archive's root documentdrawers- drawers in catalog orderrestrictedDescendants- whether any descendant node has a non-public access condition
-
-
Method Details
-
getPi
-
getLabel
-
getDateIndexed
public long getDateIndexed() -
hasRestrictedDescendants
public boolean hasRestrictedDescendants() -
getDrawers
-
getDrawer
-
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()
-