Class AbstractUniqueObjectController<U extends de.digitalcollections.model.UniqueObject>
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<U>
- Direct Known Subclasses:
AbstractIdentifiableController,HeadwordController,IdentifierTypeController,LicenseController,PredicateController,RenderingTemplateController,SubjectController,TagController,UserController
public abstract class AbstractUniqueObjectController<U extends de.digitalcollections.model.UniqueObject>
extends AbstractPagingAndSortingController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UbuildExampleWithUuid(UUID uuid) protected longcount()protected org.springframework.http.ResponseEntity<Void>protected org.springframework.http.ResponseEntityprotected de.digitalcollections.model.list.paging.PageResponse<U>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering) protected org.springframework.http.ResponseEntity<U>protected org.springframework.http.ResponseEntity<U>getByUuidAndLocale(UUID uuid, Locale locale) protected abstract UniqueObjectService<U>protected Uprotected UMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Field Details
-
LOGGER
protected final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
AbstractUniqueObjectController
public AbstractUniqueObjectController()
-
-
Method Details
-
count
- Throws:
ServiceException
-
delete
protected org.springframework.http.ResponseEntity delete(UUID uuid) throws ConflictException, ServiceException - Throws:
ConflictExceptionServiceException
-
delete
protected org.springframework.http.ResponseEntity<Void> delete(List<UUID> uuids) throws ServiceException, ConflictException - Throws:
ServiceExceptionConflictException
-
getService
-
find
protected de.digitalcollections.model.list.paging.PageResponse<U> find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException - Throws:
ServiceException
-
getByUuid
- Throws:
ServiceException
-
getByUuidAndLocale
protected org.springframework.http.ResponseEntity<U> getByUuidAndLocale(UUID uuid, Locale locale) throws ServiceException - Throws:
ServiceException
-
save
protected U save(U uniqueObject, org.springframework.validation.BindingResult bindingResult) throws ValidationException, ServiceException - Throws:
ValidationExceptionServiceException
-
update
protected U update(UUID uuid, U uniqueObject, org.springframework.validation.BindingResult bindingResult) throws ValidationException, ServiceException - Throws:
ValidationExceptionServiceException
-
buildExampleWithUuid
- Throws:
ServiceException
-