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 - a int.
      dataPoints - a int.
      Returns:
      a List object.
    • 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 object.
    • getImportedPages

      public Long getImportedPages()
      Returns the total number of imported pages.
      Returns:
      a Long object.
    • getImportedFullTexts

      public Long getImportedFullTexts()
      Returns the total number of pages with OCR data.
      Returns:
      a Long object.
    • 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 - a String object
      Returns:
      StatisticsSummary
      Throws:
      PresentationException
      IndexUnreachableException
      DAOException
    • loadSummary

      Throws:
      IndexUnreachableException
      PresentationException
      DAOException
    • getLastUsageStatisticsCheck

      public LocalDate getLastUsageStatisticsCheck() throws IndexUnreachableException

      getLastUsageStatisticsCheck.

      Returns:
      a LocalDate object
      Throws:
      IndexUnreachableException - if any.
    • isUsageStatisticsActive

      public boolean isUsageStatisticsActive()

      isUsageStatisticsActive.

      Returns:
      a boolean
    • isShowRecordStatisticsWidget

      public boolean isShowRecordStatisticsWidget()
    • isRecordStatisticWidgetCollapsible

      public boolean isRecordStatisticWidgetCollapsible()