@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/view-services/glossary-author/users/{userId}/categories")
public class GlossaryAuthorViewCategoryRESTResource
extends Object
| Constructor and Description |
|---|
GlossaryAuthorViewCategoryRESTResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse<Category> |
createCategory(String serverName,
String userId,
Category suppliedCategory)
Create a Category.
|
SubjectAreaOMASAPIResponse<Category> |
deleteCategory(String serverName,
String userId,
String guid,
Boolean isPurge)
Delete a Category instance
|
SubjectAreaOMASAPIResponse<Category> |
findCategory(String serverName,
String userId,
String searchCriteria,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Category
|
SubjectAreaOMASAPIResponse<Category> |
getCategory(String serverName,
String userId,
String guid)
Get a category.
|
SubjectAreaOMASAPIResponse<Line> |
getCategoryRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer offset,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Category relationships
|
SubjectAreaOMASAPIResponse<Category> |
restoreCategory(String serverName,
String userId,
String guid)
Restore a Category
|
SubjectAreaOMASAPIResponse<Category> |
updateCategory(String serverName,
String userId,
String guid,
Category suppliedCategory,
Boolean isReplace)
Update a Category
|
public GlossaryAuthorViewCategoryRESTResource()
@PostMapping public SubjectAreaOMASAPIResponse<Category> createCategory(@PathVariable String serverName, @PathVariable String userId, @RequestBody Category suppliedCategory)
Categories with the same name can be confusing. Best practise is to create categories that have unique names. This Create call does not police that Category names are unique. So it is possible to create categories with the same name as each other.
serverName - name of the local server.userId - useridsuppliedCategory - Category to create.@GetMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Category> getCategory(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - local UI server nameuserId - useridguid - guid of the category to get@GetMapping public SubjectAreaOMASAPIResponse<Category> findCategory(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value="searchCriteria",required=false) String searchCriteria, @RequestParam(value="asOfTime",required=false) Date asOfTime, @RequestParam(value="offset",required=false,defaultValue="0") Integer offset, @RequestParam(value="pageSize",required=false,defaultValue="0") 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 Category property values .asOfTime - the categories 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.@GetMapping(path="/{guid}/relationships")
public SubjectAreaOMASAPIResponse<Line> getCategoryRelationships(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestParam(value="asOfTime",required=false)
Date asOfTime,
@RequestParam(value="offset",required=false,defaultValue="0")
Integer offset,
@RequestParam(value="pageSize",required=false,defaultValue="0")
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 category 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.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 not 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.@PutMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Category> updateCategory(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
Category suppliedCategory,
@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 category to updatesuppliedCategory - category 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<Category> deleteCategory(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestParam(value="isPurge",required=false,defaultValue="false")
Boolean isPurge)
The deletion of a category is only allowed if there is no category content (i.e. no categories 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 category 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 category will not exist after the operation. when not successful the following Exceptions can occur
serverName - local UI server nameuserId - useridguid - guid of the category to be deleted.isPurge - true indicates a hard delete, false is a soft delete.@PostMapping(path="/{guid}")
public SubjectAreaOMASAPIResponse<Category> restoreCategory(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
Restore allows the deleted Category 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 category to restoreCopyright © 2018–2020 ODPi. All rights reserved.