Class DataEngineFolderHierarchyHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFolderHierarchyHandler
FolderHierarchyHandler manages FileFolder objects from the property server. It runs server-side in the DataEngine OMAS
and creates FileFolder entities with wire relationships through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineFolderHierarchyHandler(org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.dataengine.model.Referenceable> genericHandler, DataEngineCommonHandler dataEngineCommonHandler, org.odpi.openmetadata.commonservices.generichandlers.AssetHandler<org.odpi.openmetadata.accessservices.dataengine.model.FileFolder> folderHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveFolder(String userId, String folderGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName) Remove the foldervoidupsertFolderHierarchy(String fileGuid, String fileType, String pathName, String externalSourceGuid, String externalSourceName, String userId, String methodName) Construct the folder structure in which a data file is stored all the way to the Engine.
-
Constructor Details
-
DataEngineFolderHierarchyHandler
public DataEngineFolderHierarchyHandler(org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.dataengine.model.Referenceable> genericHandler, DataEngineCommonHandler dataEngineCommonHandler, org.odpi.openmetadata.commonservices.generichandlers.AssetHandler<org.odpi.openmetadata.accessservices.dataengine.model.FileFolder> folderHandler) Construct the handler information needed to interact with the repository services- Parameters:
invalidParameterHandler- handler for managing parameter errorsgenericHandler- manages calls to the repository servicesdataEngineCommonHandler- provides common Data Engine Omas utilitiesfolderHandler- provides utilities specific for manipulating FileFolders
-
-
Method Details
-
upsertFolderHierarchy
public void upsertFolderHierarchy(String fileGuid, String fileType, String pathName, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Construct the folder structure in which a data file is stored all the way to the Engine. Care is taken to maintain uniqueness of the relationship NestedFile that is between the file and the first folder.- Parameters:
fileGuid- data file guidfileType- data file typepathName- file pathexternalSourceGuid- external source guidexternalSourceName- external source nameuserId- user idmethodName- method name- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- if invalid parametersorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- if errors in repositoryorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- if user not authorized
-
removeFolder
public void removeFolder(String userId, String folderGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException Remove the folder- Parameters:
userId- the name of the calling userfolderGUID- unique identifier of the folder to be removedexternalSourceName- the external data engine namedeleteSemantic- the delete semantic- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the bean properties are invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property serverorg.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException- the repository does not support this call.
-