@RestController @RequestMapping(value="/open-metadata/access-services/subject-area") public class SubjectAreaTermRESTResource extends SubjectAreaRESTServices
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaTermRESTResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
createTerm(String userId,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term suppliedTerm)
Create a Term
The qualifiedName can be specified and will be honoured.
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
deleteTerm(String userId,
String guid,
Boolean isPurge)
Delete a Term instance
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
getTermByGuid(String userId,
String guid)
Get a Term
|
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse |
updateTerm(String userId,
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term suppliedTerm,
Boolean isReplace)
Update a Term
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic SubjectAreaTermRESTResource()
@RequestMapping(method=POST,
path="/users/{userId}/terms")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse createTerm(@PathVariable
String userId,
@RequestBody
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term suppliedTerm)
userId - userIdsuppliedTerm - term to create@RequestMapping(method=GET,
path="/users/{userId}/terms/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse getTermByGuid(@PathVariable
String userId,
@PathVariable
String guid)
userId - userId under which the request is performedguid - guid of the term to get@RequestMapping(method=PUT,
path="/users/{userId}/terms/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse updateTerm(@PathVariable
String userId,
@PathVariable
String guid,
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term suppliedTerm,
@RequestParam(value="isReplace",required=false)
Boolean isReplace)
Status is not updated using this call.
userId - userId under which the request is performedguid - guid of the term to updatesuppliedTerm - term to be updatedisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.@RequestMapping(method=DELETE,
path="/users/{userId}/terms/{guid}")
public org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse deleteTerm(@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 term 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 term will not exist after the operation. when not successful the following Exceptions can occur
userId - userId under which the request is performedguid - guid of the term to be deleted.isPurge - true indicates a hard delete, false is a soft delete.Copyright © 2018 ODPi. All rights reserved.