public class RestValidator extends Object
| Constructor and Description |
|---|
RestValidator() |
| Modifier and Type | Method and Description |
|---|---|
static SubjectAreaOMASAPIResponse |
validateCategorySummaryDuringCreation(String serverName,
String userId,
String methodName,
CategorySummary suppliedCategory,
SubjectAreaCategoryRESTServices categoryRESTServices)
This method validated for creation.
|
static SubjectAreaOMASAPIResponse |
validateGlossarySummaryDuringCreation(String serverName,
String userId,
String methodName,
GlossarySummary suppliedGlossary,
SubjectAreaGlossaryRESTServices glossaryRESTServices)
This method validated for creation.
|
static void |
validateOMASServerURLNotNull(String className,
String methodName,
String omasServerURL)
Throw an exception if a org.odpi.openmetadata.accessservices.subjectarea.server URL has not been supplied on the constructor.
|
public static void validateOMASServerURLNotNull(String className, String methodName, String omasServerURL) throws MetadataServerUncontactableException
className - - name of the class making the call.methodName - - name of the method making the call.omasServerURL - - omas server url.MetadataServerUncontactableException - not able to communicate with the metadata server.public static SubjectAreaOMASAPIResponse validateGlossarySummaryDuringCreation(String serverName, String userId, String methodName, GlossarySummary suppliedGlossary, SubjectAreaGlossaryRESTServices glossaryRESTServices)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedmethodName - method making the callsuppliedGlossary - glossary to validate against.glossaryRESTServices - rest services for glossary.public static SubjectAreaOMASAPIResponse validateCategorySummaryDuringCreation(String serverName, String userId, String methodName, CategorySummary suppliedCategory, SubjectAreaCategoryRESTServices categoryRESTServices)
serverName - serverName under which this request is performed, this is used in multi tenanting to identify the tenantuserId - userId under which the request is performedmethodName - - method making the callsuppliedCategory - - category to validate against.categoryRESTServices - - rest services for glossary.Copyright © 2018–2019 ODPi. All rights reserved.