public class SchemaTypeHandler extends RootHandler
invalidParameterHandler, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
SchemaTypeHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
String |
addExternalSchemaAttribute(String userId,
SchemaAttribute schemaAttribute,
String externalSourceGUID,
String externalSourceName)
Deprecated.
|
String |
addExternalSchemaType(String userId,
SchemaType schemaType,
String externalSourceGUID,
String externalSourceName)
Add the schema type from an external source to the repository along with any schema types embedded within it.
|
ComplexSchemaType |
getEmptyComplexSchemaType(String schemaTypeGUID,
String schemaTypeName)
Return the requested schemaType with the specific type information filled in.
|
SchemaAttribute |
getEmptyTabularColumn()
Return a schema attribute object with the type set up.
|
SchemaAttributeBuilder |
getSchemaAttributeBuilder(SchemaAttribute schemaAttribute)
Return the appropriate schemaAttribute builder for the supplied schema attribute bean.
|
String |
updateSchemaAttribute(String userId,
String existingSchemaAttributeGUID,
SchemaAttribute schemaAttribute)
Deprecated.
|
String |
updateSchemaType(String userId,
String existingSchemaTypeGUID,
SchemaType schemaType)
Deprecated.
|
getRepositoryHelper, getServiceNamepublic SchemaTypeHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper)
serviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectspublic ComplexSchemaType getEmptyComplexSchemaType(String schemaTypeGUID, String schemaTypeName)
schemaTypeGUID - unique identifier of the required typeschemaTypeName - unique name of the required typepublic SchemaAttribute getEmptyTabularColumn()
@Deprecated public String addExternalSchemaAttribute(String userId, SchemaAttribute schemaAttribute, String externalSourceGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdschemaAttribute - object to addexternalSourceGUID - unique identifier(guid) for the external source.externalSourceName - unique name for the external source.InvalidParameterException - the schemaAttribute bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property server@Deprecated public String updateSchemaAttribute(String userId, String existingSchemaAttributeGUID, SchemaAttribute schemaAttribute) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userIdexistingSchemaAttributeGUID - unique identifier of the existing schemaAttribute entityschemaAttribute - new schemaAttribute valuesInvalidParameterException - the schemaAttribute bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic SchemaAttributeBuilder getSchemaAttributeBuilder(SchemaAttribute schemaAttribute)
schemaAttribute - object with propertiespublic String addExternalSchemaType(String userId, SchemaType schemaType, String externalSourceGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdschemaType - object to addexternalSourceGUID - unique identifier(guid) for the external sourceexternalSourceName - unique name for the external sourceInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property server@Deprecated public String updateSchemaType(String userId, String existingSchemaTypeGUID, SchemaType schemaType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userIdexistingSchemaTypeGUID - unique identifier of the existing schemaType entityschemaType - new schemaType valuesInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.