|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.bundle.Controller
org.torweg.pulse.component.statistics.user.UserStatisticsController
public class UserStatisticsController
Displays statistical information about Users.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller |
|---|
Controller.AlwaysRun |
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
The logger. |
| Constructor Summary | |
|---|---|
UserStatisticsController()
|
|
| Method Summary | |
|---|---|
protected UserStatisticsControllerResult |
buildInitialisationResult(java.lang.Integer year,
java.lang.Integer months)
Returns an UserStatisticsControllerResult for initialising the
user-statistics within the pulse website-administration. |
protected UserStatisticsControllerConfiguration |
getConfiguration()
Returns the UserStatisticsControllerConfiguration. |
void |
initialize(UserStatisticsControllerConfiguration conf)
Initialises the Controller with the given Configuration. |
UserStatisticsControllerResult |
initUserStatistics(ServiceRequest request)
Returns a JAXB-able result-object to initialise the pulse User-
statistics-administration within the website-administration. |
protected java.util.Map<java.lang.String,java.lang.Long> |
loadMonthTotals(org.hibernate.Session s,
java.lang.Integer months)
Loads the monthly totals. |
protected java.lang.Long |
loadTotal(org.hibernate.Session s)
Loads the total. |
protected java.util.Map<java.lang.Integer,java.lang.Long> |
loadYearTotals(org.hibernate.Session s,
java.lang.Integer year)
Loads the year totals. |
| 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 |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public UserStatisticsController()
| Method Detail |
|---|
@RequireToken @Action(value="initUserStatistics", generate=true) @Permission(value="initUserStatistics") @Groups(values="Admin.User.Statistics") public final UserStatisticsControllerResult initUserStatistics(ServiceRequest request)
User-
statistics-administration within the website-administration.
| request parameter name | description | required | default |
|---|---|---|---|
year |
the year to start from (e.g. 2000 will produce chart for all Users created from 2000 until now) |
false | as configured |
months |
number of months to go back from current | false | as configured |
request - the current ServiceRequest
protected final UserStatisticsControllerResult buildInitialisationResult(java.lang.Integer year,
java.lang.Integer months)
UserStatisticsControllerResult for initialising the
user-statistics within the pulse website-administration.
year - the (start-)yearmonths - the months to go back
UserStatisticsControllerResultprotected final java.lang.Long loadTotal(org.hibernate.Session s)
s - the current hibernateTM-Session.
protected final java.util.Map<java.lang.Integer,java.lang.Long> loadYearTotals(org.hibernate.Session s,
java.lang.Integer year)
s - the current hibernateTM-Session.year - the year to start with when loading the data
protected final java.util.Map<java.lang.String,java.lang.Long> loadMonthTotals(org.hibernate.Session s,
java.lang.Integer months)
s - the current hibernateTM-Session.months - the number of months to go back from current
public final void initialize(UserStatisticsControllerConfiguration conf)
Controller with the given Configuration.
initialize in interface Configurable<UserStatisticsControllerConfiguration>conf - the Configurationprotected final UserStatisticsControllerConfiguration getConfiguration()
UserStatisticsControllerConfiguration.
UserStatisticsControllerConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||