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
(InvalidParameterHandler invalidParameterHandler, OpenMetadataAPIGenericHandler<Referenceable> genericHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<FileFolder> folderHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoid
removeFolder
(String userId, String folderGUID, DeleteSemantic deleteSemantic, String externalSourceName) Remove the foldervoid
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.
-
Constructor Details
-
DataEngineFolderHierarchyHandler
public DataEngineFolderHierarchyHandler(InvalidParameterHandler invalidParameterHandler, OpenMetadataAPIGenericHandler<Referenceable> genericHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<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 InvalidParameterException, PropertyServerException, 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:
InvalidParameterException
- if invalid parametersPropertyServerException
- if errors in repositoryUserNotAuthorizedException
- if user not authorized
-
removeFolder
public void removeFolder(String userId, String folderGUID, DeleteSemantic deleteSemantic, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, 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:
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.
-