public class GlossaryAuthorViewTermRESTServices extends BaseGlossaryAuthorView
instanceHandler, invalidParameterHandler, restCallLogger| Constructor and Description |
|---|
GlossaryAuthorViewTermRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse<Term> |
createTerm(String serverName,
String userId,
Term suppliedTerm)
Create a Term
|
SubjectAreaOMASAPIResponse<Term> |
deleteTerm(String serverName,
String userId,
String guid,
boolean isPurge)
Delete a Term instance
|
SubjectAreaOMASAPIResponse<Term> |
findTerm(String serverName,
String userId,
Date asOfTime,
String searchCriteria,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Term
|
SubjectAreaOMASAPIResponse<Category> |
getCategories(String serverName,
String userId,
String guid,
Integer startingFrom,
Integer pageSize) |
SubjectAreaOMASAPIResponse<Term> |
getTerm(String serverName,
String userId,
String guid)
Get a term.
|
SubjectAreaOMASAPIResponse<Line> |
getTermRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Term relationships
|
SubjectAreaOMASAPIResponse<Term> |
restoreTerm(String serverName,
String userId,
String guid)
Restore a Term
|
SubjectAreaOMASAPIResponse<Term> |
updateTerm(String serverName,
String userId,
String guid,
Term term,
boolean isReplace)
Update a Term
|
getFindRequest, getResponseForExceptionpublic GlossaryAuthorViewTermRESTServices()
public SubjectAreaOMASAPIResponse<Term> createTerm(String serverName, String userId, Term suppliedTerm)
serverName - name of the local view server.userId - userId under which the request is performedsuppliedTerm - Term to createpublic SubjectAreaOMASAPIResponse<Term> getTerm(String serverName, String userId, String guid)
serverName - name of the local view server.userId - user identifierguid - guid of the term to getpublic SubjectAreaOMASAPIResponse<Term> findTerm(String serverName, String userId, Date asOfTime, String searchCriteria, Integer startingFrom, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
serverName - name of the local view server.userId - user identifiersearchCriteria - String expression matching Term property values .asOfTime - the glossaries 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.public SubjectAreaOMASAPIResponse<Line> getTermRelationships(String serverName, String userId, String guid, Date asOfTime, Integer startingFrom, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
serverName - name of the local view server.userId - user identifierguid - guid of the term 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.public SubjectAreaOMASAPIResponse<Term> updateTerm(String serverName, String userId, String guid, Term term, boolean isReplace)
Status is not updated using this call.
serverName - name of the local view server.userId - user identifierguid - guid of the term to updateterm - term to updateisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.public SubjectAreaOMASAPIResponse<Term> deleteTerm(String serverName, String userId, String guid, boolean isPurge)
The deletion of a term is only allowed if there is no term 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 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
serverName - name of the local view server.userId - user identifierguid - guid of the term to be deleted.isPurge - true indicates a hard delete, false is a soft delete.public SubjectAreaOMASAPIResponse<Term> restoreTerm(String serverName, String userId, String guid)
Restore allows the deleted Term to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
serverName - name of the local view server.userId - user identifierguid - guid of the term to restoreCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.