StatisticsService¶
-
public abstract class
StatisticsService
¶
Fields¶
dmyFormatter¶
-
protected static DateTimeFormatter
dmyFormatter
¶
Methods¶
getFilter¶
-
protected Filter
getFilter
(HttpServletRequest request)¶
getUser¶
-
protected DafoUserDetails
getUser
(HttpServletRequest request)¶ If the request is a get-request we look for the Header “Authorization” to fund the user-rights If the request is a Post-request we look for the parameter “token” to fund the user-rights
Parametre: - request –
Kaster: - InvalidTokenException –
- AccessDeniedException –
- InvalidCertificateException –
handleRequest¶
-
protected void
handleRequest
(HttpServletRequest request, HttpServletResponse response, ServiceName serviceName)¶ Get is used for either returning a frontpage, og starting the generation of a report
Parametre: - request –
- response –
- serviceName –
Kaster: - AccessDeniedException –
- AccessRequiredException –
- InvalidTokenException –
- IOException –
- MissingParameterException –
- InvalidClientInputException –
- HttpNotFoundException –
- InvalidCertificateException –
replaceMapValues¶
run¶
-
public abstract int
run
(Filter filter, OutputStream outputStream, String reportUuid)¶