org.torweg.pulse.component.statistics.view
Class TimeAnalysisViewReportController
java.lang.Object
org.torweg.pulse.bundle.Controller
org.torweg.pulse.component.statistics.view.AbstractStatisticsController<T,V>
org.torweg.pulse.component.statistics.view.AbstractStatisticsViewController<TimeAnalysisViewControllerConfiguration,TimeAnalysisViewControllerResultData,TimeAnalysisViewControllerResult>
org.torweg.pulse.component.statistics.view.TimeAnalysisViewController
org.torweg.pulse.component.statistics.view.TimeAnalysisViewGFXController
org.torweg.pulse.component.statistics.view.TimeAnalysisViewReportController
- All Implemented Interfaces:
- IStatisticsPDFReportController<TimeAnalysisViewControllerResult>, Configurable<AbstractStatisticsViewControllerConfiguration>
public class TimeAnalysisViewReportController
- extends TimeAnalysisViewGFXController
- implements IStatisticsPDFReportController<TimeAnalysisViewControllerResult>
Provides reporting functionality for the statistics time analysis view.
- Version:
- $Revision: 1568 $
- Author:
- Daniel Dietz
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeAnalysisViewReportController
public TimeAnalysisViewReportController()
generatePDFReport
@RequireToken
@Action(value="generatePDFReportTimeAnalysisView", generate=true)
@Permission(value="generatePDFReportTimeAnalysisView")
@Groups(values="Admin.Report.Site.Statistics")
public final TimeAnalysisViewControllerResult generatePDFReport(ServiceRequest request)
- Generates a PDF-report for the
TimeAnalysisViewControllerResult. 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<TimeAnalysisViewControllerResult>
- Parameters:
request - the current ServiceRequest
- Returns:
- an
TimeAnalysisViewControllerResult - See Also:
#generatePDFReport(org.torweg.pulse.service.request.ServiceRequest)
buildPDFFileMap
public final java.util.Map<java.lang.String,java.io.File> buildPDFFileMap(AbstractStatisticsViewControllerResult<?> result)
- Performs the creation of the PDF-file and adds the required
PDFOutputEvent to the EventManager.
- Specified by:
buildPDFFileMap in interface IStatisticsPDFReportController<TimeAnalysisViewControllerResult>
- Parameters:
result - the current TimeAnalysisViewControllerResult
- Returns:
- the (modified)
TimeAnalysisViewControllerResult for
the creation of the PDF
buildPDFReportResult
public final TimeAnalysisViewControllerResult buildPDFReportResult(Duration duration, Period resolution, StatisticsServer server,
org.hibernate.Session s)
- Returns an
TimeAnalysisViewControllerResult 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<TimeAnalysisViewControllerResult>
- Parameters:
duration - the Durationresolution - the Period (null permitted)server - the StatisticsServers - the current HibernateTM-Session
- Returns:
- an
TimeAnalysisViewControllerResult 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)