Class MovingWallStatisticsResource

java.lang.Object
io.goobi.viewer.api.rest.v1.statistics.MovingWallStatisticsResource

@Path("statistics/movingwall") public class MovingWallStatisticsResource extends Object
REST resource providing statistics about moving wall access restrictions and record availability by publication year.
  • Constructor Details

    • MovingWallStatisticsResource

      public MovingWallStatisticsResource()
  • Method Details

    • getStatisticsForYear

      @GET @Path("/{year}") @Produces({"application/json","text/plain","text/csv"}) public Response getStatisticsForYear(@PathParam("year") int year) throws PresentationException, IndexUnreachableException
      Returns the identifiers of records unlocked by the moving wall in the given year, as CSV.

      A record is included when it is a work (ISWORK:true) whose DATE_PUBLICRELEASEDATE Solr field falls within the given calendar year; each line contains the release date and the record's persistent identifier, sorted by release date.

      Parameters:
      year - the year for which to retrieve moving wall statistics
      Returns:
      CSV listing of unlocked record identifiers with their release dates
      Throws:
      PresentationException
      IndexUnreachableException