Class AbstractPagingAndSortingController
java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
- Direct Known Subclasses:
AbstractUniqueObjectController
public abstract class AbstractPagingAndSortingController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BTRequest
createBTRequest
(Class targetClass, int offset, int limit, String sortProperty, String sortOrder, String searchProperty, String searchTerm, String dataLanguage) protected de.digitalcollections.model.list.paging.PageRequest
createPageRequest
(Class targetClass, int pageNumber, int pageSize, String sortProperty, String sortOrder, String searchProperty, String searchTerm, String dataLanguage) protected de.digitalcollections.model.list.paging.PageRequest
createPageRequest
(Class targetClass, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchProperty, String searchTerm, String dataLanguage) protected String
getDataLanguage
(String targetDataLanguage, LanguageService languageService) protected String
getDataLanguage
(String targetDataLanguage, List<Locale> existingLanguages, LanguageService languageService) static Class
getFieldType
(Class clz, String fieldName) Get Class of a field of a given class.Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController
verifyBinding
-
Field Details
-
languageService
-
-
Constructor Details
-
AbstractPagingAndSortingController
-
-
Method Details
-
createBTRequest
protected BTRequest createBTRequest(Class targetClass, int offset, int limit, String sortProperty, String sortOrder, String searchProperty, String searchTerm, String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException, IllegalArgumentException - Throws:
de.digitalcollections.model.exception.TechnicalException
IllegalArgumentException
-
createPageRequest
protected de.digitalcollections.model.list.paging.PageRequest createPageRequest(Class targetClass, int pageNumber, int pageSize, String sortProperty, String sortOrder, String searchProperty, String searchTerm, String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
createPageRequest
protected de.digitalcollections.model.list.paging.PageRequest createPageRequest(Class targetClass, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchProperty, String searchTerm, String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
getDataLanguage
protected String getDataLanguage(String targetDataLanguage, LanguageService languageService) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
getDataLanguage
protected String getDataLanguage(String targetDataLanguage, List<Locale> existingLanguages, LanguageService languageService) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
getFieldType
Get Class of a field of a given class.- Parameters:
clz
- class to search infieldName
- name of field- Returns:
- Class/Type of field (if found)
- Throws:
NoSuchFieldException
- thrown if not found
-