Class SortOrdersQueryParamConverter
java.lang.Object
org.defendev.common.spring6.core.convert.SortOrdersQueryParamConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,List<org.defendev.common.domain.query.sort.SortOrder>>
public class SortOrdersQueryParamConverter
extends Object
implements org.springframework.core.convert.converter.Converter<String,List<org.defendev.common.domain.query.sort.SortOrder>>
Type converter that parses a string containing a specification of sort orders
to a list of structured objects. It's intended primarily for use in URL query params.
The form of parsable specification is like:
lastName:ASC,firstName:DESC,createdAt:ASC