PersonStatisticsService¶
-
public abstract class
PersonStatisticsService
extends StatisticsService¶
Methods¶
FilterOnRegistrationFrom¶
-
public static <R extends CprBitemporalRecord> List<R>
FilterOnRegistrationFrom
(Collection<R> records, OffsetDateTime registrationTimeStart, OffsetDateTime registrationTimeEnd)¶
applyAreaRestrictionsToQuery¶
-
protected void
applyAreaRestrictionsToQuery
(PersonRecordQuery query, DafoUserDetails user)¶
filterRecordsByEffect¶
-
public static <R extends CprBitemporalRecord> Set<R>
filterRecordsByEffect
(Collection<R> records, OffsetDateTime effectAt)¶
filterRecordsByRegistration¶
-
public static <R extends CprBitemporalRecord> Set<R>
filterRecordsByRegistration
(Collection<R> records, OffsetDateTime registrationAt)¶
filterUndoneRecords¶
-
public static <R extends CprBitemporalRecord> Set<R>
filterUndoneRecords
(Collection<R> records)¶
findMostImportant¶
-
public static <R extends CprBitemporalRecord> R
findMostImportant
(Collection<R> records)¶ Find the most important registration according to “bitemporalComparator” Records with a missing OriginDate is removed since they are considered invalid
Parametre: - records –
- <R> –
findNewestAfterFilterOnEffect¶
-
public static <R extends CprBitemporalRecord> R
findNewestAfterFilterOnEffect
(Collection<R> records, OffsetDateTime effectAt)¶ Parametre: - records –
- effectAt –
- <R> –
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> –
findNewestUnclosedOnRegistartionAndEffect¶
-
public static <R extends CprBitemporalRecord> R
findNewestUnclosedOnRegistartionAndEffect
(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> –
findNewestUnclosedWithSpecifiedEffect¶
-
public static <R extends CprBitemporalRecord> R
findNewestUnclosedWithSpecifiedEffect
(Collection<R> records, OffsetDateTime effectAt)¶ Find the newest unclosed record with specified effect from the list of records Records with a missing OriginDate is also removed since they are considered invalid
Parametre: - records –
- <R> –
findRegistrationAtMatchingChangedtimePost¶
-
public static <R extends CprBitemporalRecord> R
findRegistrationAtMatchingChangedtimePost
(Collection<R> records, OffsetDateTime changedToOrIsTime)¶ Find a record which is uncloced in effect, and has a registrationFrom equal to changedToOrIsTime. If none is found find the record with the newest registrationFrom. Otherwise return null
Parametre: - records –
- <R> –
findRegistrationAtMatchingChangedtimePre¶
-
public static <R extends CprBitemporalRecord> R
findRegistrationAtMatchingChangedtimePre
(Collection<R> records, OffsetDateTime changedToOrIsTime)¶ Find a record which is uncloced in effect, and has a registrationto equal to changedToOrIsTime. If none is found find the record with the newest registrationFrom. Otherwise return null
Parametre: - records –
- <R> –
formatItems¶
formatPerson¶
run¶
-
public int
run
(Filter filter, OutputStream outputStream, String reportUuid)¶