pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.view
Class RefererAnalysisViewReportController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.statistics.view.AbstractStatisticsController<T,V>
          extended by org.torweg.pulse.component.statistics.view.AbstractStatisticsViewController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResultData,RefererAnalysisViewControllerResult>
              extended by org.torweg.pulse.component.statistics.view.RefererAnalysisViewController
                  extended by org.torweg.pulse.component.statistics.view.RefererAnalysisViewReportController
All Implemented Interfaces:
IStatisticsPDFReportController<RefererAnalysisViewControllerResult>, Configurable<AbstractStatisticsViewControllerConfiguration>

public class RefererAnalysisViewReportController
extends RefererAnalysisViewController
implements IStatisticsPDFReportController<RefererAnalysisViewControllerResult>

Provides reporting functionality for the statistics overview.

Version:
$Revision: 1568 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.component.statistics.view.RefererAnalysisViewController
RefererAnalysisViewController.Error
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Field Summary
 
Fields inherited from class org.torweg.pulse.component.statistics.view.AbstractStatisticsViewController
DEFAULT_CHART_HEIGHT, DEFAULT_CHART_WIDTH, NO_SERVERID
 
Fields inherited from class org.torweg.pulse.component.statistics.view.AbstractStatisticsController
LOGGER
 
Constructor Summary
RefererAnalysisViewReportController()
           
 
Method Summary
 java.util.Map<java.lang.String,java.io.File> buildPDFFileMap(AbstractStatisticsViewControllerResult<?> result)
          Returns null always.
 RefererAnalysisViewControllerResult buildPDFReportResult(Duration duration, Period resolution, StatisticsServer server, org.hibernate.Session s)
          Returns an RefererAnalysisViewControllerResult as required for the creation the PDF for the given Duration, the given Period and the given StatisticsServer .
 RefererAnalysisViewControllerResult generatePDFReport(ServiceRequest request)
          Generates a PDF-report for the RefererAnalysisViewControllerResult.
 
Methods inherited from class org.torweg.pulse.component.statistics.view.RefererAnalysisViewController
buildViewResultData, initView, loadTree, newResult
 
Methods inherited from class org.torweg.pulse.component.statistics.view.AbstractStatisticsViewController
chartHeightFromCommand, chartWidthFromCommand, determineJFreeChartTimePeriod, durationFromCommand, fetchResultDataFromSession, fileNameForReport, initView, integerFromCommand, loadAggregations, loadStatisticsServer, outputReportPDF, putResultDataInSession, removeResultDataFromSession, resolutionFromCommand, serverIdFromCommand, userIsNotAllowedEvent
 
Methods inherited from class org.torweg.pulse.component.statistics.view.AbstractStatisticsController
getConfiguration, hasRoleForServer, initialize
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.configuration.Configurable
initialize
 

Constructor Detail

RefererAnalysisViewReportController

public RefererAnalysisViewReportController()
Method Detail

generatePDFReport

@RequireToken
@Action(value="generatePDFReportRefererAnalysisView", generate=true)
@Permission(value="generatePDFReportRefererAnalysisView")
@Groups(values="Admin.Report.Site.Statistics")
public final RefererAnalysisViewControllerResult generatePDFReport(ServiceRequest request)
Generates a PDF-report for the RefererAnalysisViewControllerResult. If available the result-data from the current ServiceSession will be used, otherwise the result-data will be (freshly) generated.

Specified by:
generatePDFReport in interface IStatisticsPDFReportController<RefererAnalysisViewControllerResult>
Parameters:
request - the current ServiceRequest
Returns:
an RefererAnalysisViewControllerResult
See Also:
#generatePDFReport(org.torweg.pulse.service.request.ServiceRequest)

buildPDFFileMap

public final java.util.Map<java.lang.String,java.io.File> buildPDFFileMap(AbstractStatisticsViewControllerResult<?> result)
Returns null always.

Specified by:
buildPDFFileMap in interface IStatisticsPDFReportController<RefererAnalysisViewControllerResult>
Parameters:
result - unused
Returns:
null
See Also:
#buildPDFFileMap(org.torweg.pulse.component.statistics.view. AbstractStatisticsViewControllerResult)

buildPDFReportResult

public final RefererAnalysisViewControllerResult buildPDFReportResult(Duration duration, Period resolution, StatisticsServer server,
                                                                      org.hibernate.Session s)
Returns an RefererAnalysisViewControllerResult as required for the creation the PDF for the given Duration, the given Period and the given StatisticsServer .

NOTE: for request independent creation of the result required for the creation of the PDF.

Specified by:
buildPDFReportResult in interface IStatisticsPDFReportController<RefererAnalysisViewControllerResult>
Parameters:
duration - the Duration
resolution - the Period (null permitted)
server - the StatisticsServer
s - the current HibernateTM-Session
Returns:
an RefererAnalysisViewControllerResult as required for the creation the PDF
See Also:
IStatisticsPDFReportController.buildPDFReportResult(org.torweg.pulse.util.time.Duration, org.torweg.pulse.util.time.Period, org.torweg.pulse.component.statistics.model.StatisticsServer, org.hibernate.Session)