StatisticsService

public abstract class StatisticsService

Fields

AFTER_DATE_PARAMETER

public static final String AFTER_DATE_PARAMETER

BEFORE_DATE_PARAMETER

public static final String BEFORE_DATE_PARAMETER

BIRTHDAY_YEAR

public static final String BIRTHDAY_YEAR

BIRTH_AUTHORITY

public static final String BIRTH_AUTHORITY

BIRTH_AUTHORITY_CODE_TEXT

public static final String BIRTH_AUTHORITY_CODE_TEXT

BIRTH_AUTHORITY_TEXT

public static final String BIRTH_AUTHORITY_TEXT

BNR

public static final String BNR

BYGDE

public static final String BYGDE

CHURCH

public static final String CHURCH

CITIZENSHIP_CODE

public static final String CITIZENSHIP_CODE

CIVIL_STATUS

public static final String CIVIL_STATUS

CIVIL_STATUS_DATE

public static final String CIVIL_STATUS_DATE

CIVIL_STATUS_PROD_DATE

public static final String CIVIL_STATUS_PROD_DATE

DEATH_DATE

public static final String DEATH_DATE

DESTINATION_BNR

public static final String DESTINATION_BNR

DESTINATION_COUNTRY_CODE

public static final String DESTINATION_COUNTRY_CODE

DESTINATION_DOOR_NUMBER

public static final String DESTINATION_DOOR_NUMBER

DESTINATION_FLOOR

public static final String DESTINATION_FLOOR

DESTINATION_HOUSE_NUMBER

public static final String DESTINATION_HOUSE_NUMBER

DESTINATION_LOCALITY_NAME

public static final String DESTINATION_LOCALITY_NAME

DESTINATION_MUNICIPALITY_CODE

public static final String DESTINATION_MUNICIPALITY_CODE

DESTINATION_ROAD_CODE

public static final String DESTINATION_ROAD_CODE

DOOR_NUMBER

public static final String DOOR_NUMBER

EFFECTIVE_PNR

public static final String EFFECTIVE_PNR

EFFECT_DATE_PARAMETER

public static final String EFFECT_DATE_PARAMETER

FATHER_PNR

public static final String FATHER_PNR

FATHER_PREFIX

public static final String FATHER_PREFIX

FILE_DATE

public static final String FILE_DATE

FIRST_NAME

public static final String FIRST_NAME

FLOOR_NUMBER

public static final String FLOOR_NUMBER

GUARDIAN_PNR

public static final String GUARDIAN_PNR

HOUSE_NUMBER

public static final String HOUSE_NUMBER

INCLUSION_DATE_PARAMETER

public static final String INCLUSION_DATE_PARAMETER

LAST_NAME

public static final String LAST_NAME

LOCALITY_ABBREVIATION

public static final String LOCALITY_ABBREVIATION

LOCALITY_CODE

public static final String LOCALITY_CODE

LOCALITY_NAME

public static final String LOCALITY_NAME

LOC_STATUS_CODE

public static final String LOC_STATUS_CODE

LOC_STATUS_NAME

public static final String LOC_STATUS_NAME

LOC_TYPE_CODE

public static final String LOC_TYPE_CODE

LOC_TYPE_NAME

public static final String LOC_TYPE_NAME

MIDDLE_NAME

public static final String MIDDLE_NAME

MOTHER_PNR

public static final String MOTHER_PNR

MOTHER_PREFIX

public static final String MOTHER_PREFIX

MOVE_DATE

public static final String MOVE_DATE

MOVE_PROD_DATE

public static final String MOVE_PROD_DATE

MOVING_IN_DATE

public static final String MOVING_IN_DATE

MUNICIPALITY_CODE

public static final String MUNICIPALITY_CODE

MUNICIPALITY_NAME

public static final String MUNICIPALITY_NAME

MUNICIPALITY_SHORT_NAME

public static final String MUNICIPALITY_SHORT_NAME

NO_OF_GUARDIANS

public static final String NO_OF_GUARDIANS

ONLY_PNR

public static final String ONLY_PNR

ORIGIN_AFTER

public static final String ORIGIN_AFTER

ORIGIN_BEFORE

public static final String ORIGIN_BEFORE

ORIGIN_BNR

public static final String ORIGIN_BNR

ORIGIN_COUNTRY_CODE

public static final String ORIGIN_COUNTRY_CODE

ORIGIN_DOOR_NUMBER

public static final String ORIGIN_DOOR_NUMBER

ORIGIN_FLOOR

public static final String ORIGIN_FLOOR

ORIGIN_HOUSE_NUMBER

public static final String ORIGIN_HOUSE_NUMBER

ORIGIN_LOCALITY_NAME

public static final String ORIGIN_LOCALITY_NAME

ORIGIN_MUNICIPALITY_CODE

public static final String ORIGIN_MUNICIPALITY_CODE

ORIGIN_ROAD_CODE

public static final String ORIGIN_ROAD_CODE

PATH_FILE

public static String PATH_FILE

PNR

public static final String PNR

POST_CODE

public static final String POST_CODE

POST_DISTRICT

public static final String POST_DISTRICT

PROD_DATE

public static final String PROD_DATE

PROTECTION_TYPE

public static final String PROTECTION_TYPE

REGISTRATION_AFTER

public static final String REGISTRATION_AFTER

REGISTRATION_AT

public static final String REGISTRATION_AT

REGISTRATION_BEFORE

public static final String REGISTRATION_BEFORE

ROAD_CODE

public static final String ROAD_CODE

ROAD_NAME

public static final String ROAD_NAME

SPOUSE_PNR

public static final String SPOUSE_PNR

STATUS_CODE

public static final String STATUS_CODE

cprDataOffset

public static final ZoneId cprDataOffset

dmyFormatter

protected static DateTimeFormatter dmyFormatter

Methods

checkAndLogAccess

protected abstract void checkAndLogAccess(LoggerHelper loggerHelper)

convertDate

public static LocalDate convertDate(OffsetDateTime date)

formatBnr

protected static String formatBnr(String bnr)

formatDoor

protected static String formatDoor(String door)

formatFloor

protected static String formatFloor(String floor)

formatHouseNnr

protected static String formatHouseNnr(String houseNr)

formatLocalityCode

protected static String formatLocalityCode(int localityCode)

formatMunicipalityCode

protected static String formatMunicipalityCode(Integer municipalityCode)

formatPnr

protected String formatPnr(String pnr)

formatRoadCode

protected static String formatRoadCode(Integer roadCode)

formatStatusCode

protected static String formatStatusCode(int statusCode)

formatTime

protected String formatTime(OffsetDateTime time)

formatTime

protected String formatTime(ZonedDateTime time)

formatTime

protected String formatTime(LocalDate time)

getColumnNames

protected abstract List<String> getColumnNames()

getCsvMapper

protected abstract CsvMapper getCsvMapper()

getDafoUserManager

protected abstract DafoUserManager getDafoUserManager()

getFilter

protected Filter getFilter(HttpServletRequest request)

getLogger

protected abstract Logger getLogger()

getSessionManager

protected abstract SessionManager getSessionManager()

getUser

protected DafoUserDetails getUser(HttpServletRequest request)

getWriteToLocalFile

public boolean getWriteToLocalFile()

handleRequest

protected void handleRequest(HttpServletRequest request, HttpServletResponse response, ServiceName serviceName)

replaceMapValues

protected static void replaceMapValues(Map<String, String> map, String search, String replace)

requireParameter

protected void requireParameter(String parameterName, String parameterValue)

requiredParameters

protected String[] requiredParameters()

run

public abstract int run(Filter filter, OutputStream outputStream)

setWriteToLocalFile

public void setWriteToLocalFile(boolean writeToLocalFile)

string

protected static String string(int value)

writeItems

protected int writeItems(Iterator<Map<String, String>> items, OutputStream outputStream, Consumer<Object> afterEach)