public class SubjectAreaCategoryImpl extends SubjectAreaBaseImpl implements SubjectAreaCategory
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
SubjectAreaCategoryImpl(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory(String userId,
Category suppliedCategory)
Create a Category
|
SubjectAreaDefinition |
createSubjectAreaDefinition(String userId,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Create a SubjectAreaDefinition
|
Category |
deleteCategory(String userId,
String guid)
Delete a Category instance
|
SubjectAreaDefinition |
deleteSubjectAreaDefinition(String userId,
String guid)
Delete a SubjectAreaDefinition instance
|
List<Category> |
findCategory(String userId,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Find Category
|
Category |
getCategoryByGuid(String userId,
String guid)
Get a category by guid.
|
List<Line> |
getCategoryRelationships(String userId,
String guid,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty)
Get Category relationships
|
SubjectAreaDefinition |
getSubjectAreaDefinitionByGuid(String userId,
String guid)
Get a subjectAreaDefinition by guid.
|
void |
purgeCategory(String userId,
String guid)
Purge a Category instance
|
void |
purgeSubjectAreaDefinition(String userId,
String guid)
Purge a SubjectAreaDefinition instance
|
Category |
replaceCategory(String userId,
String guid,
Category suppliedCategory)
Replace a Category.
|
SubjectAreaDefinition |
replaceSubjectAreaDefinition(String userId,
String guid,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Replace a SubjectAreaDefinition.
|
Category |
restoreCategory(String userId,
String guid)
Restore a Category
|
SubjectAreaDefinition |
restoreSubjectAreaDefinition(String userId,
String guid)
Restore a SubjectAreaDefinition
|
Category |
updateCategory(String userId,
String guid,
Category suppliedCategory)
Update a Category.
|
SubjectAreaDefinition |
updateSubjectAreaDefinition(String userId,
String guid,
SubjectAreaDefinition suppliedSubjectAreaDefinition)
Update a SubjectAreaDefinition.
|
deleteEntityRESTCall, deleteRelationshipRESTCall, encodeQueryProperty, findRESTCall, getByIdRESTCall, getRelationships, postRESTCall, purgeEntityRESTCall, purgeRelationshipRESTCall, putRESTCall, restoreRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCallpublic SubjectAreaCategoryImpl(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public Category createCategory(String userId, Category suppliedCategory) throws InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
createCategory in interface SubjectAreaCategoryuserId - userId under which the request is performedsuppliedCategory - CategoryExceptions returned by the server
UserNotAuthorizedException - 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 supportedPropertyServerException - Property Server Exception
Client library Exceptions
UnexpectedResponseException - an unexpected response was returned from the serverpublic Category getCategoryByGuid(String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
getCategoryByGuid in interface SubjectAreaCategoryuserId - userId under which the request is performedguid - guid of the category to getExceptions returned by the server
UserNotAuthorizedException - 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 supportedPropertyServerException - Property Server Exception
Client library Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverpublic List<Line> getCategoryRelationships(String userId, String guid, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, MetadataServerUncontactableException, PropertyServerException
getCategoryRelationships in interface SubjectAreaCategoryuserId - unique identifier for requesting user, under which the request is performedguid - 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.Exceptions returned by the server
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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public List<Category> findCategory(String userId, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty) throws MetadataServerUncontactableException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
findCategory in interface SubjectAreaCategoryuserId - 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.Exceptions returned by the server
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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Category replaceCategory(String userId, String guid, Category suppliedCategory) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException
Status is not updated using this call.
replaceCategory in interface SubjectAreaCategoryuserId - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Category updateCategory(String userId, String guid, Category suppliedCategory) throws UnexpectedResponseException, UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException
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 SubjectAreaCategoryuserId - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public Category deleteCategory(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException, PropertyServerException
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. This means that it is possible to undo the delete.
deleteCategory in interface SubjectAreaCategoryuserId - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public void purgeCategory(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, EntityNotPurgedException, FunctionNotSupportedException, PropertyServerException
A purge means that the category will not exist after the operation.
purgeCategory in interface SubjectAreaCategoryuserId - 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.EntityNotPurgedException - a hard delete was issued but the category was not purgedFunctionNotSupportedException - Function not supported.
Client library ExceptionsMetadataServerUncontactableException - Unable to contact the serverPropertyServerException - property server exception
Client library Exceptions
public Category restoreCategory(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
Restore allows the deleted Category to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
restoreCategory in interface SubjectAreaCategoryuserId - 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 serverPropertyServerException - property server exception
Client library Exceptions
public SubjectAreaDefinition createSubjectAreaDefinition(String userId, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, UnrecognizedGUIDException, ClassificationException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
createSubjectAreaDefinition in interface SubjectAreaCategoryuserId - userId under which the request is performedsuppliedSubjectAreaDefinition - SubjectAreaDefinitionExceptions returned by the server
UserNotAuthorizedException - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public SubjectAreaDefinition getSubjectAreaDefinitionByGuid(String userId, String guid) throws MetadataServerUncontactableException, UnrecognizedGUIDException, UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
getSubjectAreaDefinitionByGuid in interface SubjectAreaCategoryuserId - userId under which the request is performedguid - guid of the subjectAreaDefinition to getExceptions returned by the server
UserNotAuthorizedException - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
public SubjectAreaDefinition replaceSubjectAreaDefinition(String userId, String guid, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
Status is not updated using this call.
replaceSubjectAreaDefinition in interface SubjectAreaCategoryuserId - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic SubjectAreaDefinition updateSubjectAreaDefinition(String userId, String guid, SubjectAreaDefinition suppliedSubjectAreaDefinition) throws UnexpectedResponseException, UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException, PropertyServerException, FunctionNotSupportedException
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 SubjectAreaCategoryuserId - 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 Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic SubjectAreaDefinition deleteSubjectAreaDefinition(String userId, String guid) throws InvalidParameterException, MetadataServerUncontactableException, UserNotAuthorizedException, FunctionNotSupportedException, UnexpectedResponseException, EntityNotDeletedException, PropertyServerException
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. This means that it is possible to undo the delete.
deleteSubjectAreaDefinition in interface SubjectAreaCategoryuserId - 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 serverPropertyServerException - property server exception
Client library Exceptions
public void purgeSubjectAreaDefinition(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, EntityNotPurgedException, UnexpectedResponseException, PropertyServerException, FunctionNotSupportedException
A purge means that the subjectAreaDefinition will not exist after the operation.
purgeSubjectAreaDefinition in interface SubjectAreaCategoryuserId - 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.EntityNotPurgedException - a hard delete was issued but the subjectAreaDefinition was not purged
Client library Exceptions
MetadataServerUncontactableException - Unable to contact the serverUnexpectedResponseException - an unexpected response was returned from the serverPropertyServerException - property server exception
Client library Exceptions
FunctionNotSupportedException - Function not supportedpublic SubjectAreaDefinition restoreSubjectAreaDefinition(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerUncontactableException, UnrecognizedGUIDException, FunctionNotSupportedException, UnexpectedResponseException, PropertyServerException
Restore allows the deleted SubjectArea to be made active again. Restore allows deletes to be undone. Hard deletes are not stored in the repository so cannot be restored.
restoreSubjectAreaDefinition in interface SubjectAreaCategoryuserId - 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 serverPropertyServerException - property server exception
Client library Exceptions
Copyright © 2018–2020 ODPi. All rights reserved.