Class LogAnalyzer


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

      • LogAnalyzer

        public LogAnalyzer()
        Default constructor.
    • Method Detail

      • 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.
      • 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
      • 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.