Class DataEngineDataFileHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineDataFileHandler
-
public class DataEngineDataFileHandler extends Object
DataFileHandler manages DataFile objects from the property server. It runs server-side in the DataEngine OMAS and creates DataFile entities with wire relationships through the OMRSRepositoryConnector.
-
-
Constructor Summary
Constructors Constructor 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveDataFile(String userId, String dataFileGUID, String externalSourceName, String externalSourceGUID, DeleteSemantic deleteSemantic)Remove the data fileStringupsertFileAssetIntoCatalog(String fileTypeName, String fileTypeGuid, DataFile file, boolean incomplete, SchemaType schemaType, Map<String,Object> extendedProperties, String externalSourceGuid, String externalSourceName, String userId, String methodName)Constructs a DataFile or CSVFile, its specific TabularSchemaType and its TabularColumns.
-
-
-
Constructor Detail
-
DataEngineDataFileHandler
public 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- Parameters:
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 Endpoints
-
-
Method Detail
-
upsertFileAssetIntoCatalog
public String upsertFileAssetIntoCatalog(String fileTypeName, String fileTypeGuid, DataFile file, boolean incomplete, SchemaType schemaType, Map<String,Object> extendedProperties, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Constructs a DataFile or CSVFile, its specific TabularSchemaType and its TabularColumns. It also calls for the creation of its folder structure, the Connection and Endpoint- Parameters:
fileTypeName- file type namefileTypeGuid- file type guidfile- actual data fileschemaType- file schemaextendedProperties- extended propertiesexternalSourceGuid- external source guidexternalSourceName- external source nameuserId- user idmethodName- method name- Returns:
- guid of data file
- Throws:
InvalidParameterException- if invalid parametersPropertyServerException- if errors in repositoryUserNotAuthorizedException- if user not authorized
-
removeDataFile
public void removeDataFile(String userId, String dataFileGUID, String externalSourceName, String externalSourceGUID, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
Remove the data file- Parameters:
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 semantic- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property serverFunctionNotSupportedException- the repository does not support this call.
-
-