de.uplanet.lucy.server.auxiliaries
Class LogAnalyzer

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

@VelocityCallable(value="singleton")
public class LogAnalyzer
extends java.lang.Object

Version:
$Revision: 64100 $

Constructor Summary
LogAnalyzer()
          Default constructor.
 
Method Summary
 java.util.Comparator<AppVisit> createAppVisitComparator(int p_iComparatorID, UserReport p_report, java.lang.String p_strLangID)
          Creates a comparator for AppVisits.
 ILogFilter createFilter(java.lang.String p_strFilterClass)
          Create a statistics report filter.
 java.util.Comparator<PageVisit> createPageVisitComparator(int p_iComparatorID, UserReport p_report, java.lang.String p_strLangID)
          Creates a comparator for PageVisits.
 IOrder<?> createSortOrder(java.lang.String p_strOrderClass)
          Create a statistics report sort order.
 ApplicationReport getApplicationReport(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLangId, java.lang.String p_strAppGuid, java.lang.String p_strDateFrom, java.lang.String p_strDateTo)
           
 GlobalReport getReport(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLangId, java.lang.String p_strDateFrom, java.lang.String p_strDateTo)
          Get a global statistics log report.
 UserReport getUserReport(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLangId, java.lang.String p_strDateFrom, java.lang.String p_strDateTo, long p_lTimeOut, long p_lInactivity, java.util.Collection<java.lang.String> p_userGuids)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogAnalyzer

public LogAnalyzer()
Default constructor.

Method Detail

getReport

public GlobalReport getReport(de.uplanet.jdbc.JdbcConnection p_conn,
                              java.lang.String p_strLangId,
                              java.lang.String p_strDateFrom,
                              java.lang.String p_strDateTo)
                       throws java.lang.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:
java.lang.Exception - - If an error occured.

getApplicationReport

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

createFilter

public ILogFilter createFilter(java.lang.String p_strFilterClass)
                        throws java.lang.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:
java.lang.Exception - - If the filter could not be created

createSortOrder

public IOrder<?> createSortOrder(java.lang.String p_strOrderClass)
                          throws java.lang.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:
java.lang.Exception - - If the sort order not be created

getUserReport

public UserReport getUserReport(de.uplanet.jdbc.JdbcConnection p_conn,
                                java.lang.String p_strLangId,
                                java.lang.String p_strDateFrom,
                                java.lang.String p_strDateTo,
                                long p_lTimeOut,
                                long p_lInactivity,
                                java.util.Collection<java.lang.String> p_userGuids)
                         throws java.lang.Exception
Throws:
java.lang.Exception

createAppVisitComparator

public java.util.Comparator<AppVisit> createAppVisitComparator(int p_iComparatorID,
                                                               UserReport p_report,
                                                               java.lang.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 java.util.Comparator<PageVisit> createPageVisitComparator(int p_iComparatorID,
                                                                 UserReport p_report,
                                                                 java.lang.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.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.