public class DataEngineDataFileHandler extends Object
| Constructor and Description |
|---|
DataEngineDataFileHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
DataEngineCommonHandler dataEngineCommonHandler,
AssetHandler<DataFile> fileHandler,
DataEngineSchemaTypeHandler dataEngineSchemaTypeHandler,
DataEngineFolderHierarchyHandler dataEngineFolderHierarchyHandler,
DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeDataFile(String userId,
String dataFileGUID,
String externalSourceName,
String externalSourceGUID,
DeleteSemantic deleteSemantic)
Remove the data file
|
String |
upsertFileAssetIntoCatalog(String fileTypeName,
String fileTypeGuid,
DataFile file,
SchemaType schemaType,
List<Attribute> columns,
Map<String,Object> extendedProperties,
String externalSourceGuid,
String externalSourceName,
String userId,
String methodName)
Constructs a DataFile or CSVFile, its specific TabularSchemaType and its TabularColumns.
|
public DataEngineDataFileHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<DataFile> fileHandler, DataEngineSchemaTypeHandler dataEngineSchemaTypeHandler, DataEngineFolderHierarchyHandler dataEngineFolderHierarchyHandler, DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
invalidParameterHandler - handler for managing parameter errorsrepositoryHelper - provides utilities for manipulating the repository services objectsrepositoryHandler - manages calls to the repository servicesdataEngineCommonHandler - provides common Data Engine Omas utilitiesfileHandler - provides utilities specific for manipulating DataFile and CSVFiledataEngineSchemaTypeHandler - provides utilities specific for manipulating SchemaTypedataEngineFolderHierarchyHandler - provides utilities specific for manipulating FileFolderdataEngineConnectionAndEndpointHandler - provides utilities specific for manipulating Connections and Endpointspublic String upsertFileAssetIntoCatalog(String fileTypeName, String fileTypeGuid, DataFile file, SchemaType schemaType, List<Attribute> columns, Map<String,Object> extendedProperties, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
fileTypeName - file type namefileTypeGuid - file type guidfile - actual data fileschemaType - file schemacolumns - file columnsextendedProperties - extended propertiesexternalSourceGuid - external source guidexternalSourceName - external source nameuserId - user idmethodName - method nameInvalidParameterException - if invalid parametersPropertyServerException - if errors in repositoryUserNotAuthorizedException - if user not authorizedpublic void removeDataFile(String userId, String dataFileGUID, String externalSourceName, String externalSourceGUID, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
userId - the name of the calling userdataFileGUID - unique identifier of the file to be removedexternalSourceName - the external data engine nameexternalSourceGUID - the external data engine unique identifierdeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.