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.
|
Term |
getTermByGuid(String userid,
String guid)
Get a term by guid.
|
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 |
updateTerm(String userid,
String guid,
Term suppliedTerm)
Update a Term.
|
Term createTerm(String userid, Term suppliedTerm) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
userid - unique identifier for requesting user, 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 - unique identifier for requesting user, 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 serverTerm replaceTerm(String userid, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
Status is not updated using this call.
userid - unique identifier for requesting user, 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 serverUnrecognizedNameExceptionTerm updateTerm(String userid, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, 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.
userid - unique identifier for requesting user, 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 serverUnrecognizedNameExceptionTerm deleteTerm(String userid, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
userid - unique identifier for requesting user, 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.EntityNotDeletedException - a delete was issued but the term was not deleted.MetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionvoid purgeTerm(String userid, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, GUIDNotPurgedException, UnexpectedResponseException
userid - unique identifier for requesting user, 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 purgedMetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionCopyright © 2018 ODPi. All rights reserved.