Class FilterAndSortAliasSortTransformer

java.lang.Object
com.broadleafcommerce.data.tracking.core.filtering.fetch.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 Details

    • FilterAndSortAliasSortTransformer

      public FilterAndSortAliasSortTransformer()
  • Method Details

    • 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