public class DetectUtils extends Object
| Constructor and Description |
|---|
DetectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Category |
detectAndReturnCategory(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Category object from the supplied response.
|
static Glossary |
detectAndReturnGlossary(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Glossary object from the supplied response.
|
static Term |
detectAndReturnTerm(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Term object from the supplied response.
|
static void |
detectAndThrowClassificationException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an ClassificationException if it is encoded in the REST response.
|
static void |
detectAndThrowEntityNotDeletedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an EntityNotDeletedException if it is encoded in the REST response.
|
static void |
detectAndThrowFunctionNotSupportedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an FunctionNotSupportedException if it is encoded in the REST response.
|
static void |
detectAndThrowGUIDNotPurgedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an GUIDNotPurgedException if it is encoded in the REST response.
|
static void |
detectAndThrowInvalidParameterException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an InvalidParameterException if it is encoded in the REST response.
|
static void |
detectAndThrowRelationshipNotDeletedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an RelationshipNotDeletedException if it is encoded in the REST response.
|
static void |
detectAndThrowStatusNotSupportedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an StatusNotSupportedException if it is encoded in the REST response.
|
static void |
detectAndThrowUnrecognizedGUIDException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an UnrecognizedGUIDException if it is encoded in the REST response.
|
static void |
detectAndThrowUnrecognizedNameException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an UnrecognizedNameException if it is encoded in the REST response.
|
static void |
detectAndThrowUserNotAuthorizedException(String methodName,
SubjectAreaOMASAPIResponse restResponse)
Throw an UserNotAuthorizedException if it is encoded in the REST response.
|
public static void detectAndThrowInvalidParameterException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws InvalidParameterException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.InvalidParameterException - - encoded exception from the handlerspublic static void detectAndThrowUnrecognizedGUIDException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnrecognizedGUIDException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnrecognizedGUIDException - - encoded exception from the handlerspublic static void detectAndThrowClassificationException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws ClassificationException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.ClassificationException - - encoded exception from the handlerspublic static void detectAndThrowEntityNotDeletedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws EntityNotDeletedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.EntityNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowFunctionNotSupportedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws FunctionNotSupportedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.FunctionNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowGUIDNotPurgedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws GUIDNotPurgedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.GUIDNotPurgedException - - encoded exception from the handlerspublic static void detectAndThrowRelationshipNotDeletedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws RelationshipNotDeletedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.RelationshipNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowStatusNotSupportedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws StatusNotSupportedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.StatusNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowUnrecognizedNameException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnrecognizedNameException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnrecognizedNameException - - encoded exception from the handlerspublic static void detectAndThrowUserNotAuthorizedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UserNotAuthorizedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UserNotAuthorizedException - - encoded exception from the handlerspublic static Glossary detectAndReturnGlossary(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a glossary then throw this exceptionpublic static Term detectAndReturnTerm(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a Term then throw this exceptionpublic static Category detectAndReturnCategory(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a Category then throw this exceptionCopyright © 2018 ODPi. All rights reserved.