List of usage examples for com.liferay.portal.kernel.search SortFactoryUtil getSort
public static Sort getSort(Class<?> clazz, int type, String orderByCol, boolean inferSortField, String orderByType)
From source file:com.liferay.asset.internal.util.AssetHelperImpl.java
License:Open Source License
private Sort _getSort(String orderByType, String sortField, Locale locale) throws Exception { String ddmFormFieldType = sortField; if (ddmFormFieldType.startsWith(DDMStructureManager.STRUCTURE_INDEXER_FIELD_PREFIX)) { ddmFormFieldType = _getDDMFormFieldType(ddmFormFieldType); }//from ww w. j av a 2 s . c o m int sortType = _getSortType(ddmFormFieldType); return SortFactoryUtil.getSort(AssetEntry.class, sortType, _getOrderByCol(sortField, ddmFormFieldType, sortType, locale), !sortField.startsWith(DDMStructureManager.STRUCTURE_INDEXER_FIELD_PREFIX), orderByType); }