Class DataEngineSchemaAttributeHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaAttributeHandler
DataEngineSchemaAttributeHandler manages schema attributes objects from the property server. It runs server-side in the
DataEngine OMAS and creates and retrieves schema type entities through the OMRSRepositoryConnector.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataEngineSchemaAttributeHandler
(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, SchemaAttributeHandler<Attribute, SchemaType> schemaAttributeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services -
Method Summary
-
Field Details
-
SCHEMA_TYPE_GUID_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
DataEngineSchemaAttributeHandler
public DataEngineSchemaAttributeHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, SchemaAttributeHandler<Attribute, SchemaType> schemaAttributeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services- Parameters:
serviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHelper
- provides utilities for manipulating the repository services objectsdataEngineRegistrationHandler
- provides calls for retrieving external data engine guiddataEngineCommonHandler
- provides utilities for manipulating entitiesschemaAttributeHandler
- handler for managing schema attributes in the metadata repositories
-
-
Method Details
-
upsertSchemaAttributes
public void upsertSchemaAttributes(String userId, List<Attribute> attributeList, String externalSourceName, String externalSourceGUID, String schemaTypeGUID) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException Creates or updates the list of schema attributes- Parameters:
userId
- the name of the calling userattributeList
- the list of attributesexternalSourceName
- the unique name of the external sourceexternalSourceGUID
- the guid of the external sourceschemaTypeGUID
- the guid of the schema type- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-