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.user
Class UserStatisticsPDFController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.statistics.user.UserStatisticsController
          extended by org.torweg.pulse.component.statistics.user.UserStatisticsGFXController
              extended by org.torweg.pulse.component.statistics.user.UserStatisticsPDFController
All Implemented Interfaces:
Configurable<UserStatisticsControllerConfiguration>

public class UserStatisticsPDFController
extends UserStatisticsGFXController

Extends the UserStatisticsGFXController by reporting functionality (creates a PDF).

Version:
$Revision: 1584 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Field Summary
 
Fields inherited from class org.torweg.pulse.component.statistics.user.UserStatisticsController
LOGGER
 
Constructor Summary
UserStatisticsPDFController()
           
 
Method Summary
 java.lang.Object createUserStatisticsPDF(ServiceRequest request)
          Returns a PNG - the year chart for the users.
 
Methods inherited from class org.torweg.pulse.component.statistics.user.UserStatisticsGFXController
buildMonthChart, buildYearChart, loadMonthChart, loadYearChart
 
Methods inherited from class org.torweg.pulse.component.statistics.user.UserStatisticsController
buildInitialisationResult, getConfiguration, initialize, initUserStatistics, loadMonthTotals, loadTotal, loadYearTotals
 
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
 

Constructor Detail

UserStatisticsPDFController

public UserStatisticsPDFController()
Method Detail

createUserStatisticsPDF

@RequireToken
@Action(value="createUserStatisticsPDF", generate=true)
@Permission(value="createUserStatisticsPDF")
@Groups(values="Admin.Report.User.Statistics")
public final java.lang.Object createUserStatisticsPDF(ServiceRequest request)
Returns a PNG - the year chart for the users.

The PNG will be rendered with a default height 600px and width of 800px unless request parameters height and/or width are specified.

request parameter name description required default
year the year to start from (e.g. 2000 will produce chart for all Users created created from 2000 until now) false as configured
months number of months to go back from current false as configured

Parameters:
request - the current ServiceRequest
Returns:
a PDFOutputEvent