Class LogAnalyzer

java.lang.Object
de.uplanet.lucy.server.auxiliaries.LogAnalyzer

@VelocityCallable("singleton") public final class LogAnalyzer extends Object
  • Constructor Details

    • LogAnalyzer

      public LogAnalyzer()
      Default constructor.
  • Method Details

    • getReport

      public GlobalReport getReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo) throws Exception
      Get a global statistics log report.
      Parameters:
      p_conn - The database connection to be used.
      p_strLangId - The language identifier.
      p_strDateFrom - The report's start date.
      p_strDateTo - The report's end date.
      Returns:
      The global report.
      Throws:
      Exception - - If an error occurred.
    • getApplicationReport

      public ApplicationReport getApplicationReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strAppGuid, String p_strDateFrom, String p_strDateTo) throws Exception
      Throws:
      Exception
    • createFilter

      public ILogFilter createFilter(String p_strFilterClass) throws Exception
      Create a statistics report filter.
      Parameters:
      p_strFilterClass - The name of the filter class.
      Returns:
      The requested filter, or null if an error occurred.
      Throws:
      Exception - - If the filter could not be created
    • createSortOrder

      public IOrder<?> createSortOrder(String p_strOrderClass) throws Exception
      Create a statistics report sort order.
      Parameters:
      p_strOrderClass - The name of the sort order class.
      Returns:
      The requested sort order, or null if an error occurred.
      Throws:
      Exception - - If the sort order not be created
    • getUserReport

      public UserReport getUserReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo, long p_lSessionTimeout, long p_lInactivity, Collection<String> p_userGuids) throws Exception
      Get a user report.
      Parameters:
      p_conn - The database connection to be used.
      p_strLangId - A language identifier.
      p_strDateFrom - The start date.
      p_strDateTo - The end date.
      p_lSessionTimeout - The session timeout.
      p_lInactivity - The user inactivity timeout.
      p_userGuids - An optional collection of user GUIDs to filter for.
      Returns:
      The user report.
      Throws:
      Exception - If an error occurred.
    • createAppVisitComparator

      public Comparator<AppVisit> createAppVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
      Creates a comparator for AppVisits.
      Parameters:
      p_iComparatorID -
      ID of the comparator:
      • 1       - AppNameComparator
      • else - NoneAppVisitComparator
      p_report - The currently used UserReport.
      Returns:
      The requested comparator.
    • createPageVisitComparator

      public Comparator<PageVisit> createPageVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
      Creates a comparator for PageVisits.
      Parameters:
      p_iComparatorID -
      ID of the comparator:
      • 1       - PageNameComparator
      • else - NonePageVisitComparator
      p_report - The currently used UserReport.
      p_strLangID - The ID of the current language.
      Returns:
      The requested comparator.