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 withFilterAndSortAlias
to transform the original sort request- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description FilterAndSortAliasSortTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Sort
transform(org.springframework.data.domain.Sort sort, Class<?> repositoryDomain)
Transforms the original sort into a new sort, usually as one relevant for the given repositoryDomain
-
-
-
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 interfaceSortTransformer
- Parameters:
sort
- the original sort requestrepositoryDomain
- the repository domain class- Returns:
- a transformed sort, or the original sort to do nothing
-
-