public class SubjectAreaCategoryRESTServices extends SubjectAreaRESTServices
oMRSAPIHelper| Constructor and Description |
|---|
SubjectAreaCategoryRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
checkSiblingCategoryNames(String userid,
String methodName,
String suppliedCategoryName,
String suppliedCategoryParentGuid,
SubjectAreaErrorCode errorCode)
Check that the requested name is not already used in a sibling category.
|
SubjectAreaOMASAPIResponse |
createCategory(String userid,
Category suppliedCategory)
Create a Category.
|
SubjectAreaOMASAPIResponse |
deleteCategory(String userid,
String guid,
Boolean isPurge)
Delete a Category instance
|
SubjectAreaOMASAPIResponse |
getCategory(String userid,
String guid)
Get a Category
|
SubjectAreaOMASAPIResponse |
updateCategory(String userid,
String guid,
Category suppliedCategory,
boolean isReplace)
Update a Category
|
getPossibleClassificationsForTerm, getPossibleRelationshipsForTerm, getRepositoryConnector, setOMRSAPIHelper, setRepositoryConnectorpublic SubjectAreaCategoryRESTServices()
public SubjectAreaOMASAPIResponse createCategory(String userid, Category suppliedCategory)
Valid nodeTypes for this request are:
userid - unique identifier for requesting user, under which the request is performedsuppliedCategory - category to createpublic SubjectAreaOMASAPIResponse getCategory(String userid, String guid)
userid - unique identifier for requesting user, under which the request is performedguid - guid of the category to getpublic SubjectAreaOMASAPIResponse updateCategory(String userid, String guid, Category suppliedCategory, boolean isReplace)
Status is not updated using this call.
userid - userid under which the request is performedguid - guid of the category to updatesuppliedCategory - category to be updatedisReplace - flag to indicate that this update is a replace. When not set only the supplied (non null) fields are updated.public SubjectAreaOMASAPIResponse deleteCategory(String userid, String guid, Boolean isPurge)
There are 2 types of deletion, a soft delete and a hard delete (also known as a purge). All repositories support hard deletes. Soft deletes support is optional. Soft delete is the default.
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. A hard delete means that the category will not exist after the operation. when not successful the following Exception responses can occur
userid - userid under which the request is performedguid - guid of the category to be deleted.isPurge - true indicates a hard delete, false is a soft delete.public SubjectAreaOMASAPIResponse checkSiblingCategoryNames(String userid, String methodName, String suppliedCategoryName, String suppliedCategoryParentGuid, SubjectAreaErrorCode errorCode)
userid - user idendifiermethodName - suppliedCategoryName - non-null category namesuppliedCategoryParentGuid - parent category guid. Do nothing if null.errorCode - error code to use if there is an existing sibling categorey with the same name.Copyright © 2018 ODPi. All rights reserved.