Class FilterParser.Filter
java.lang.Object
io.jenkins.plugins.batchcontrol.ui.FilterParser.Filter
- Enclosing class:
FilterParser
The validated filter. Immutable; date bounds are always present (defaulted), text filters
are null when absent.
-
Method Summary
Modifier and TypeMethodDescriptionStart of the range (inclusive), in the controller zone.e2e-04 FD-11: the refusal of thefromdate, ornull.Thefromfield's value for redisplay: what the user entered after a refusal.getJob()e2e-04 FD-11: the refusal of thetodate (or of a reversed range), ornull.Thetofield's value for redisplay: what the user entered after a refusal.getUser()booleanWhether the timestamp lies inside the [from, to] date range; null never matches.booleanisValid()Whether both dates were usable; the screen lists nothing otherwise.booleanmatchesJob(String jobFullName) Case-insensitive substring match on the job full name (or change target).booleanmatchesResult(Object recordResult) Case-insensitive match on the result token (build result / incident result).booleanmatchesStatus(Object recordStatus) Case-insensitive match on the status token (enum name).booleanmatchesUser(String userId) R4-01: the same user under the realm's user id strategy (Approvers.sameUser(java.lang.String, java.lang.String)).months(Collection<YearMonth> stored) The months ofstored(the store's existing buckets) that the range covers, oldest first.End of the range (exclusive: start of the day afterto).The filter as a URL query fragment (from=...&to=..., plus the optional parameters when present), for paging and CSV export links.
-
Method Details
-
getFromValue
-
getToValue
-
getFromError
e2e-04 FD-11: the refusal of thefromdate, ornull. -
getToError
e2e-04 FD-11: the refusal of thetodate (or of a reversed range), ornull. -
isValid
public boolean isValid()Whether both dates were usable; the screen lists nothing otherwise. -
getFromInput
Thefromfield's value for redisplay: what the user entered after a refusal. -
getToInput
Thetofield's value for redisplay: what the user entered after a refusal. -
getJob
-
getUser
-
getResult
-
getStatus
-
fromInstant
Start of the range (inclusive), in the controller zone. -
toInstantExclusive
End of the range (exclusive: start of the day afterto). -
months
The months ofstored(the store's existing buckets) that the range covers, oldest first. Bounded by what exists, not by the span, so a wide range is cheap. -
inRange
Whether the timestamp lies inside the [from, to] date range; null never matches. -
matchesJob
Case-insensitive substring match on the job full name (or change target). -
matchesUser
R4-01: the same user under the realm's user id strategy (Approvers.sameUser(java.lang.String, java.lang.String)). -
matchesResult
Case-insensitive match on the result token (build result / incident result). -
matchesStatus
Case-insensitive match on the status token (enum name). -
toQueryString
The filter as a URL query fragment (from=...&to=..., plus the optional parameters when present), for paging and CSV export links. Values are URL-encoded.
-