LocalityDataService

public class LocalityDataService extends StatisticsService

This might be a naive implementation, but so far it does not look like it It does not take bitemporality or noe to many relations on locality into account

Fields

sessionManager

SessionManager sessionManager

Methods

checkAndLogAccess

protected void checkAndLogAccess(LoggerHelper loggerHelper)

findNewestUnclosed

public static <R extends CprBitemporalRecord> R findNewestUnclosed(Collection<R> records)

Find the newest unclosed record from the list of records Records with a missing OriginDate is also removed since they are considered invalid

Parametre:
  • records
  • <R>

get

public void get(HttpServletRequest request, HttpServletResponse response)

getColumnNames

protected List<String> getColumnNames()

getCsvMapper

protected CsvMapper getCsvMapper()

getDafoUserManager

protected DafoUserManager getDafoUserManager()

getFilter

protected Filter getFilter(HttpServletRequest request)

getLogger

protected Logger getLogger()

getSessionManager

protected SessionManager getSessionManager()

getUser

protected DafoUserDetails getUser(HttpServletRequest request)

handlePost

public void handlePost(HttpServletRequest request, HttpServletResponse response)

init

public void init()

run

public int run(Filter filter, OutputStream outputStream)

writeItems

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