Class FilterAndSortAliasSortTransformer
java.lang.Object
com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterAndSortAliasSortTransformer
- All Implemented Interfaces:
SortTransformer
Reads from the repository domain annotated with
FilterAndSortAlias
to transform the
original sort request- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
-
Method Summary
-
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 interfaceSortTransformer
- Parameters:
sort
- the original sort requestrepositoryDomain
- the repository domain class- Returns:
- a transformed sort, or the original sort to do nothing
-