Class FilterAndSortAliasSortTransformer

  • All Implemented Interfaces:
    SortTransformer

    public class FilterAndSortAliasSortTransformer
    extends Object
    implements SortTransformer
    Reads from the repository domain annotated with FilterAndSortAlias to transform the original sort request
    Author:
    Phillip Verheyden (phillipuniverse)
    • Constructor Detail

      • FilterAndSortAliasSortTransformer

        public FilterAndSortAliasSortTransformer()
    • Method Detail

      • transform

        public org.springframework.data.domain.Sort transform​(org.springframework.data.domain.Sort sort,
                                                              Class<?> repositoryDomain)
        Description copied from interface: SortTransformer
        Transforms the original sort into a new sort, usually as one relevant for the given repositoryDomain
        Specified by:
        transform in interface SortTransformer
        Parameters:
        sort - the original sort request
        repositoryDomain - the repository domain class
        Returns:
        a transformed sort, or the original sort to do nothing