Class DataEngineSchemaAttributeHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaAttributeHandler
-
public class DataEngineSchemaAttributeHandler extends Object
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 Modifier and Type Field Description static StringSCHEMA_TYPE_GUID_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupsertSchemaAttributes(String userId, List<Attribute> attributeList, String externalSourceName, String externalSourceGUID, String schemaTypeGUID)Creates or updates the list of schema attributes
-
-
-
Field Detail
-
SCHEMA_TYPE_GUID_PARAMETER_NAME
public static final String SCHEMA_TYPE_GUID_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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
-
-