@RestController @RequestMapping(value="/api/subject-area/projects") public class SubjectAreaProjectController extends SecureController
| Constructor and Description |
|---|
SubjectAreaProjectController(SubjectArea subjectArea)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
createProject(Project suppliedProject,
javax.servlet.http.HttpServletRequest request)
Create a Project.
|
SubjectAreaOMASAPIResponse |
deleteProject(String guid,
Boolean isPurge,
javax.servlet.http.HttpServletRequest request)
Delete a Project instance
|
SubjectAreaOMASAPIResponse |
findProject(String searchCriteria,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty,
javax.servlet.http.HttpServletRequest request)
Find Project
|
SubjectAreaOMASAPIResponse |
getProject(String guid,
javax.servlet.http.HttpServletRequest request)
Get a project.
|
SubjectAreaOMASAPIResponse |
getProjectRelationships(String guid,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty,
javax.servlet.http.HttpServletRequest request) |
SubjectAreaOMASAPIResponse |
restoreProject(String guid,
javax.servlet.http.HttpServletRequest request)
Restore a Project
Restore allows the deleted Project to be made active again.
|
SubjectAreaOMASAPIResponse |
updateProject(String guid,
Project project,
Boolean isReplace,
javax.servlet.http.HttpServletRequest request)
Update a Project
|
getUserpublic SubjectAreaProjectController(SubjectArea subjectArea)
subjectArea - main client object for the Subject Area OMAS@PostMapping public SubjectAreaOMASAPIResponse createProject(@RequestBody Project suppliedProject, javax.servlet.http.HttpServletRequest request)
suppliedProject - Project to createrequest - HttpServletRequest the servlet request@GetMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse getProject(@PathVariable
String guid,
javax.servlet.http.HttpServletRequest request)
guid - guid of the project to getrequest - HttpServletRequest the servlet request@GetMapping public SubjectAreaOMASAPIResponse findProject(@RequestParam(value="searchCriteria",required=false) String searchCriteria, @RequestParam(value="asOfTime",required=false) Date asOfTime, @RequestParam(value="offset",required=false) Integer offset, @RequestParam(value="pageSize",required=false) Integer pageSize, @RequestParam(value="sequencingOrder",required=false) SequencingOrder sequencingOrder, @RequestParam(value="SequencingProperty",required=false) String sequencingProperty, javax.servlet.http.HttpServletRequest request)
searchCriteria - String expression matching Project property values .asOfTime - the projects returned as they were at this time. null indicates at the current time.offset - the starting element number for this set of results. This is used when retrieving elements
beyond the first page of results. Zero means the results start from the first element.pageSize - the maximum number of elements that can be returned on this request.
0 means there is no limit to the page sizesequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.request - HttpServletRequest the servlet request@GetMapping(path="/{guid}/relationships")
public SubjectAreaOMASAPIResponse getProjectRelationships(@PathVariable
String guid,
@RequestParam(value="asOfTime",required=false)
Date asOfTime,
@RequestParam(value="offset",required=false)
Integer offset,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sequencingOrder",required=false)
SequencingOrder sequencingOrder,
@RequestParam(value="SequencingProperty",required=false)
String sequencingProperty,
javax.servlet.http.HttpServletRequest request)
@PutMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse updateProject(@PathVariable
String guid,
@RequestBody
Project project,
@RequestParam(value="isReplace",required=false)
Boolean isReplace,
javax.servlet.http.HttpServletRequest request)
If the caller has chosen to incorporate the project name in their Project Terms or Categories qualified name, renaming the project will cause those qualified names to mismatch the Project name. If the caller has chosen to incorporate the project qualifiedName in their Project Terms or Categories qualified name, changing the qualified name of the project will cause those qualified names to mismatch the Project name. Status is not updated using this call.
guid - guid of the project to updateproject - project to updateisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.request - HttpServletRequest the servlet request@DeleteMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse deleteProject(@PathVariable
String guid,
@RequestParam(value="isPurge",required=false)
Boolean isPurge,
javax.servlet.http.HttpServletRequest request)
There are 2 types of deletion, a soft delete and a hard delete (also known as a purge). All repositories support hard deletes. Soft deletes support is optional. Soft delete is the default.
A soft delete means that the project instance will exist in a deleted state in the repository after the delete operation. This means that it is possible to undo the delete. A hard delete means that the project will not exist after the operation. when not successful the following Exceptions can occur
guid - guid of the project to be deleted.isPurge - true indicates a hard delete, false is a soft delete.request - HttpServletRequest the servlet request@PostMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse restoreProject(@PathVariable
String guid,
javax.servlet.http.HttpServletRequest request)
guid - guid of the project to restorerequest - HttpServletRequest the servlet requestCopyright © 2018–2020 ODPi. All rights reserved.