public class SubjectAreaGlossaryImpl extends SubjectAreaBaseImpl implements SubjectAreaGlossary
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
SubjectAreaGlossaryImpl(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
| 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
|
List<Glossary> |
findGlossary(String userId,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Glossary
|
Glossary |
getGlossaryByGuid(String userId,
String guid)
Get a glossary by guid.
|
List<Line> |
getGlossaryRelationships(String userId,
String guid,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
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.
|
deleteEntityRESTCall, deleteRelationshipRESTCall, encodeQueryProperty, findRESTCall, getByIdRESTCall, getRelationships, postRESTCall, purgeEntityRESTCall, purgeRelationshipRESTCall, putRESTCall, restoreRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCallpublic SubjectAreaGlossaryImpl(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public Glossary createGlossary(String userId, Glossary suppliedGlossary) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaGlossaryGlossaries 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.
createGlossary in interface SubjectAreaGlossaryuserId - unique identifier for requesting user, under which the request is performedsuppliedGlossary - Glossary to createExceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.UnrecognizedGUIDException - the supplied guid was not recognisedClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Glossary getGlossaryByGuid(String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaGlossarygetGlossaryByGuid in interface SubjectAreaGlossaryuserId - userId under which the request is performedguid - guid of the glossary to getExceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverUnrecognizedGUIDException - 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.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - Property Server Exception
Client library Exceptions
public List<Line> getGlossaryRelationships(String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaGlossarygetGlossaryRelationships in interface SubjectAreaGlossaryuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to getasOfTime - the relationships returned as they were at this time. null indicates at the current time.offset - 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.
0 means there is not limit to the page sizesequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.Exceptions returned by the server
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverMetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
public List<Glossary> findGlossary(String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaGlossaryfindGlossary in interface SubjectAreaGlossaryuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching glossary properties. If not specified then all glossaries are returned.asOfTime - Glossaries returned as they were at this time. null indicates at the current time.offset - 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.
0 means there is no limit to the page sizesequencingOrder - the sequencing order for the results.sequencingProperty - the name of the property that should be used to sequence the results.Exceptions returned by the server
MetadataServerUncontactableException - Unable to contact the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Glossary replaceGlossary(String userId, String guid, Glossary suppliedGlossary) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
SubjectAreaGlossaryIf 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 updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic Glossary updateGlossary(String userId, String guid, Glossary suppliedGlossary) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
SubjectAreaGlossaryIf 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 updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic Glossary deleteGlossary(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException, PropertyServerException
SubjectAreaGlossaryThe 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.
deleteGlossary in interface SubjectAreaGlossaryuserId - userId under which the request is performedguid - guid of the glossary to be deleted.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.UnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported this indicates that a soft delete was issued but the repository does not support it.UnexpectedResponseException - an unexpected response was returned from the serverEntityNotDeletedException - a delete was issued but the glossary was not deleted.PropertyServerException - property server exception
Client library Exceptions
public void purgeGlossary(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, EntityNotPurgedException, UnexpectedResponseException, FunctionNotSupportedException, PropertyServerException
SubjectAreaGlossaryThe 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.
purgeGlossary in interface SubjectAreaGlossaryuserId - userId under which the request is performedguid - guid of the glossary to be deleted.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.MetadataServerUncontactableException - Unable to contact the serverUnrecognizedGUIDException - the supplied guid was not recognisedEntityNotPurgedException - a hard delete was issued but the glossary was not purgedUnexpectedResponseException - an unexpected response was returned from the serverFunctionNotSupportedException - Function not supportedPropertyServerException - property server exception
Client library Exceptions
public Glossary restoreGlossary(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaGlossaryRestore 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.
restoreGlossary in interface SubjectAreaGlossaryuserId - unique identifier for requesting user, under which the request is performedguid - guid of the glossary to restoreInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - the requesting user is not authorized to issue this request.MetadataServerUncontactableException - Unable to contact the serverUnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported this indicates that a restore was issued but the repository does not support it.UnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
Copyright © 2018–2020 ODPi. All rights reserved.