public interface SubjectAreaCategory
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory(String userid,
Category suppliedCategory)
Create a Category
|
Category |
deleteCategory(String userid,
String guid)
Delete a Category instance
A delete (also known as a soft delete) means that the category instance will exist in a deleted state in the repository after the delete operation.
|
Category |
getCategoryByGuid(String userid,
String guid)
Get a category by guid.
|
void |
purgeCategory(String userid,
String guid)
Purge a Category instance
A purge means that the category will not exist after the operation.
|
Category |
replaceCategory(String userid,
String guid,
Category suppliedCategory)
Replace a Category.
|
Category |
updateCategory(String userid,
String guid,
Category suppliedCategory)
Update a Category.
|
Category createCategory(String userid, Category suppliedCategory) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
userid - unique identifier for requesting user, under which the request is performedsuppliedCategory - category to createUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied guid was not recognisedClassificationException - Error processing a classificationFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverCategory getCategoryByGuid(String userid, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to getUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied guid was not recognisedFunctionNotSupportedException - Function not supported
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverCategory replaceCategory(String userid, String guid, Category suppliedCategory) 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 category to updatesuppliedCategory - category 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 serverUnrecognizedNameExceptionCategory updateCategory(String userid, String guid, Category suppliedCategory) throws UnexpectedResponseException, UserNotAuthorizedException, UnrecognizedNameException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
If the caller has chosen to incorporate the category name in their Category Categorys or Categories qualified name, renaming the category will cause those qualified names to mismatch the Category name. If the caller has chosen to incorporate the category qualifiedName in their Category Categorys or Categories qualified name, changing the qualified name of the category will cause those qualified names to mismatch the Category name. Status is not updated using this call.
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to updatesuppliedCategory - category 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 serverUnrecognizedNameExceptionCategory deleteCategory(String userid, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to be deleted.UnrecognizedGUIDException - the supplied guid was not recognisedUserNotAuthorizedException - 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 category was not deleted.MetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionvoid purgeCategory(String userid, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, GUIDNotPurgedException, UnexpectedResponseException
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to be deleted.UnrecognizedGUIDException - 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.GUIDNotPurgedException - a hard delete was issued but the category was not purgedMetadataServerUncontactableException - unable to contact serverUnexpectedResponseExceptionCopyright © 2018 ODPi. All rights reserved.