Class CardCatalogResource
java.lang.Object
io.goobi.viewer.api.rest.v1.archives.CardCatalogResource
REST resource for the card catalog view of an archive: positional navigation over the cards of a digitized card catalog (drawers, zoom boundaries,
dense card ranges, computed from-to register). The endpoints are independent of whether the archive is flagged as a card catalog; the flag only
controls which view the archive page renders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoundaries(String drawerId, Integer from, Integer to) getDrawerRegister(String drawerId) getEntries(String drawerId, Integer from, Integer to) getInfo()Structure and navigation configuration of the catalog.lookupEntry(String entryId)
-
Constructor Details
-
CardCatalogResource
-
-
Method Details
-
getInfo
@GET @Produces("application/json") public CardCatalogInfo getInfo() throws PresentationException, IndexUnreachableExceptionStructure and navigation configuration of the catalog. The advertised page size and full-view threshold never exceedCardCatalogManager.MAX_ENTRIES_PER_REQUEST, the hard cap of the entries endpoint; a larger page size would make paging clients skip the silently dropped tail of each page.- Returns:
- card catalog info with drawers and navigation configuration
- Throws:
PresentationExceptionIndexUnreachableException
-
getBoundaries
@GET @Path("/drawers/{drawerId}/boundaries") @Produces("application/json") public CardCatalogSection getBoundaries(@PathParam("drawerId") String drawerId, @QueryParam("from") Integer from, @QueryParam("to") Integer to) throws PresentationException, IndexUnreachableException -
getEntries
@GET @Path("/drawers/{drawerId}/entries") @Produces("application/json") public CardCatalogSection getEntries(@PathParam("drawerId") String drawerId, @QueryParam("from") Integer from, @QueryParam("to") Integer to) throws PresentationException, IndexUnreachableException -
getDrawerRegister
@GET @Path("/drawers/{drawerId}/register") @Produces("application/json") public CardCatalogRegister getDrawerRegister(@PathParam("drawerId") String drawerId) throws PresentationException, IndexUnreachableException -
lookupEntry
@GET @Path("/lookup") @Produces("application/json") public CardCatalogEntryLocation lookupEntry(@QueryParam("entryId") String entryId) throws PresentationException, IndexUnreachableException
-