public class DataEngineCollectionHandler extends Object
| Constructor and Description |
|---|
DataEngineCollectionHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
OpenMetadataAPIGenericHandler<Collection> collectionOpenMetadataAPIGenericHandler,
DataEngineRegistrationHandler dataEngineRegistrationHandler,
DataEngineCommonHandler dataEngineCommonHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCollectionMembershipRelationship(String userId,
String processGUID,
String collectionGUID,
String externalSourceName)
Create CollectionMembership relationships between a Process asset and a Collection.
|
String |
createCollection(String userId,
Collection collection,
String externalSourceName)
Create the schema type entity, with the corresponding schema attributes and relationships if it doesn't exist or
updates the existing one.
|
Optional<EntityDetail> |
findCollectionEntity(String userId,
String qualifiedName)
Find out if the Transformation Project object is already stored in the repository as a Collection.
|
public DataEngineCollectionHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, OpenMetadataAPIGenericHandler<Collection> collectionOpenMetadataAPIGenericHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
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 entitiescollectionOpenMetadataAPIGenericHandler - helps building model for creating Collection metadata associated with Process assetspublic String createCollection(String userId, Collection collection, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling usercollection - the collection 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> findCollectionEntity(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 addCollectionMembershipRelationship(String userId, String processGUID, String collectionGUID, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processcollectionGUID - the unique identifier of the collectionexternalSourceName - the unique name of the external sourceInvalidParameterException - the 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.