public class SubjectAreaCategoryImpl extends SubjectAreaBaseImpl implements SubjectAreaCategory
omasServerURL, serverName| Constructor and Description |
|---|
SubjectAreaCategoryImpl(String omasServerURL,
String serverName)
Default Constructor used once a connector is created.
|
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory(String serverName,
String userId,
Category suppliedCategory)
Create a Category
|
SubjectAreaDefinition |
createSubjectAreaDefinition(String serverName,
String userId,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Create a SubjectAreaDefinition
|
Category |
deleteCategory(String serverName,
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.
|
SubjectAreaDefinition |
deleteSubjectAreaDefinition(String serverName,
String userId,
String guid)
Delete a SubjectAreaDefinition instance
A delete (also known as a soft delete) means that the subjectAreaDefinition instance will exist in a deleted state in the repository after the delete operation.
|
List<Category> |
findCategory(String serverName,
String userId,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Category
|
Category |
getCategoryByGuid(String serverName,
String userId,
String guid)
Get a category by guid.
|
List<Line> |
getCategoryRelationships(String serverName,
String userId,
String guid,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Category relationships
|
SubjectAreaDefinition |
getSubjectAreaDefinitionByGuid(String serverName,
String userId,
String guid)
Get a subjectAreaDefinition by guid.
|
void |
purgeCategory(String serverName,
String userId,
String guid)
Purge a Category instance
A purge means that the category will not exist after the operation.
|
void |
purgeSubjectAreaDefinition(String serverName,
String userId,
String guid)
Purge a SubjectAreaDefinition instance
A purge means that the subjectAreaDefinition will not exist after the operation.
|
Category |
replaceCategory(String serverName,
String userId,
String guid,
Category suppliedCategory)
Replace a Category.
|
SubjectAreaDefinition |
replaceSubjectAreaDefinition(String serverName,
String userId,
String guid,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Replace a SubjectAreaDefinition.
|
Category |
restoreCategory(String serverName,
String userId,
String guid)
Restore a Category
Restore allows the deleted Category to be made active again.
|
SubjectAreaDefinition |
restoreSubjectAreaDefinition(String serverName,
String userId,
String guid)
Restore a SubjectAreaDefinition
Restore allows the deleted SubjectArea to be made active again.
|
Category |
updateCategory(String serverName,
String userId,
String guid,
Category suppliedCategory)
Update a Category.
|
SubjectAreaDefinition |
updateSubjectAreaDefinition(String serverName,
String userId,
String guid,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Update a SubjectAreaDefinition.
|
encodeQueryProperty, getRelationshipspublic SubjectAreaCategoryImpl(String omasServerURL, String serverName)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantomasServerURL - unique id for the connector instancepublic Category createCategory(String serverName, String userId, Category suppliedCategory) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
createCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedsuppliedCategory - CategoryUserNotAuthorizedException - 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 serverpublic Category getCategoryByGuid(String serverName, String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
getCategoryByGuid in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId 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 serverpublic List<Line> getCategoryRelationships(String serverName, String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException
getCategoryRelationships in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the category to getguid - guid of the category 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 serverpublic List<Category> findCategory(String serverName, String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
findCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedsearchCriteria - String expression matching Category property values (this does not include the GlossarySummary content).asOfTime - the categories 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 serverpublic Category replaceCategory(String serverName, String userId, String guid, Category suppliedCategory) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
Status is not updated using this call.
replaceCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId 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 serverpublic Category updateCategory(String serverName, String userId, String guid, Category suppliedCategory) throws UnexpectedResponseException, UserNotAuthorizedException, 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.
updateCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId 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 serverpublic Category deleteCategory(String serverName, String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
deleteCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the category 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 category was not deleted.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic void purgeCategory(String serverName, String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, GUIDNotPurgedException, FunctionNotSupportedException
purgeCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the category to be deleted.
Exceptions returned by the serverUserNotAuthorizedException - 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 purgedFunctionNotSupportedException - Function not supported.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverpublic Category restoreCategory(String serverName, String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException
restoreCategory in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the category 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 serverpublic SubjectAreaDefinition createSubjectAreaDefinition(String serverName, String userId, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException
createSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedsuppliedSubjectAreaDefinition - SubjectAreaDefinitionUserNotAuthorizedException - 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 serverpublic SubjectAreaDefinition getSubjectAreaDefinitionByGuid(String serverName, String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException
getSubjectAreaDefinitionByGuid in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition 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 serverpublic SubjectAreaDefinition replaceSubjectAreaDefinition(String serverName, String userId, String guid, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException
Status is not updated using this call.
replaceSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition to updatesuppliedSubjectAreaDefinition - subjectAreaDefinition to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic SubjectAreaDefinition updateSubjectAreaDefinition(String serverName, String userId, String guid, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException
If the caller has chosen to incorporate the subjectAreaDefinition name in their SubjectAreaDefinition SubjectAreaDefinitions or Categories qualified name, renaming the subjectAreaDefinition will cause those qualified names to mismatch the SubjectAreaDefinition name. If the caller has chosen to incorporate the subjectAreaDefinition qualifiedName in their SubjectAreaDefinition SubjectAreaDefinitions or Categories qualified name, changing the qualified name of the subjectAreaDefinition will cause those qualified names to mismatch the SubjectAreaDefinition name. Status is not updated using this call.
updateSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition to updatesuppliedSubjectAreaDefinition - subjectAreaDefinition to be updatedUserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic SubjectAreaDefinition deleteSubjectAreaDefinition(String serverName, String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException
deleteSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition 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 subjectAreaDefinition was not deleted.MetadataServerUncontactableException - unable to contact serverUnexpectedResponseException - an unexpected response was returned from the serverpublic void purgeSubjectAreaDefinition(String serverName, String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, GUIDNotPurgedException, UnexpectedResponseException
purgeSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition 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 subjectAreaDefinition was not purged
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic SubjectAreaDefinition restoreSubjectAreaDefinition(String serverName, String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException
restoreSubjectAreaDefinition in interface SubjectAreaCategoryserverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - unique identifier for requesting user, under which the request is performedguid - guid of the subject area definition 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 serverCopyright © 2018–2019 ODPi. All rights reserved.