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(InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<FileFolder> folderHandler)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveFolder(String userId, String folderGUID, DeleteSemantic deleteSemantic, String externalSourceName)Remove the foldervoidupsertFolderHierarchy(String fileGuid, 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 SoftwareServerCapability.
-
-
-
Constructor Detail
-
DataEngineFolderHierarchyHandler
public DataEngineFolderHierarchyHandler(InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<FileFolder> folderHandler)
Construct the handler information needed to interact with the repository services- Parameters:
invalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesdataEngineCommonHandler- provides common Data Engine Omas utilitiesfolderHandler- provides utilities specific for manipulating FileFolders
-
-
Method Detail
-
upsertFolderHierarchy
public void upsertFolderHierarchy(String fileGuid, 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 SoftwareServerCapability. Care is taken to maintain uniqueness of the relationship NestedFile that is between the file and the first folder.- Parameters:
fileGuid- data file guidpathName- 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.
-
-