public class SubjectAreaGlossaryRESTServices extends SubjectAreaRESTServicesInstance
| Constructor and Description |
|---|
SubjectAreaGlossaryRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse<Glossary> |
createGlossary(String serverName,
String userId,
Glossary suppliedGlossary)
Create a Glossary.
|
SubjectAreaOMASAPIResponse<Glossary> |
deleteGlossary(String serverName,
String userId,
String guid,
Boolean isPurge)
Delete a Glossary instance
|
SubjectAreaOMASAPIResponse<Glossary> |
findGlossary(String serverName,
String userId,
String searchCriteria,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Glossary
|
SubjectAreaOMASAPIResponse<Glossary> |
getGlossaryByGuid(String serverName,
String userId,
String guid)
Get a glossary by guid.
|
SubjectAreaOMASAPIResponse<Category> |
getGlossaryCategories(String serverName,
String userId,
String guid,
Boolean onlyTop,
Integer startingFrom,
Integer pageSize)
Get the Categories owned by this glossary.
|
SubjectAreaOMASAPIResponse<Line> |
getGlossaryRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
Integer startingFrom,
Integer pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Glossary relationships
|
SubjectAreaOMASAPIResponse<Term> |
getGlossaryTerms(String serverName,
String userId,
String guid,
Integer startingFrom,
Integer pageSize)
Get terms that are owned by this glossary
|
SubjectAreaOMASAPIResponse<Glossary> |
restoreGlossary(String serverName,
String userId,
String guid)
Restore a Glossary
|
SubjectAreaOMASAPIResponse<Glossary> |
updateGlossary(String serverName,
String userId,
String guid,
Glossary suppliedGlossary,
boolean isReplace)
Update a Glossary
|
createLine, deleteLine, getLine, restoreLine, updateLinepublic SubjectAreaGlossaryRESTServices()
public SubjectAreaOMASAPIResponse<Glossary> createGlossary(String serverName, String userId, Glossary suppliedGlossary)
Glossaries with the same name can be confusing. Best practise is to createGlossaries that have unique names. This Create call does not police that glossary names are unique. So it is possible to create Glossaries with the same name as each other.
Valid nodeTypes for this request are:
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to createpublic SubjectAreaOMASAPIResponse<Glossary> getGlossaryByGuid(String serverName, String userId, String guid)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to getpublic SubjectAreaOMASAPIResponse<Glossary> findGlossary(String serverName, String userId, String searchCriteria, Date asOfTime, Integer startingFrom, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching Glossary property values. If not specified then all glossaries are returned.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> getGlossaryRelationships(String serverName, String userId, String guid, Date asOfTime, Integer startingFrom, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - 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<Glossary> updateGlossary(String serverName, String userId, String guid, Glossary suppliedGlossary, boolean isReplace)
If the caller has chosen to incorporate the glossary name in their Glossary Terms or Categories qualified name, renaming the glossary will cause those qualified names to mismatch the Glossary name. If the caller has chosen to incorporate the glossary qualifiedName in their Glossary Terms or Categories qualified name, changing the qualified name of the glossary will cause those qualified names to mismatch the Glossary name. Status is not updated using this call.
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to updatesuppliedGlossary - glossary 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<Glossary> deleteGlossary(String serverName, String userId, String guid, Boolean isPurge)
The deletion of a glossary is only allowed if there is no glossary 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 glossary 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 glossary will not exist after the operation. when not successful the following Exceptions can occur
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to be deleted.isPurge - true indicates a hard delete, false is a soft delete.public SubjectAreaOMASAPIResponse<Glossary> restoreGlossary(String serverName, String userId, String guid)
Restore allows the deleted Glossary to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to restorepublic SubjectAreaOMASAPIResponse<Term> getGlossaryTerms(String serverName, String userId, String guid, Integer startingFrom, Integer pageSize)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the category to get termsstartingFrom - the starting element number for this set of results. This is used when retrieving elementspageSize - the maximum number of elements that can be returned on this request.public SubjectAreaOMASAPIResponse<Category> getGlossaryCategories(String serverName, String userId, String guid, Boolean onlyTop, Integer startingFrom, Integer pageSize)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the category to get termsonlyTop - when only the top categories (those categories without parents) are returned.startingFrom - the starting element number for this set of results. This is used when retrieving elementspageSize - the maximum number of elements that can be returned on this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.