public class SubjectAreaTermImpl extends SubjectAreaBaseImpl implements SubjectAreaTerm
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
SubjectAreaTermImpl(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
| Modifier and Type | Method and Description |
|---|---|
Term |
createTerm(String userId,
Term suppliedTerm)
Create a Term
|
Term |
deleteTerm(String userId,
String guid)
Delete a Term instance
|
List<Term> |
findTerm(String userId,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Term
|
Term |
getTermByGuid(String userId,
String guid)
Get a term by guid.
|
List<Line> |
getTermRelationships(String userId,
String guid,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Term relationships
|
void |
purgeTerm(String userId,
String guid)
Purge a Term instance
|
Term |
replaceTerm(String userId,
String guid,
Term suppliedTerm)
Replace a Term.
|
Term |
restoreTerm(String userId,
String guid)
Restore a Term
|
Term |
updateTerm(String userId,
String guid,
Term suppliedTerm)
Update a Term.
|
deleteEntityRESTCall, deleteRelationshipRESTCall, encodeQueryProperty, findRESTCall, getByIdRESTCall, getRelationships, postRESTCall, purgeEntityRESTCall, purgeRelationshipRESTCall, putRESTCall, restoreRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCallpublic SubjectAreaTermImpl(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 Term createTerm(String userId, Term suppliedTerm) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaTermcreateTerm in interface SubjectAreaTermuserId - userId under which the request is performedsuppliedTerm - Term 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.ClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supportedUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Term getTermByGuid(String userId, String guid) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
SubjectAreaTermgetTermByGuid in interface SubjectAreaTermuserId - userId under which the request is performedguid - guid of the term to getExceptions 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 List<Line> getTermRelationships(String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaTermgetTermRelationships in interface SubjectAreaTermuserId - 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.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 Term replaceTerm(String userId, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaTermStatus is not updated using this call. The GovernanceAction content if specified replaces what is on the server.
replaceTerm in interface SubjectAreaTermuserId - userId under which the request is performedguid - guid of the term to updatesuppliedTerm - term to be updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.FunctionNotSupportedException - Function not supportedInvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
public Term updateTerm(String userId, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException
SubjectAreaTermIf the caller has chosen to incorporate the term name in their Term Terms or Categories qualified name, renaming the term will cause those qualified names to mismatch the Term name. If the caller has chosen to incorporate the term qualifiedName in their Term Terms or Categories qualified name, changing the qualified name of the term will cause those qualified names to mismatch the Term name. Status is not updated using this call. The GovernanceAction content if specified replaces what is on the server.
updateTerm in interface SubjectAreaTermuserId - userId under which the request is performedguid - guid of the term to updatesuppliedTerm - term to be updatedUnexpectedResponseException - an unexpected response was returned from the serverUserNotAuthorizedException - the requesting user is not authorized to issue this request.FunctionNotSupportedException - Function not supportedInvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
public Term deleteTerm(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnrecognizedGUIDException, UnexpectedResponseException, EntityNotDeletedException, PropertyServerException
SubjectAreaTermA delete (also known as a soft delete) means that the term instance will exist in a deleted state in the repository after the delete operation. This means that it is possible to undo the delete.
deleteTerm in interface SubjectAreaTermuserId - userId under which the request is performedguid - guid of the term to be deleted.InvalidParameterException - one of the parameters is null or invalid.MetadataServerUncontactableException - not able to communicate with a Metadata respository service. There is a problem retrieving properties from the metadata repository.UserNotAuthorizedException - 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.UnrecognizedGUIDException - the supplied guid was not recognisedUnexpectedResponseException - an unexpected response was returned from the serverEntityNotDeletedException - a soft delete was issued but the relationship was not deleted.PropertyServerException - property server exception
Client library Exceptions
public void purgeTerm(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, EntityNotPurgedException, PropertyServerException
SubjectAreaTermA purge means that the term will not exist after the operation.
purgeTerm in interface SubjectAreaTermuserId - userId under which the request is performedguid - guid of the term 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 recognisedFunctionNotSupportedException - Function not supportedEntityNotPurgedException - a hard delete was issued but the term was not purgedPropertyServerException - property server exception
Client library Exceptionspublic Term restoreTerm(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
Restore allows the deleted Term to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
restoreTerm in interface SubjectAreaTermuserId - unique identifier for requesting user, under which the request is performedguid - guid of the term to restoreUnrecognizedGUIDException - 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 supported this indicates that a soft delete was issued but the repository does not support it.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public List<Term> findTerm(String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
findTerm in interface SubjectAreaTermuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching Term property values (this does not include the GlossarySummary content).asOfTime - the Terms 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
UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.FunctionNotSupportedException - Function not supported
Client library Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
Copyright © 2018–2020 ODPi. All rights reserved.