Class TableQueryUtil
java.lang.Object
hu.rts.mike.example.dev.crm.rest.utility.TableQueryUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Filter<?>convertStringToFilter(String[] parts) parseFilters(List<String> filters) Parses list of filter strings to low level Filter objects.static org.springframework.data.domain.SortparseSorts(List<String> sorts) Parses sorting in the string format of "propertyName:(asc|desc)".
-
Constructor Details
-
TableQueryUtil
public TableQueryUtil()
-
-
Method Details
-
parseSorts
Parses sorting in the string format of "propertyName:(asc|desc)". If a string is not matched with the given formula it doesn't parse it and do not warn about it.- Parameters:
sorts- List of sorts in string format.- Returns:
- List of parsed sort object.
-
parseFilters
Parses list of filter strings to low level Filter objects. The formula of the filter string is: propertyName@operator@value1;value2;value3 If a string is not matched with the given formula it doesn't parse it and do not warn about it.- Parameters:
filters- List of filters in string format.- Returns:
- List of low level filter objects.
-
convertStringToFilter
-