public class DataEngineFolderHierarchyHandler extends Object
| Constructor and Description |
|---|
DataEngineFolderHierarchyHandler(InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
DataEngineCommonHandler dataEngineCommonHandler,
AssetHandler<FileFolder> folderHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeFolder(String userId,
String folderGUID,
DeleteSemantic deleteSemantic,
String externalSourceName)
Remove the folder
|
void |
upsertFolderHierarchy(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.
|
public DataEngineFolderHierarchyHandler(InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<FileFolder> folderHandler)
invalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesdataEngineCommonHandler - provides common Data Engine Omas utilitiesfolderHandler - provides utilities specific for manipulating FileFolderspublic void upsertFolderHierarchy(String fileGuid, String pathName, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
fileGuid - data file guidpathName - file pathexternalSourceGuid - external source guidexternalSourceName - external source nameuserId - user idmethodName - method nameInvalidParameterException - if invalid parametersPropertyServerException - if errors in repositoryUserNotAuthorizedException - if user not authorizedpublic void removeFolder(String userId, String folderGUID, DeleteSemantic deleteSemantic, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
userId - the name of the calling userfolderGUID - unique identifier of the folder to be removedexternalSourceName - the external data engine namedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.