Class Jackson2MappingAwareSortTranslator

java.lang.Object
org.springframework.data.rest.webmvc.json.Jackson2MappingAwareSortTranslator
All Implemented Interfaces:
SortTranslator

@Deprecated(since="5.0", forRemoval=true) public class Jackson2MappingAwareSortTranslator extends Object implements SortTranslator
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0, in favor of JacksonMappingAwareSortTranslator
Translator for Sort arguments that is aware of Jackson-Mapping on domain classes. Jackson field names are translated to PersistentProperty names. Domain class is looked up by resolving request URLs to mapped repositories. Sort translation is skipped if a domain class cannot be resolved.
Since:
2.6
Author:
Mark Paluch, Oliver Gierke
  • Constructor Details

  • Method Details

    • translateSort

      public Sort translateSort(Sort input, MethodParameter parameter, NativeWebRequest webRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Translates Jackson field names within a Sort to PersistentProperty property names.
      Specified by:
      translateSort in interface SortTranslator
      Parameters:
      input - must not be null.
      parameter - must not be null.
      webRequest - must not be null.
      Returns:
      a Sort containing translated property names or null the resulting Sort contains no properties.