Klasse PaginationConfig
java.lang.Object
org.emau.icmvc.ttp.epix.common.utils.PaginationConfig
- Alle implementierten Schnittstellen:
Serializable
parameter for get...Paginated functions
firstEntry
default = 0
pageSize
default = 10
filter
default = empty map
filter values; for possible keys see IdentityField
startDate
default = null
consents with date >= startDate are returned
endDate
default = null
consents with date Ungültige Eingabe: "<"= endDate are returned
templateType
default = null
filterAreTreatedAsConjunction
default = true
has no effect on template type
filterIsCaseSensitive
default = false
sortField
see IdentityField
default = null
sortIsAscending
default = true
- Autor:
- geidell, moser
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
KonstruktorBeschreibungPaginationConfig
(String globalFieldFilter, boolean caseSensitive) PaginationConfig
(Map<IdentityField, String> identityFilter, Map<PersonField, String> personFilter, boolean asConjunction, boolean caseSensitive) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic PaginationConfig.Builder
builder()
Creates a builder for the pagination config (see Builder-Pattern).boolean
detectAndConfigureGlobalIdentityFiltering
(Set<IdentityField> globalFilterFields) IfIdentityField.NONE
is the only key in the identity filter map with a non-empty pattern value, then configure the filter to search in all given global filter fields linked by OR (disjunction), otherwise leave the filter configuration untouched.boolean
detectAndConfigureGlobalPersonFiltering
(Set<PersonField> globalFilterFields) IfPersonField.NONE
is the only key in the identity filter map with a non-empty pattern value, then configure the filter to search in all given global filter fields linked by OR (disjunction), otherwise leave the filter configuration untouched.boolean
boolean
detectAndConfigureIdentityGenderFiltering
(Map<Gender, String> genderStrings) IfIdentityField.GENDER
is a key in the identity fields filter map, then replace the (localized) gender strings by all gender symbol keys (as defined inGender
) for which the value's pattern matches the gender string value.boolean
boolean
detectAndConfigureIdentityVitalStatusFiltering
(Map<VitalStatus, String> vitalStatusStrings) IfIdentityField.VITAL_STATUS
is a key in the person fields filter map, then replace the (localized) vitalStatus strings by all vital status symbol keys (as defined inVitalStatus
) for which the value's pattern matches the vital status string value.boolean
boolean
int
int
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Prepares this pagination config for using with JPA-predicates.void
setCreateTimestampFilter
(String createTimestampFilter) void
setDateFormat
(String dateFormat) void
setEventFilter
(Set<IdentityHistoryEvent> eventFilter) void
setFirstEntry
(int firstEntry) void
setGlobalFieldFilter
(String globalFieldFilter) void
setGlobalFieldFilterCaseSensitive
(boolean globalFieldFilterCaseSensitive) void
setIdentityAndPersonFilterCombinedAsConjunction
(boolean identityAndPersonFilterCombinedAsConjunction) void
setIdentityFilter
(Map<IdentityField, String> identityFilter) void
setIdentityFilterAsConjunction
(boolean identityFilterAsConjunction) void
setIdentityFilterCaseSensitive
(boolean identityFilterCaseSensitive) void
setIdentityGenderStrings
(Map<Gender, String> identityGenderStrings) void
setIdentityVitalStatusStrings
(Map<VitalStatus, String> identityVitalStatusStrings) void
setPageSize
(int pageSize) void
setPersonFilter
(Map<PersonField, String> personFilter) void
setPersonFilterAsConjunction
(boolean personFilterAsConjunction) void
setPersonFilterCaseSensitive
(boolean personFilterCaseSensitive) void
setPriorityFilter
(Set<PossibleMatchPriority> priorityFilter) void
setSolutionFilter
(Set<PossibleMatchSolution> solutionFilter) void
setSortField
(IdentityField sortField) void
setSortIsAscending
(boolean sortIsAscending) void
setTimeFormat
(String timeFormat) toString()
-
Konstruktordetails
-
PaginationConfig
public PaginationConfig() -
PaginationConfig
-
PaginationConfig
public PaginationConfig(Map<IdentityField, String> identityFilter, Map<PersonField, String> personFilter, boolean asConjunction, boolean caseSensitive)
-
-
Methodendetails
-
isUsingPagination
public boolean isUsingPagination() -
getFirstEntry
public int getFirstEntry() -
setFirstEntry
public void setFirstEntry(int firstEntry) -
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getGlobalFieldFilter
-
setGlobalFieldFilter
-
isUsingGlobalFieldFiltering
public boolean isUsingGlobalFieldFiltering() -
isGlobalFieldFilterCaseSensitive
public boolean isGlobalFieldFilterCaseSensitive() -
setGlobalFieldFilterCaseSensitive
public void setGlobalFieldFilterCaseSensitive(boolean globalFieldFilterCaseSensitive) -
isUsingEventFiltering
public boolean isUsingEventFiltering() -
getEventFilter
-
setEventFilter
-
isUsingSolutionFiltering
public boolean isUsingSolutionFiltering() -
getSolutionFilter
-
setSolutionFilter
-
isUsingPriorityFiltering
public boolean isUsingPriorityFiltering() -
getPriorityFilter
-
setPriorityFilter
-
isUsingIdentityFiltering
public boolean isUsingIdentityFiltering() -
getIdentityFilter
-
setIdentityFilter
-
isIdentityFilterAsConjunction
public boolean isIdentityFilterAsConjunction() -
setIdentityFilterAsConjunction
public void setIdentityFilterAsConjunction(boolean identityFilterAsConjunction) -
isIdentityFilterCaseSensitive
public boolean isIdentityFilterCaseSensitive() -
setIdentityFilterCaseSensitive
public void setIdentityFilterCaseSensitive(boolean identityFilterCaseSensitive) -
isGlobalIdentityFiltering
public boolean isGlobalIdentityFiltering() -
getGlobalIdentityFilterPattern
-
detectAndConfigureGlobalIdentityFiltering
IfIdentityField.NONE
is the only key in the identity filter map with a non-empty pattern value, then configure the filter to search in all given global filter fields linked by OR (disjunction), otherwise leave the filter configuration untouched.- Parameter:
globalFilterFields
- the identity fields to search in when using global identity field filtering- Gibt zurück:
- true when global filtering was detected and configured
-
getIdentityGenderStrings
-
setIdentityGenderStrings
-
detectAndConfigureIdentityGenderFiltering
public boolean detectAndConfigureIdentityGenderFiltering() -
detectAndConfigureIdentityGenderFiltering
IfIdentityField.GENDER
is a key in the identity fields filter map, then replace the (localized) gender strings by all gender symbol keys (as defined inGender
) for which the value's pattern matches the gender string value.- Parameter:
genderStrings
- a map with genders as keys and the localized strings as values- Gibt zurück:
- true when the identity gender pattern has changed
-
getIdentityVitalStatusStrings
-
setIdentityVitalStatusStrings
-
detectAndConfigureIdentityVitalStatusFiltering
public boolean detectAndConfigureIdentityVitalStatusFiltering() -
detectAndConfigureIdentityVitalStatusFiltering
public boolean detectAndConfigureIdentityVitalStatusFiltering(Map<VitalStatus, String> vitalStatusStrings) IfIdentityField.VITAL_STATUS
is a key in the person fields filter map, then replace the (localized) vitalStatus strings by all vital status symbol keys (as defined inVitalStatus
) for which the value's pattern matches the vital status string value.- Parameter:
vitalStatusStrings
- a map with vital status as keys and the localized strings as values- Gibt zurück:
- true when the person vital status pattern has changed
-
isUsingSorting
public boolean isUsingSorting() -
getSortField
-
setSortField
-
isSortIsAscending
public boolean isSortIsAscending() -
setSortIsAscending
public void setSortIsAscending(boolean sortIsAscending) -
isUsingPersonFiltering
public boolean isUsingPersonFiltering() -
getPersonFilter
-
setPersonFilter
-
isPersonFilterAsConjunction
public boolean isPersonFilterAsConjunction() -
setPersonFilterAsConjunction
public void setPersonFilterAsConjunction(boolean personFilterAsConjunction) -
isPersonFilterCaseSensitive
public boolean isPersonFilterCaseSensitive() -
setPersonFilterCaseSensitive
public void setPersonFilterCaseSensitive(boolean personFilterCaseSensitive) -
isGlobalPersonFiltering
public boolean isGlobalPersonFiltering() -
getGlobalPersonFilterPattern
-
detectAndConfigureGlobalPersonFiltering
IfPersonField.NONE
is the only key in the identity filter map with a non-empty pattern value, then configure the filter to search in all given global filter fields linked by OR (disjunction), otherwise leave the filter configuration untouched.- Parameter:
globalFilterFields
- the person fields to search in when using global person field filtering- Gibt zurück:
- true when global filtering was detected and configured
-
isIdentityAndPersonFilterCombinedAsConjunction
public boolean isIdentityAndPersonFilterCombinedAsConjunction() -
setIdentityAndPersonFilterCombinedAsConjunction
public void setIdentityAndPersonFilterCombinedAsConjunction(boolean identityAndPersonFilterCombinedAsConjunction) -
isUsingCreateTimestampFiltering
public boolean isUsingCreateTimestampFiltering() -
getCreateTimestampFilter
-
setCreateTimestampFilter
-
getDateFormat
-
setDateFormat
-
getTimeFormat
-
setTimeFormat
-
normalize
public boolean normalize() -
prepareIdentityFilterForPredicates
Prepares this pagination config for using with JPA-predicates.- Parameter:
cc
- the configuration container e.g. to request required fields- Gibt zurück:
- true, if the pagination config actually has been changed
-
hashCode
public int hashCode() -
equals
-
equalsWhenPagingAndSortingIsIgnored
-
toString
-
builder
Creates a builder for the pagination config (see Builder-Pattern).- Gibt zurück:
- a builder for the pagination config.
-