org.torweg.pulse.component.statistics.view
Class RefererAnalysisViewController
java.lang.Object
org.torweg.pulse.bundle.Controller
org.torweg.pulse.component.statistics.view.AbstractStatisticsController<T,V>
org.torweg.pulse.component.statistics.view.AbstractStatisticsViewController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResultData,RefererAnalysisViewControllerResult>
org.torweg.pulse.component.statistics.view.RefererAnalysisViewController
- All Implemented Interfaces:
- Configurable<AbstractStatisticsViewControllerConfiguration>
- Direct Known Subclasses:
- RefererAnalysisViewReportController
public class RefererAnalysisViewController
- extends AbstractStatisticsViewController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResultData,RefererAnalysisViewControllerResult>
Manages the "referer analysis tree" view of the pulse website administration
UI of the statistics component.
- Version:
- $Revision: 2013 $
- 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 |
RefererAnalysisViewController
public RefererAnalysisViewController()
initView
@RequireToken
@Action(value="initStatisticsRefererAnalysisView", generate=true)
@Permission(value="initStatisticsRefererAnalysisView")
@Groups(values="Admin.Site.Statistics")
public final RefererAnalysisViewControllerResult initView(ServiceRequest request)
- Initialises the referer analysis view of the statistics.
| request parameter name |
description |
required |
default |
serverId |
the id of the StatisticsServer |
true |
null |
duration |
A String formatted as follows "from-to" with
"from" and "to" being time-stamps. |
false |
as configured |
- Specified by:
initView in class AbstractStatisticsController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResult>
- Parameters:
request - the current ServiceRequest
- Returns:
RefererAnalysisViewControllerResult- See Also:
#initView(org.torweg.pulse.service.request.ServiceRequest)
newResult
protected final RefererAnalysisViewControllerResult newResult(RefererAnalysisViewControllerConfiguration configuration, RefererAnalysisViewControllerResultData data)
- Factory method.
Simply returns a new RefererAnalysisViewControllerResult with the
given RefererAnalysisViewControllerConfiguration and the given
RefererAnalysisViewControllerResultData.
- Specified by:
newResult in class AbstractStatisticsViewController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResultData,RefererAnalysisViewControllerResult>
- Parameters:
configuration - RefererAnalysisViewControllerConfigurationdata - RefererAnalysisViewControllerResultData
- Returns:
- a new
RefererAnalysisViewControllerResult - See Also:
#newResult(org.torweg.pulse.component.statistics.view.
AbstractStatisticsViewControllerConfiguration,
org.torweg.pulse.component.
statistics.view.AbstractStatisticsViewControllerResultData)
buildViewResultData
protected final RefererAnalysisViewControllerResultData buildViewResultData(Duration duration, Period dataResolution, StatisticsServer statisticsServer,
org.hibernate.Session s)
- Used for initialisation of the ui only.
- Specified by:
buildViewResultData in class AbstractStatisticsViewController<RefererAnalysisViewControllerConfiguration,RefererAnalysisViewControllerResultData,RefererAnalysisViewControllerResult>
- Parameters:
duration - the DurationdataResolution - the Period to be used as "data resolution"statisticsServer - the StatisticsServers - the current HibernateTM.session
- Returns:
- the
RefererAnalysisViewControllerResultData
loadTree
@RequireToken
@Action(value="loadTreeStatisticsRefererAnalysisView", generate=true)
@Permission(value="loadTreeStatisticsRefererAnalysisView")
@Groups(values="Admin.Site.Statistics")
public final RefererAnalysisViewControllerResult loadTree(ServiceRequest request)
- Loads the (data-)nodes for the group analysis tree.
- Parameters:
request - the current ServiceRequest
- Returns:
- a
JSONOutputEvent with the nodes for the tree