public class DataEngineSchemaTypeHandler extends Object
| Constructor and Description |
|---|
DataEngineSchemaTypeHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
SchemaTypeHandler schemaTypeHandler,
DataEngineRegistrationHandler dataEngineRegistrationHandler,
DataEngineCommonHandler dataEngineCommonHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnchorGUID(String userId,
Attribute attribute,
String processGUID)
Updates the schema attribute with anchorGUID property set to process GUID
|
void |
addLineageMappingRelationship(String userId,
String sourceSchemaAttributeQualifiedName,
String targetSchemaAttributeQualifiedName,
String externalSourceName)
Create LineageMapping relationship between two schema attributes
|
String |
createOrUpdateSchemaType(String userId,
SchemaType schemaType,
String externalSourceName)
Create the schema type entity, with the corresponding schema attributes and relationships
|
Optional<EntityDetail> |
findSchemaAttributeEntity(String userId,
String qualifiedName)
Find out if the SchemaAttribute object is already stored in the repository.
|
Optional<EntityDetail> |
findSchemaTypeEntity(String userId,
String qualifiedName)
Find out if the SchemaType object is already stored in the repository.
|
void |
removeSchemaType(String userId,
String schemaTypeGUID)
Remove the schema type with the associated schema attributes
|
public DataEngineSchemaTypeHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, SchemaTypeHandler schemaTypeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
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 objectsdataEngineRegistrationHandler - provides calls for retrieving external data engine guiddataEngineCommonHandler - provides utilities for manipulating entitiespublic String createOrUpdateSchemaType(String userId, SchemaType schemaType, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userschemaType - the schema type valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Optional<EntityDetail> findSchemaTypeEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Optional<EntityDetail> findSchemaAttributeEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addLineageMappingRelationship(String userId, String sourceSchemaAttributeQualifiedName, String targetSchemaAttributeQualifiedName, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling usersourceSchemaAttributeQualifiedName - the qualified name of the source schema attributetargetSchemaAttributeQualifiedName - the qualified name of the target schema attributeexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeSchemaType(String userId, String schemaTypeGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userschemaTypeGUID - the unique identifier of the schema typeInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addAnchorGUID(String userId, Attribute attribute, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userattribute - the properties of the schema attributeprocessGUID - the GUID of the processInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.