Class DataEngineFolderHierarchyHandler

java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineFolderHierarchyHandler

public class DataEngineFolderHierarchyHandler extends Object
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

    Constructors
    Constructor
    Description
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    removeFolder(String userId, String folderGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName)
    Remove the folder
    void
    upsertFolderHierarchy(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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 errors
      genericHandler - manages calls to the repository services
      dataEngineCommonHandler - provides common Data Engine Omas utilities
      folderHandler - 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 guid
      fileType - data file type
      pathName - file path
      externalSourceGuid - external source guid
      externalSourceName - external source name
      userId - user id
      methodName - method name
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if invalid parameters
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if errors in repository
      org.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 user
      folderGUID - unique identifier of the folder to be removed
      externalSourceName - the external data engine name
      deleteSemantic - the delete semantic
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
      org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException - the repository does not support this call.