@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/view-services/glossary-author/users/{userId}/projects")
public class GlossaryAuthorViewProjectRESTResource
extends Object
| Constructor and Description |
|---|
GlossaryAuthorViewProjectRESTResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse<Project> |
createProject(String serverName,
String userId,
Project suppliedProject)
Create a Project.
|
SubjectAreaOMASAPIResponse<Project> |
deleteProject(String serverName,
String userId,
String guid,
Boolean isPurge)
Delete a Project instance
|
SubjectAreaOMASAPIResponse<Project> |
findProject(String serverName,
String userId,
String searchCriteria,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Project
|
SubjectAreaOMASAPIResponse<Project> |
getProject(String serverName,
String userId,
String guid)
Get a project.
|
SubjectAreaOMASAPIResponse<Line> |
getProjectRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Project relationships.
|
SubjectAreaOMASAPIResponse<Project> |
restoreProject(String serverName,
String userId,
String guid)
Restore a Project
|
SubjectAreaOMASAPIResponse<Project> |
updateProject(String serverName,
String userId,
String guid,
Project suppliedProject,
Boolean isReplace)
Update a Project
|
public GlossaryAuthorViewProjectRESTResource()
@PostMapping public SubjectAreaOMASAPIResponse<Project> createProject(@PathVariable String serverName, @PathVariable String userId, @RequestBody Project suppliedProject)
Projects with the same name can be confusing. Best practise is to create projects that have unique names. This Create call does not police that Project names are unique. So it is possible to create projects with the same name as each other.
Projects that are created using this call will be GlossaryProjects.
serverName - name of the local server.userId - useridsuppliedProject - Project to create.@GetMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Project> getProject(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - local UI server nameuserId - useridguid - guid of the project to get@GetMapping public SubjectAreaOMASAPIResponse<Project> findProject(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value="searchCriteria",required=false) String searchCriteria, @RequestParam(value="asOfTime",required=false) Date asOfTime, @RequestParam(value="startingFrom",required=false) Integer startingFrom, @RequestParam(value="pageSize",required=false) Integer pageSize, @RequestParam(value="sequencingOrder",required=false) SequencingOrder sequencingOrder, @RequestParam(value="sequencingProperty",required=false) String sequencingProperty)
serverName - local UI server nameuserId - useridsearchCriteria - String expression matching Project property values .asOfTime - the projects returned as they were at this time. null indicates at the current time.startingFrom - 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.sequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.@GetMapping(path="/{guid}/relationships")
public SubjectAreaOMASAPIResponse<Line> getProjectRelationships(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestParam(value="asOfTime",required=false)
Date asOfTime,
@RequestParam(value="startingFrom",required=false)
Integer startingFrom,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sequencingOrder",required=false)
SequencingOrder sequencingOrder,
@RequestParam(value="sequencingProperty",required=false)
String sequencingProperty)
serverName - local UI server nameuserId - useridguid - guid of the project to getasOfTime - the relationships returned as they were at this time. null indicates at the current time. If specified, the date is in milliseconds since 1970-01-01 00:00:00.startingFrom - 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.sequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.@PutMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Project> updateProject(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
Project suppliedProject,
@RequestParam(value="isReplace",required=false,defaultValue="false")
Boolean isReplace)
Status is not updated using this call.
serverName - local UI server nameuserId - useridguid - guid of the project to updatesuppliedProject - project to updateisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.@DeleteMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Project> deleteProject(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestParam(value="isPurge",required=false,defaultValue="false")
Boolean isPurge)
The deletion of a project is only allowed if there is no project content (i.e. no terms or categories).
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
serverName - local UI server nameuserId - useridguid - guid of the project to be deleted.isPurge - true indicates a hard delete, false is a soft delete.@PostMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Project> restoreProject(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
Restore allows the deleted Project to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
serverName - local UI server nameuserId - useridguid - guid of the project to restoreCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.