public class SubjectAreaTermImpl extends Object implements SubjectAreaTerm
| Constructor and Description |
|---|
SubjectAreaTermImpl(String omasServerURL)
Default Constructor used once a connector is created.
|
| 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.
|
public SubjectAreaTermImpl(String omasServerURL)
omasServerURL - - unique id for the connector instancepublic Term createTerm(String userId, Term suppliedTerm) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
createTerm in interface SubjectAreaTermuserId - 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 serverpublic Term getTermByGuid(String userId, String guid) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
getTermByGuid in interface SubjectAreaTermuserId - 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 serverpublic Term replaceTerm(String userId, String guid, Term suppliedTerm) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
Status is not updated using this call.
replaceTerm in interface SubjectAreaTermuserId - 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 serverUnrecognizedNameExceptionpublic Term 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.
updateTerm in interface SubjectAreaTermuserId - 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 serverUnrecognizedNameExceptionpublic Term deleteTerm(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
deleteTerm in interface SubjectAreaTermuserId - 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.EntityNotDeletedException - a delete was issued but the term was not deleted.MetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionpublic void purgeTerm(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, GUIDNotPurgedException, UnexpectedResponseException
purgeTerm in interface SubjectAreaTermuserId - 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 purgedMetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionCopyright © 2018 ODPi. All rights reserved.