Class ProjectController
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.ResponseEntityaddDigitalObject(java.util.UUID projectUuid, java.util.UUID digitalObjectUuid)org.springframework.http.ResponseEntityaddDigitalObjects(java.util.UUID projectUuid, java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)org.springframework.http.ResponseEntitydeleteProject(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.ProjectfindByIdentifier(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.ResponseEntityremoveDigitalObject(java.util.UUID projectUuid, java.util.UUID digitalObjectUuid)de.digitalcollections.model.identifiable.entity.Projectsave(de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors)org.springframework.http.ResponseEntitysaveDigitalObjects(java.util.UUID projectUuid, java.util.List<de.digitalcollections.model.identifiable.entity.DigitalObject> digitalObjects)de.digitalcollections.model.identifiable.entity.Projectupdate(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Project project, org.springframework.validation.BindingResult errors)
-
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()
-