AdoptionDataService

public class AdoptionDataService 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)

Create formatted adoptioninfo for one adopted child

Parametre:
  • person
  • session
  • lookupService
  • filter

formatPersonByRecord

protected Map<String, String> formatPersonByRecord(boolean before, PersonEntity person, Session session, GeoLookupService lookupService, Filter filter)

Create one formatted row of data for one adopted child

Parametre:
  • before
  • person
  • session
  • lookupService
  • 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()

getLogger

protected Logger getLogger()

getQuery

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

requiredParameters

protected String[] requiredParameters()

setUseTimeintervallimit

public void setUseTimeintervallimit()