CivilStatusDataService

public class CivilStatusDataService extends PersonStatisticsService

Make a report of changes in civil-state of persons in Greenland

Fields

dafoUserManager

DafoUserManager dafoUserManager

objectMapper

ObjectMapper objectMapper

sessionManager

SessionManager sessionManager

Methods

formatPerson

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

formatPersonByRecord

protected List<Map<String, String>> formatPersonByRecord(PersonEntity person, Session session, GeoLookupService lookupService, CivilStatusFilter 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()

getFilter

protected Filter getFilter(HttpServletRequest request)

getLogger

protected Logger getLogger()

getQuery

protected PersonCivilStatusQuery getQuery(Filter filter)

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()