Class ProjectController


  • @RestController
    public class ProjectController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity addDigitalObject​(UUID projectUuid, UUID digitalObjectUuid)  
      org.springframework.http.ResponseEntity addDigitalObjects​(UUID projectUuid, List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)  
      org.springframework.http.ResponseEntity delete​(UUID uuid)  
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project> find​(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm)  
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.DigitalObject> findDigitalObjects​(UUID projectUuid, int pageNumber, int pageSize, String searchTerm)  
      de.digitalcollections.model.identifiable.entity.Project getByIdentifier​(String namespace, String id)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.Project> getByUuid​(UUID uuid, Locale pLocale)  
      List<Locale> getLanguages()  
      org.springframework.http.ResponseEntity removeDigitalObject​(UUID projectUuid, 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 setDigitalObjects​(UUID projectUuid, List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)  
      de.digitalcollections.model.identifiable.entity.Project update​(UUID uuid, de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors)  
    • Constructor Detail

      • ProjectController

        public ProjectController​(ProjectService projectService)
    • Method Detail

      • addDigitalObject

        @PostMapping(value={"/v6/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/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")
                                                                        UUID projectUuid,
                                                                        @PathVariable("digitalObjectUuid")
                                                                        UUID digitalObjectUuid)
      • addDigitalObjects

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

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

        @GetMapping(value="/v6/projects",
                    produces="application/json")
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Project> find​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                  int pageNumber,
                                                                                                                                  @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                  int pageSize,
                                                                                                                                  @RequestParam(name="sortBy",required=false)
                                                                                                                                  List<de.digitalcollections.model.list.sorting.Order> sortBy,
                                                                                                                                  @RequestParam(name="searchTerm",required=false)
                                                                                                                                  String searchTerm)
      • findDigitalObjects

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

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

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

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

        @DeleteMapping(value={"/v6/projects/{uuid}/digitalobjects/{digitalObjectUuid}","/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")
                                                                           UUID projectUuid,
                                                                           @PathVariable("digitalObjectUuid")
                                                                           UUID digitalObjectUuid)
      • setDigitalObjects

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

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