Issues
Query
The IssuesQuery
class is useful to
execute the query to retrieve the issues data from the database with the possibility to
dynamically filter that query with the CriteriaBuilder's
logic
Author
N7ghtm4r3 - Tecknobit
Parameters
<T>
The type of the issues to retrieve
Inheritors
Properties
Link copied to clipboard
applicationId
the identifier
of the application
Link copied to clipboard
BRAND_PATTERN
the pattern to
validate the brands values
Link copied to clipboard
private val BRAND_REGEX: String = "^(Pixel|Apple|Samsung|Google|OnePlus|Sony|Motorola|Oppo|Vivo|Nokia|HTC|Asus|Realme|Honor|ZTE|Dell|HP|Lenovo|Acer|Razer|Microsoft|MSI|Toshiba|LG|Huawei|Amazon|Xiaomi|RCA|iMac|Alienware|ASUS ROG|HP Omen|Gigabyte AORUS|Corsair|Lenovo Legion|Dell G Series)$"
BRAND_REGEX
regex to validate the brands values
Link copied to clipboard
BROWSER_PATTERN
the pattern
to validate the browsers values
Link copied to clipboard
private val BROWSER_REGEX: String = "^(Google Chrome|Safari|Microsoft Edge|Mozilla Firefox|Opera|Samsung Internet|Brave|Vivaldi|Tor Browser|Epic Privacy Browser|Maxthon)$"
BROWSER_REGEX
regex to
validate the browsers values
Link copied to clipboard
criteriaBuilder
the builder
to add the criteria to filter the query
Link copied to clipboard
DATE_PATTERN
the pattern to
validate the date values
Link copied to clipboard
private val DATE_REGEX: String = "\b(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[0-2])/\d{4}(\s+([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?\b"
DATE_REGEX
regex to validate the date values
Link copied to clipboard
device
the
device related to the issue retrieved with the Join
Link copied to clipboard
entityManager
manage the
entities
Link copied to clipboard
MODEL_PATTERN
the pattern to
validate the models values
Link copied to clipboard
private val MODEL_REGEX: String = "^(?!^(Google Chrome|Safari|Microsoft Edge|Mozilla Firefox|Opera|Samsung Internet|Brave|Vivaldi|Tor Browser|Epic Privacy Browser|Maxthon)$)(\d{1,2}[A-Za-z]?[- ]?\d?[A-Za-z]?|[A-Za-z]+[ -]?\d{1,2}([A-Za-z]?|\d*)|[A-Za-z0-9]+[- ]?\d{1,2}|\d{1,2}[- ]?[A-Za-z0-9]+|[A-Za-z0-9]+[ -]?[A-Za-z0-9]+|\d{1,2}[A-Za-z]? ?[A-Za-z]+|\w+ ?[A-Za-z0-9]+)$"
MODEL_REGEX
regex to validate the models values
Link copied to clipboard
NAME_PATTERN
the pattern to
validate the names values
Link copied to clipboard
NAME_REGEX
regex to validate the exception name
Link copied to clipboard
predicates
the list of predicates to apply to the query
Link copied to clipboard
rawFilters
the filters all together in raw format
Link copied to clipboard
VERSION_PATTERN
the pattern
to validate the versions values
Link copied to clipboard
VERSION_REGEX
regex to
validate the versions values
Functions
Link copied to clipboard
Method to add the brands filter
Link copied to clipboard
Method to add the dates filter
Link copied to clipboard
Method to add the mandatory filters such applicationId and platform
Link copied to clipboard
Method to add the models filter
Link copied to clipboard
Method to add the names filter
Link copied to clipboard
Method to add the versions filter
Link copied to clipboard
Method to extract from the rawFilters the specific set
of filters
Link copied to clipboard
Wrapper method to fill all the predicates
dynamically
Link copied to clipboard
Method to get from the rawFilters the brands filter
related
Link copied to clipboard
Method to get from the rawFilters the dates filter
related
Link copied to clipboard
Method to get from the rawFilters the models filter
related
Link copied to clipboard
Method to get from the rawFilters the names filter
related
Link copied to clipboard
Method to get from the rawFilters the versions
filter related
Link copied to clipboard
Method to get the version predicates
dynamically
Link copied to clipboard
Method to prepare the query adding the
predicates