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:
  • InvalidClientInputException
  • MissingParameterException
  • InvalidCertificateException
  • AccessDeniedException
  • IOException
  • InvalidTokenException
  • HttpNotFoundException
  • AccessRequiredException

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:
  • InvalidCertificateException
  • AccessDeniedException
  • IOException
  • AccessRequiredException
  • InvalidTokenException

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:
  • InvalidCertificateException
  • AccessDeniedException
  • IOException
  • AccessRequiredException
  • InvalidTokenException

getReportStatus

public void getReportStatus(HttpServletRequest request, HttpServletResponse response)

Get the status of reports from the reportlist

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

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:
  • InvalidClientInputException
  • MissingParameterException
  • InvalidCertificateException
  • AccessDeniedException
  • IOException
  • InvalidTokenException
  • HttpNotFoundException
  • AccessRequiredException

requiredParameters

protected String[] requiredParameters()