@RestController @RequestMapping(value="/open-metadata/access-services/subject-area") public class SubjectAreaCategoryRESTResource extends SubjectAreaRESTServices
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaCategoryRESTResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
createGlossary(String userid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category suppliedCategory)
Create a Category.
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
deleteCategory(String userid,
String guid,
Boolean isPurge)
Delete a Category instance
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
getCategoryByGuid(String userid,
String guid)
Get a Category
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
updateCategory(String userid,
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category suppliedCategory,
Boolean isReplace)
Update a Category
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic SubjectAreaCategoryRESTResource()
@RequestMapping(method=POST,
path="/users/{userid}/categories")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse createGlossary(@PathVariable
String userid,
@RequestBody
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category suppliedCategory)
Valid nodeTypes for this request are:
Failure to create the Categories classifications, link to its glossary or its icon, results in the create failing and the category being deleted
userid - unique identifier for requesting user, under which the request is performedsuppliedCategory - category to create@RequestMapping(method=GET,
path="/users/{userid}/categories/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse getCategoryByGuid(@PathVariable
String userid,
@PathVariable
String guid)
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to get@RequestMapping(method=PUT,
path="/users/{userid}/categories/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse updateCategory(@PathVariable
String userid,
@PathVariable
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category suppliedCategory,
@RequestParam(value="isReplace",required=false)
Boolean isReplace)
Status is not updated using this call.
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to updatesuppliedCategory - category to be updatedisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.
when not successful the following Exception responses can occur
@RequestMapping(method=DELETE,
path="/users/{userid}/categories/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse deleteCategory(@PathVariable
String userid,
@PathVariable
String guid,
@RequestParam(value="isPurge",required=false)
Boolean isPurge)
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
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to be deleted.isPurge - true indicates a hard delete, false is a soft delete.Copyright © 2018 ODPi. All rights reserved.