public class GlossaryHandler extends Object
| Constructor and Description |
|---|
GlossaryHandler(SubjectAreaGlossary subjectAreaGlossary)
initialize the glossary handler with the subjectarea glossary object.
|
| Modifier and Type | Method and Description |
|---|---|
Glossary |
createGlossary(String userId,
Glossary suppliedGlossary)
Create a Glossary.
|
void |
deleteGlossary(String userId,
String guid)
Delete a Glossary instance
|
List<Glossary> |
findGlossary(String userId,
FindRequest findRequest)
Find Glossary
|
Glossary |
getGlossaryByGuid(String userId,
String guid)
Get a glossary by guid.
|
List<Line> |
getGlossaryRelationships(String userId,
String guid,
FindRequest findRequest)
Get Glossary relationships
|
void |
purgeGlossary(String userId,
String guid)
Purge a Glossary instance
|
Glossary |
replaceGlossary(String userId,
String guid,
Glossary suppliedGlossary)
Replace a Glossary.
|
Glossary |
restoreGlossary(String userId,
String guid)
Restore a Glossary
|
Glossary |
updateGlossary(String userId,
String guid,
Glossary suppliedGlossary)
Update a Glossary.
|
public GlossaryHandler(SubjectAreaGlossary subjectAreaGlossary)
subjectAreaGlossary - The SubjectAreaDefinition Open Metadata Access Service (OMAS) API for glossaries. This is the same as the
The SubjectAreaDefinition Open Metadata View Service (OMVS) API for glossaries.public Glossary createGlossary(String userId, Glossary suppliedGlossary) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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.
userId - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to createExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic Glossary getGlossaryByGuid(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId under which the request is performedguid - guid of the glossary to getExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic List<Line> getGlossaryRelationships(String userId, String guid, FindRequest findRequest) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to getfindRequest - FindRequestExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic List<Glossary> findGlossary(String userId, FindRequest findRequest) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - unique identifier for requesting user, under which the request is performedfindRequest - FindRequestExceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic Glossary replaceGlossary(String userId, String guid, Glossary suppliedGlossary) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 - userId under which the request is performedguid - guid of the glossary to updatesuppliedGlossary - glossary to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic Glossary updateGlossary(String userId, String guid, Glossary suppliedGlossary) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 - userId under which the request is performedguid - guid of the glossary to updatesuppliedGlossary - glossary to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic void deleteGlossary(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
The deletion of a glossary is only allowed if there is no glossary content (i.e. no terms or categories).
A delete (also known as 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.
userId - userId under which the request is performedguid - guid of the glossary to be deleted.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic void purgeGlossary(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
The purge of a glossary is only allowed if there is no glossary content (i.e. no terms or categories).
A purge means that the glossary will not exist after the operation.
userId - userId under which the request is performedguid - guid of the glossary to be deleted.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server Exceptionpublic Glossary restoreGlossary(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.
userId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to restoreUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - Property Server ExceptionCopyright © 2018–2020 ODPi. All rights reserved.