Class SortFactoryUtil

Object
com.liferay.portal.kernel.search.SortFactoryUtil

public class SortFactoryUtil extends Object
Author:
Brian Wing Shun Chan, Raymond Augé
  • Constructor Details

    • SortFactoryUtil

      public SortFactoryUtil()
  • Method Details

    • create

      public static Sort create(String fieldName, boolean reverse)
    • create

      public static Sort create(String fieldName, int type, boolean reverse)
    • getDefaultSorts

      public static Sort[] getDefaultSorts()
    • getSort

      public static Sort getSort(Class<?> clazz, int type, String orderByCol, boolean inferSortField, String orderByType)
    • getSort

      public static Sort getSort(Class<?> clazz, int type, String orderByCol, String orderByType)
    • getSort

      public static Sort getSort(Class<?> clazz, String orderByCol, String orderByType)
    • toArray

      public static Sort[] toArray(List<Sort> sorts)