Class StatisticsBean

java.lang.Object
io.goobi.viewer.managedbeans.StatisticsBean
All Implemented Interfaces:
Serializable

@Named @ApplicationScoped public class StatisticsBean extends Object implements Serializable
Bean for the statistics page.
See Also:
  • Field Details

  • Constructor Details

    • StatisticsBean

      public StatisticsBean()
  • Method Details

    • getImportedRecordsTrend

      public List<String> getImportedRecordsTrend(int days, int dataPoints)
      getImportedRecordsTrend.
      Parameters:
      days - total number of days covered by the trend
      dataPoints - number of data points to plot
      Returns:
      a list of "timestamp;count" strings representing the record import trend over the given period
    • getTopStructTypesByNumber

      public List<String> getTopStructTypesByNumber()
      Returns a list of size two arrays which each contain the name and total number of imported works of a type of work (DocStructType).
      Returns:
      a list of "name;count" strings for each top-level document structure type ordered by number of records
    • getImportedPages

      public Long getImportedPages()
      Returns the total number of imported pages.
      Returns:
      the total number of imported page documents in the Solr index
    • getImportedFullTexts

      public Long getImportedFullTexts()
      Returns the total number of pages with OCR data.
      Returns:
      the total number of page documents with full-text in the Solr index
    • isIndexEmpty

      public boolean isIndexEmpty()
      Checks whether there are no records in the index.
      Returns:
      true if record count is 0; false otherwise.
    • getCoreVersion

      public String getCoreVersion()
      getCoreVersion.
      Returns:
      goobi-viewer-core version
    • getConnectorVersion

      public String getConnectorVersion()
      getConnectorVersion.
      Returns:
      goobi-viewer-connector version
    • getContentServerVersion

      public String getContentServerVersion()
      getContentServerVersion.
      Returns:
      intrandaContentServer version
    • getIndexerVersion

      public String getIndexerVersion()
      getIndexerVersion.
      Returns:
      goobi-viewer-indexer version
    • getUsageStatisticsForRecord

      public StatisticsSummary getUsageStatisticsForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException
      getUsageStatisticsForRecord.
      Parameters:
      pi - persistent identifier of the record
      Returns:
      StatisticsSummary
      Throws:
      PresentationException
      IndexUnreachableException
      DAOException
    • loadSummary

      Throws:
      IndexUnreachableException
      PresentationException
      DAOException
    • getLastUsageStatisticsCheck

      public LocalDate getLastUsageStatisticsCheck() throws IndexUnreachableException
      getLastUsageStatisticsCheck.
      Returns:
      the date of the most recent usage statistics entry in the Solr index
      Throws:
      IndexUnreachableException - if any.
    • isUsageStatisticsActive

      public boolean isUsageStatisticsActive()
      isUsageStatisticsActive.
      Returns:
      true if usage statistics collection is currently active, false otherwise