CollectiveReportDataService

public class CollectiveReportDataService extends PersonStatisticsService

Fields

objectMapper

ObjectMapper objectMapper

sessionManager

SessionManager sessionManager

Methods

formatPerson

protected List<Map<String, String>> formatPerson(PersonEntity person, Session session, GeoLookupService lookupService, Filter filter)

get

public void get(HttpServletRequest request, HttpServletResponse response)

Calls handleRequest in super with the ID of the report as a parameter

Parametre:
  • request
  • response
Kaster:
  • AccessDeniedException
  • AccessRequiredException
  • InvalidTokenException
  • IOException
  • MissingParameterException
  • InvalidClientInputException
  • HttpNotFoundException
  • InvalidCertificateException

getColumnNames

protected List<String> getColumnNames()

getCprPlugin

protected CprPlugin getCprPlugin()

getCsvMapper

protected CsvMapper getCsvMapper()

getDafoUserManager

protected DafoUserManager getDafoUserManager()

getDone

public void getDone(HttpServletRequest request, HttpServletResponse response)

getLogger

protected Logger getLogger()

getQuery

protected PersonRecordQuery getQuery(Filter filter)

getReportExecute

public void getReportExecute(HttpServletRequest request, HttpServletResponse response)

Find one report from the list of started reports and run it

Parametre:
  • request
  • response
Kaster:
  • IOException
  • AccessDeniedException
  • InvalidTokenException
  • InvalidCertificateException
  • AccessRequiredException

getReportList

public void getReportList(HttpServletRequest request, HttpServletResponse response)

Return a list of reports which is either started, running or done Done reports is only returned if there is no started or running reports found

Parametre:
  • request
  • response
Kaster:
  • IOException
  • AccessDeniedException
  • InvalidTokenException
  • InvalidCertificateException
  • AccessRequiredException

getReportStatus

public void getReportStatus(HttpServletRequest request, HttpServletResponse response)

Get the status of reports from the reportlist

Parametre:
  • request
  • response
Kaster:
  • IOException
  • AccessDeniedException
  • InvalidTokenException
  • InvalidCertificateException
  • AccessRequiredException

getSessionManager

protected SessionManager getSessionManager()

handlePost

public void handlePost(HttpServletRequest request, HttpServletResponse response)

Post is used for starting the generation of a report

Parametre:
  • request
  • response
Kaster:
  • AccessDeniedException
  • AccessRequiredException
  • InvalidTokenException
  • IOException
  • MissingParameterException
  • InvalidClientInputException
  • HttpNotFoundException
  • InvalidCertificateException

requiredParameters

protected String[] requiredParameters()