Class DailySessionUsageStatistics

java.lang.Object
io.goobi.viewer.model.statistics.usage.DailySessionUsageStatistics

@Entity public class DailySessionUsageStatistics extends Object
Persistence class holding the usage statistics for a single day in the form of a list of SessionUsageStatistics
Author:
florian
  • Constructor Details

    • DailySessionUsageStatistics

      public DailySessionUsageStatistics(LocalDate date, String viewer)
      Parameters:
      date -
      viewer -
    • DailySessionUsageStatistics

      public DailySessionUsageStatistics()
    • DailySessionUsageStatistics

      public DailySessionUsageStatistics(DailySessionUsageStatistics orig)
      Parameters:
      orig -
  • Method Details

    • getSession

      public SessionUsageStatistics getSession(String sessionId)
      Parameters:
      sessionId -
      Returns:
      SessionUsageStatistics
    • addSession

      public void addSession(SessionUsageStatistics session)
      Parameters:
      session -
    • getId

      public Long getId()
      Returns:
      the id
    • getDate

      public LocalDate getDate()
      Returns:
      the date
    • getViewerInstance

      public String getViewerInstance()
      Returns:
      the viewerInstance
    • getTotalRequestCount

      public long getTotalRequestCount(RequestType type, String pi)
      Parameters:
      type -
      pi -
      Returns:
      a long
    • getTotalRequestCount

      public long getTotalRequestCount(RequestType type)
      Parameters:
      type -
      Returns:
      a long
    • getTotalRequestCount

      public long getTotalRequestCount(RequestType type, List<String> identifiersToInclude)
      Parameters:
      type -
      identifiersToInclude -
      Returns:
      a long
    • getUniqueRequestCount

      public long getUniqueRequestCount(RequestType type)
      Parameters:
      type -
      Returns:
      a long
    • getUniqueRequestCount

      public long getUniqueRequestCount(RequestType type, String pi)
      Parameters:
      type -
      pi -
      Returns:
      a long
    • getUniqueRequestCount

      public long getUniqueRequestCount(RequestType type, List<String> includedIdentifiers)
      Parameters:
      type -
      includedIdentifiers -
      Returns:
      a long
    • getRecordIdentifier

      public List<String> getRecordIdentifier()
      Returns:
      List
    • toString

      public String toString()
      Overrides:
      toString in class Object