Class TableQueryUtil

java.lang.Object
hu.rts.mike.example.dev.crm.rest.utility.TableQueryUtil

public class TableQueryUtil extends Object
  • Constructor Details

    • TableQueryUtil

      public TableQueryUtil()
  • Method Details

    • parseSorts

      public static org.springframework.data.domain.Sort parseSorts(List<String> sorts)
      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

      public static List<Filter<?>> parseFilters(List<String> filters)
      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

      protected static Filter<?> convertStringToFilter(String[] parts)