org.sakaiproject.sitestats.impl
Class ServerWideReportManagerImpl
java.lang.Object
org.sakaiproject.sitestats.impl.ServerWideReportManagerImpl
- All Implemented Interfaces:
- ServerWideReportManager
public class ServerWideReportManagerImpl
- extends Object
- implements ServerWideReportManager
Server Wide Report Manager handles running the database queries for each of the server wide reports.
This currently provides limited support for the SST_ tables to be in a different database to the main Sakai database
so long as the credentials and URL are the same (except for the db name). It will do a cross database join onto that db.
Configure via sakai.properties:
sitestats.externalDb.name=DB_NAME
In addition to the normal settings for setting up external databases for the SST_ tables
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerWideReportManagerImpl
public ServerWideReportManagerImpl()
init
public void init()
destroy
public void destroy()
getMonthlyTotalLogins
public List<ServerWideStatsRecord> getMonthlyTotalLogins()
- Specified by:
getMonthlyTotalLogins in interface ServerWideReportManager
getMonthlyUniqueLogins
public List<ServerWideStatsRecord> getMonthlyUniqueLogins()
- Specified by:
getMonthlyUniqueLogins in interface ServerWideReportManager
getWeeklyTotalLogins
public List<ServerWideStatsRecord> getWeeklyTotalLogins()
- Specified by:
getWeeklyTotalLogins in interface ServerWideReportManager
getWeeklyUniqueLogins
public List<ServerWideStatsRecord> getWeeklyUniqueLogins()
- Specified by:
getWeeklyUniqueLogins in interface ServerWideReportManager
getDailyTotalLogins
public List<ServerWideStatsRecord> getDailyTotalLogins()
- Specified by:
getDailyTotalLogins in interface ServerWideReportManager
getDailyUniqueLogins
public List<ServerWideStatsRecord> getDailyUniqueLogins()
- Specified by:
getDailyUniqueLogins in interface ServerWideReportManager
getSiteCreatedDeletedStats
public List<ServerWideStatsRecord> getSiteCreatedDeletedStats(String period)
- Specified by:
getSiteCreatedDeletedStats in interface ServerWideReportManager
getNewUserStats
public List<ServerWideStatsRecord> getNewUserStats(String period)
- Specified by:
getNewUserStats in interface ServerWideReportManager
getTop20Activities
public List<ServerWideStatsRecord> getTop20Activities()
- Specified by:
getTop20Activities in interface ServerWideReportManager
getWeeklyRegularUsers
public List<ServerWideStatsRecord> getWeeklyRegularUsers()
- Specified by:
getWeeklyRegularUsers in interface ServerWideReportManager
getHourlyUsagePattern
public List<ServerWideStatsRecord> getHourlyUsagePattern()
- Specified by:
getHourlyUsagePattern in interface ServerWideReportManager
getToolCount
public List<ServerWideStatsRecord> getToolCount()
- Specified by:
getToolCount in interface ServerWideReportManager
generateReportChart
public byte[] generateReportChart(String reportType,
int width,
int height)
- Specified by:
generateReportChart in interface ServerWideReportManager
parseColor
public static Color parseColor(String color)
Copyright © 2006-2012 Universidade Fernando Pessoa. All Rights Reserved.