java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.ProjectController

@RestController
public class ProjectController
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ProjectController​(ProjectService projectService)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity addDigitalObject​(java.util.UUID projectUuid, java.util.UUID digitalObjectUuid)  
    org.springframework.http.ResponseEntity addDigitalObjects​(java.util.UUID projectUuid, java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)  
    org.springframework.http.ResponseEntity deleteProject​(java.util.UUID uuid)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project> findAll​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String searchTerm)  
    java.util.List<de.digitalcollections.model.identifiable.entity.Project> findAllReducedAsList()  
    de.digitalcollections.model.identifiable.entity.Project findByIdentifier​(java.lang.String namespace, java.lang.String id)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Project> findByUuid​(java.util.UUID uuid, java.util.Locale pLocale)  
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> getDigitalObjects​(java.util.UUID projectUuid, int pageNumber, int pageSize)  
    java.util.List<java.util.Locale> getLanguages()  
    org.springframework.http.ResponseEntity removeDigitalObject​(java.util.UUID projectUuid, java.util.UUID digitalObjectUuid)  
    de.digitalcollections.model.identifiable.entity.Project save​(de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors)  
    org.springframework.http.ResponseEntity saveDigitalObjects​(java.util.UUID projectUuid, java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)  
    de.digitalcollections.model.identifiable.entity.Project update​(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addDigitalObject

      @PostMapping(value={"/v5/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/v3/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/latest/projects/{uuid}/digitalobjects/{digitalObjectUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity addDigitalObject​(@PathVariable("uuid") java.util.UUID projectUuid, @PathVariable("digitalObjectUuid") java.util.UUID digitalObjectUuid)
    • addDigitalObjects

      @PostMapping(value={"/v5/projects/{uuid}/digitalobjects","/v3/projects/{uuid}/digitalobjects","/latest/projects/{uuid}/digitalobjects"}, produces="application/json") public org.springframework.http.ResponseEntity addDigitalObjects​(@PathVariable("uuid") java.util.UUID projectUuid, @RequestBody java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)
    • deleteProject

      @DeleteMapping(value={"/v5/projects/{uuid}","/v3/projects/{uuid}","/latest/projects/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity deleteProject​(@PathVariable("uuid") java.util.UUID uuid)
    • findAll

      @GetMapping(value="/v5/projects", produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm)
    • findAllReducedAsList

      @GetMapping(value={"/v5/projectlist","/v2/projectlist","/latest/projectlist"}, produces="application/json") public java.util.List<de.digitalcollections.model.identifiable.entity.Project> findAllReducedAsList()
    • findByIdentifier

      @GetMapping(value={"/v5/projects/identifier/{namespace}:{id}","/v3/projects/identifier/{namespace}:{id}","/latest/projects/identifier/{namespace}:{id}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Project findByIdentifier​(@PathVariable java.lang.String namespace, @PathVariable java.lang.String id) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • findByUuid

      @GetMapping(value={"/v5/projects/{uuid}","/v2/projects/{uuid}","/latest/projects/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Project> findByUuid​(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • getDigitalObjects

      @GetMapping(value="/v5/projects/{uuid}/digitalobjects", produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> getDigitalObjects​(@PathVariable("uuid") java.util.UUID projectUuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize)
    • removeDigitalObject

      @DeleteMapping(value={"/v5/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/v3/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/latest/projects/{uuid}/digitalobjects/{digitalObjectUuid}"}, produces="application/json") public org.springframework.http.ResponseEntity removeDigitalObject​(@PathVariable("uuid") java.util.UUID projectUuid, @PathVariable("digitalObjectUuid") java.util.UUID digitalObjectUuid)
    • save

      @PostMapping(value={"/v5/projects","/v2/projects","/latest/projects"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Project save​(@RequestBody de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • saveDigitalObjects

      @PutMapping(value={"/v5/projects/{uuid}/digitalobjects","/v3/projects/{uuid}/digitalobjects","/latest/projects/{uuid}/digitalobjects"}, produces="application/json") public org.springframework.http.ResponseEntity saveDigitalObjects​(@PathVariable("uuid") java.util.UUID projectUuid, @RequestBody java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)
    • update

      @PutMapping(value={"/v5/projects/{uuid}","/v2/projects/{uuid}","/latest/projects/{uuid}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.Project update​(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • getLanguages

      @GetMapping(value={"/v5/projects/languages","/v3/projects/languages","/latest/projects/languages"}, produces="application/json") public java.util.List<java.util.Locale> getLanguages()