public class SubjectAreaTermRESTServices extends SubjectAreaRESTServices
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaTermRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
createTerm(String userid,
Term suppliedTerm)
Create a Term
The name needs to be specified - as this is the main identifier for the term.
|
SubjectAreaOMASAPIResponse |
deleteTerm(String userid,
String guid,
Boolean isPurge)
Delete a Term instance
|
SubjectAreaOMASAPIResponse |
getTermByGuid(String userid,
String guid)
Get a Term
|
SubjectAreaOMASAPIResponse |
updateTerm(String userid,
String guid,
Term suppliedTerm,
boolean isReplace)
Update a Term
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic SubjectAreaTermRESTServices()
public SubjectAreaOMASAPIResponse createTerm(String userid, Term suppliedTerm)
userid - useridsuppliedTerm - term to createpublic SubjectAreaOMASAPIResponse getTermByGuid(String userid, String guid)
userid - unique identifier for requesting user, under which the request is performedguid - guid of the term to getpublic SubjectAreaOMASAPIResponse updateTerm(String userid, String guid, Term suppliedTerm, 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.public SubjectAreaOMASAPIResponse deleteTerm(String userid, String guid, 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 Exception responses 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.