org.sakaiproject.sitestats.impl.report
Class ReportManagerImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.sakaiproject.sitestats.impl.report.ReportManagerImpl
All Implemented Interfaces:
Observer, ReportManager, org.springframework.beans.factory.InitializingBean

public class ReportManagerImpl
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ReportManager, Observer

Author:
Nuno Fernandes

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Fields inherited from interface org.sakaiproject.sitestats.api.report.ReportManager
HOW_PRESENTATION_BOTH, HOW_PRESENTATION_CHART, HOW_PRESENTATION_TABLE, HOW_SORT_DEFAULT, HOW_TOTALSBY, WHAT_ACTIVITY_TOTALS, WHAT_EVENTS, WHAT_EVENTS_ALLEVENTS, WHAT_EVENTS_ALLTOOLS, WHAT_EVENTS_BYEVENTS, WHAT_EVENTS_BYTOOL, WHAT_PRESENCES, WHAT_RESOURCES, WHAT_RESOURCES_ACTION_DEL, WHAT_RESOURCES_ACTION_NEW, WHAT_RESOURCES_ACTION_READ, WHAT_RESOURCES_ACTION_REVS, WHAT_VISITS, WHAT_VISITS_TOTALS, WHEN_ALL, WHEN_CUSTOM, WHEN_LAST30DAYS, WHEN_LAST365DAYS, WHEN_LAST7DAYS, WHO_ALL, WHO_CUSTOM, WHO_GROUPS, WHO_NONE, WHO_ROLE
 
Constructor Summary
ReportManagerImpl()
           
 
Method Summary
 void destroy()
           
 Report getReport(ReportDef reportDef, boolean restrictToToolsInSite)
           
 Report getReport(ReportDef reportDef, boolean restrictToToolsInSite, org.sakaiproject.javax.PagingPosition pagingPosition, boolean log)
           
 String getReportAsCsv(Report report)
           
 byte[] getReportAsExcel(Report report, String sheetName)
           
 byte[] getReportAsPDF(Report report)
           
 ReportDef getReportDefinition(long id)
           
 List<ReportDef> getReportDefinitions(String siteId, boolean includedPredefined, boolean includeHidden)
           
 ReportFormattedParams getReportFormattedParams()
           
 int getReportRowCount(ReportDef reportDef, boolean restrictToToolsInSite)
           
 String getSiteGroupTitle(String groupId)
           
 void init()
           
 boolean isReportColumnAvailable(ReportParams params, String column)
           
 boolean removeReportDefinition(ReportDef reportDef)
           
 boolean saveReportDefinition(ReportDef reportDef)
           
 void setContentService(org.sakaiproject.content.api.ContentHostingService contentService)
           
 void setEventRegistryService(EventRegistryService eventRegistryService)
           
 void setEventTrackingService(org.sakaiproject.event.api.EventTrackingService eventTrackingService)
           
 void setMemoryService(org.sakaiproject.memory.api.MemoryService memoryService)
           
 void setResourceLoader(org.sakaiproject.util.ResourceLoader msgs)
          This one is needed for unit testing
 void setSiteService(org.sakaiproject.site.api.SiteService siteService)
           
 void setStatsAuthz(StatsAuthz statsAuthz)
           
 void setStatsManager(StatsManager statsManager)
           
 void setTimeService(org.sakaiproject.time.api.TimeService timeService)
           
 void setToolManager(org.sakaiproject.tool.api.ToolManager toolManager)
           
 void setUserService(org.sakaiproject.user.api.UserDirectoryService userService)
           
 void update(Observable obs, Object o)
          EventTrackingService observer for cache invalidation.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportManagerImpl

public ReportManagerImpl()
Method Detail

setStatsManager

public void setStatsManager(StatsManager statsManager)

setStatsAuthz

public void setStatsAuthz(StatsAuthz statsAuthz)

setEventRegistryService

public void setEventRegistryService(EventRegistryService eventRegistryService)

setSiteService

public void setSiteService(org.sakaiproject.site.api.SiteService siteService)

setUserService

public void setUserService(org.sakaiproject.user.api.UserDirectoryService userService)

setContentService

public void setContentService(org.sakaiproject.content.api.ContentHostingService contentService)

setToolManager

public void setToolManager(org.sakaiproject.tool.api.ToolManager toolManager)

setTimeService

public void setTimeService(org.sakaiproject.time.api.TimeService timeService)

setEventTrackingService

public void setEventTrackingService(org.sakaiproject.event.api.EventTrackingService eventTrackingService)

setMemoryService

public void setMemoryService(org.sakaiproject.memory.api.MemoryService memoryService)

setResourceLoader

public void setResourceLoader(org.sakaiproject.util.ResourceLoader msgs)
This one is needed for unit testing


init

public void init()

destroy

public void destroy()

update

public void update(Observable obs,
                   Object o)
EventTrackingService observer for cache invalidation.

Specified by:
update in interface Observer

getReport

public Report getReport(ReportDef reportDef,
                        boolean restrictToToolsInSite)
Specified by:
getReport in interface ReportManager

getReportRowCount

public int getReportRowCount(ReportDef reportDef,
                             boolean restrictToToolsInSite)
Specified by:
getReportRowCount in interface ReportManager

getReport

public Report getReport(ReportDef reportDef,
                        boolean restrictToToolsInSite,
                        org.sakaiproject.javax.PagingPosition pagingPosition,
                        boolean log)
Specified by:
getReport in interface ReportManager

getReportFormattedParams

public ReportFormattedParams getReportFormattedParams()
Specified by:
getReportFormattedParams in interface ReportManager

isReportColumnAvailable

public boolean isReportColumnAvailable(ReportParams params,
                                       String column)
Specified by:
isReportColumnAvailable in interface ReportManager

getReportDefinition

public ReportDef getReportDefinition(long id)
Specified by:
getReportDefinition in interface ReportManager

saveReportDefinition

public boolean saveReportDefinition(ReportDef reportDef)
Specified by:
saveReportDefinition in interface ReportManager

removeReportDefinition

public boolean removeReportDefinition(ReportDef reportDef)
Specified by:
removeReportDefinition in interface ReportManager

getReportDefinitions

public List<ReportDef> getReportDefinitions(String siteId,
                                            boolean includedPredefined,
                                            boolean includeHidden)
Specified by:
getReportDefinitions in interface ReportManager

getReportAsExcel

public byte[] getReportAsExcel(Report report,
                               String sheetName)
Specified by:
getReportAsExcel in interface ReportManager

getReportAsCsv

public String getReportAsCsv(Report report)
Specified by:
getReportAsCsv in interface ReportManager

getReportAsPDF

public byte[] getReportAsPDF(Report report)
Specified by:
getReportAsPDF in interface ReportManager

getSiteGroupTitle

public String getSiteGroupTitle(String groupId)


Copyright © 2006-2012 Universidade Fernando Pessoa. All Rights Reserved.