Class IdentifiableController
java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController<I>
de.digitalcollections.cudami.admin.controller.identifiable.AbstractIdentifiablesController<de.digitalcollections.model.identifiable.Identifiable,CudamiIdentifiablesClient<de.digitalcollections.model.identifiable.Identifiable>>
de.digitalcollections.cudami.admin.controller.identifiable.IdentifiableController
@Controller
public class IdentifiableController
extends AbstractIdentifiablesController<de.digitalcollections.model.identifiable.Identifiable,CudamiIdentifiablesClient<de.digitalcollections.model.identifiable.Identifiable>>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
service
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
languageService
-
Constructor Summary
ConstructorDescriptionIdentifiableController
(CudamiClient client, LanguageService languageService) -
Method Summary
Modifier and TypeMethodDescriptiondoForward
(de.digitalcollections.model.identifiable.Identifiable identifiable, org.springframework.ui.Model model) List<de.digitalcollections.model.identifiable.Identifiable>
find
(int pageNumber, int pageSize, String searchField, String searchTerm, List<de.digitalcollections.model.list.sorting.Order> sortBy) viewBase64Encoded
(String base64, org.springframework.ui.Model model) Methods inherited from class de.digitalcollections.cudami.admin.controller.identifiable.AbstractIdentifiablesController
getExistingLanguagesFromIdentifiable, getExistingLanguagesFromIdentifiables, getExistingLanguagesFromService, search
Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
find
Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
createBTRequest, createPageRequest, createPageRequest, getDataLanguage, getDataLanguage, getFieldType
Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController
verifyBinding
-
Constructor Details
-
IdentifiableController
-
-
Method Details
-
doForward
public String doForward(de.digitalcollections.model.identifiable.Identifiable identifiable, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
find
@GetMapping("/identifiables") @ResponseBody public List<de.digitalcollections.model.identifiable.Identifiable> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="searchField",required=false,defaultValue="label") String searchField, @RequestParam(name="term",required=false) String searchTerm, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
view
@GetMapping("/identifiables/{namespace:[a-zA-Z_\\-]+}:{id:.+}") public String view(@PathVariable String namespace, @PathVariable String id, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException - Throws:
de.digitalcollections.model.exception.TechnicalException
de.digitalcollections.model.exception.ResourceNotFoundException
-
viewBase64Encoded
@GetMapping("/identifiables/{base64:[^:]+}") public String viewBase64Encoded(@PathVariable String base64, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException - Throws:
de.digitalcollections.model.exception.TechnicalException
de.digitalcollections.model.exception.ResourceNotFoundException
-