public interface SubjectAreaTerm
| 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
A 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.
|
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
A purge means that the term will not exist after the operation.
|
Term |
replaceTerm(String userId,
String guid,
Term suppliedTerm)
Replace a Term.
|
Term |
restoreTerm(String userId,
String guid)
Restore a Term
Restore allows the deleted Term to be made active again.
|
Term |
updateTerm(String userId,
String guid,
Term suppliedTerm)
Update a Term.
|
Term createTerm(String userId, Term suppliedTerm) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
userId - userId under which the request is performedsuppliedTerm - Term to createUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.ClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverTerm getTermByGuid(String userId, String guid) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
userId - userId under which the request is performedguid - guid of the term to getUserNotAuthorizedException - 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 ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverList<Line> getTermRelationships(String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
userId - 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.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 ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverTerm replaceTerm(String userId, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
Status is not updated using this call. The GovernanceAction content if specified replaces what is on the server.
userId - userId under which the request is performedguid - guid of the term to updatesuppliedTerm - term 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 serverTerm updateTerm(String userId, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
If 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.
userId - userId under which the request is performedguid - guid of the term to updatesuppliedTerm - term 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 serverTerm deleteTerm(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnrecognizedGUIDException, UnexpectedResponseException, EntityNotDeletedException
userId - userId under which the request is performedguid - guid of the term to be deleted.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.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.EntityNotDeletedException - a soft delete was issued but the relationship was not deleted.UnrecognizedGUIDException - the supplied guid was not recognised
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the servervoid purgeTerm(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, GUIDNotPurgedException, FunctionNotSupportedException, UnrecognizedGUIDException, UnexpectedResponseException
userId - userId under which the request is performedguid - guid of the term to be deleted.UserNotAuthorizedException - 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 term was not purgedUnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverTerm restoreTerm(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException
userId - 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 serverList<Term> findTerm(String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
userId - 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 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 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.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 ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverCopyright © 2018–2020 ODPi. All rights reserved.