public class SubjectAreaGlossaryRESTServices extends SubjectAreaRESTServices
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY_ANCHOR_RELATIONSHIP_GUID |
static String |
CATEGORY_HIERARCHY_LINK_GUID |
static String |
GLOSSARY_TYPE_GUID |
static String |
TERM_ANCHOR_RELATIONSHIP_GUID |
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaGlossaryRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
createGlossary(String userid,
Glossary suppliedGlossary)
Create a Glossary.
|
SubjectAreaOMASAPIResponse |
deleteGlossary(String userid,
String guid,
Boolean isPurge)
Delete a Glossary instance
|
SubjectAreaOMASAPIResponse |
getGlossaryByGuid(String userid,
String guid)
Get a glossary by guid.
|
SubjectAreaOMASAPIResponse |
getGlossaryByName(String userid,
String name)
Get a Glossary by name
|
SubjectAreaOMASAPIResponse |
updateGlossary(String userid,
String guid,
Glossary suppliedGlossary,
boolean isReplace)
Update a Glossary
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic static final String GLOSSARY_TYPE_GUID
public static final String TERM_ANCHOR_RELATIONSHIP_GUID
public static final String CATEGORY_ANCHOR_RELATIONSHIP_GUID
public static final String CATEGORY_HIERARCHY_LINK_GUID
public SubjectAreaGlossaryRESTServices()
public SubjectAreaOMASAPIResponse createGlossary(String userid, Glossary suppliedGlossary)
Valid nodeTypes for this request are:
userid - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to createpublic SubjectAreaOMASAPIResponse getGlossaryByGuid(String userid, String guid)
userid - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to getpublic SubjectAreaOMASAPIResponse updateGlossary(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.
userid - 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 getGlossaryByName(String userid, String name)
Glossaries should have unique names. If repositories were not able to contact each other on the network, it is possible that glossaries of the same name might be added. If this has occured this operation may not retun the glossary you are interested in. The guid of the glossary is the way to uniquely identify a glossary; a get for glossary by guid can be issued to find glossaries with particular guids.
userid - unique identifier for requesting user, under which the request is performedname - find the glossary with this name.public SubjectAreaOMASAPIResponse deleteGlossary(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
userid - 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.Copyright © 2018 ODPi. All rights reserved.