public class SubjectAreaGlossaryImpl extends Object implements SubjectAreaGlossary
| Constructor and Description |
|---|
SubjectAreaGlossaryImpl(String omasServerURL)
Default Constructor used once a connector is created.
|
| Modifier and Type | Method and Description |
|---|---|
Glossary |
createGlossary(String userid,
Glossary suppliedGlossary)
Create a Glossary.
|
Glossary |
deleteGlossary(String userid,
String guid)
Delete a Glossary instance
The deletion of a glossary is only allowed if there is no glossary content (i.e.
|
Glossary |
getGlossaryByGuid(String userid,
String guid)
Get a glossary by guid.
|
Glossary |
getGlossaryByName(String userid,
String name)
Get a Glossary by name
Glossaries should have unique names.
|
void |
purgeGlossary(String userid,
String guid)
Purge a Glossary instance
The purge of a glossary is only allowed if there is no glossary content (i.e.
|
Glossary |
replaceGlossary(String userid,
String guid,
Glossary suppliedGlossary)
Replace a Glossary.
|
Glossary |
updateGlossary(String userid,
String guid,
Glossary suppliedGlossary)
Update a Glossary.
|
public SubjectAreaGlossaryImpl(String omasServerURL)
omasServerURL - - unique id for the connector instancepublic Glossary createGlossary(String userid, Glossary suppliedGlossary) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
Valid nodeTypes for this request are:
createGlossary in interface SubjectAreaGlossaryuserid - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to createUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied guid was not recognisedClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic Glossary getGlossaryByGuid(String userid, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
getGlossaryByGuid in interface SubjectAreaGlossaryuserid - userid under which the request is performedguid - guid of the glossary to getUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic Glossary getGlossaryByName(String userid, String name) throws MetadataServerUncontactableException, UnrecognizedNameException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
userid - userid under which the request is performedname - name of the glossary to getUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedNameException - the supplied name was not recognisedFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic Glossary replaceGlossary(String userid, String guid, Glossary suppliedGlossary) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
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.
replaceGlossary in interface SubjectAreaGlossaryuserid - 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.FunctionNotSupportedException - Function not supportedInvalidParameterException - one of the parameters is null or invalid.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverUnrecognizedNameExceptionpublic Glossary updateGlossary(String userid, String guid, Glossary suppliedGlossary) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
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.
updateGlossary in interface SubjectAreaGlossaryuserid - 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.FunctionNotSupportedException - Function not supportedInvalidParameterException - one of the parameters is null or invalid.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverUnrecognizedNameExceptionpublic Glossary deleteGlossary(String userid, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
deleteGlossary in interface SubjectAreaGlossaryuserid - userid under which the request is performedguid - guid of the glossary to be deleted.UnrecognizedGUIDException - the supplied guid was not recognisedUserNotAuthorizedException - the requesting user is not authorized to issue this request.FunctionNotSupportedException - Function not supported this indicates that a soft delete was issued but the repository does not support it.InvalidParameterException - one of the parameters is null or invalid.EntityNotDeletedException - a delete was issued but the glossary was not deleted.MetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionpublic void purgeGlossary(String userid, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, GUIDNotPurgedException, UnexpectedResponseException
purgeGlossary in interface SubjectAreaGlossaryuserid - userid under which the request is performedguid - guid of the glossary to be deleted.UnrecognizedGUIDException - the supplied guid was not recognisedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.GUIDNotPurgedException - a hard delete was issued but the glossary was not purgedMetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionCopyright © 2018 ODPi. All rights reserved.