public interface FilesAndFoldersInterface
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addDataFileToCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
DataFileProperties dataFileProperties,
String connectorProviderName)
Creates a new file asset and links it to the folder structure implied in the path name.
|
List<String> |
addDataFileToCatalogFromTemplate(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String templateGUID,
TemplateProperties templateProperties)
Add an asset description a file based on the content of a template object.
|
List<String> |
addDataFolderToCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
FileFolderProperties fileFolderProperties,
String connectorProviderName)
Creates a new folder asset that is identified as a data asset.
|
List<String> |
addDataFolderToCatalogFromTemplate(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String templateGUID,
TemplateProperties templateProperties)
Creates a new folder asset that is identified as a data asset using a template.
|
void |
archiveDataFileInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFileGUID,
ArchiveProperties archiveProperties)
Remove the file asset description from the catalog.
|
void |
archiveDataFolderInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFolderGUID,
ArchiveProperties archiveProperties)
Mark the data folder asset description in the catalog as archived.
|
void |
attachDataFileAssetToFolder(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String folderGUID,
String fileGUID)
Link an existing file asset to a folder.
|
void |
attachTopLevelFolder(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String fileSystemGUID,
String folderGUID)
Links a folder to a file system.
|
List<String> |
createNestedFolders(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String parentGUID,
String pathName)
Creates a new folder asset for each element in the pathName that is linked from the parent entity.
|
void |
deleteDataFileFromCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFileGUID,
String fullPathname)
Remove the file asset description from the catalog.
|
void |
deleteDataFolderFromCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFolderGUID,
String fullPathname)
Remove the data folder asset description from the catalog.
|
void |
detachDataFileAssetFromFolder(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String folderGUID,
String fileGUID)
Remove a link between a file asset and a folder.
|
void |
detachTopLevelFolder(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String fileSystemGUID,
String folderGUID)
Removed the link between a folder and a file system.
|
List<DataFileElement> |
findFilesByPathName(String userId,
String pathName,
int startFrom,
int pageSize)
Retrieve data files by the supplied wildcard name.
|
DataFileElement |
getFileByGUID(String userId,
String fileGUID)
Retrieve a FolderProperties asset by its unique identifier (GUID).
|
DataFileElement |
getFileByPathName(String userId,
String pathName)
Retrieve a folder by its fully qualified path name.
|
FileFolderElement |
getFolderByGUID(String userId,
String folderGUID)
Retrieve a FolderProperties asset by its unique identifier (GUID).
|
FileFolderElement |
getFolderByPathName(String userId,
String pathName)
Retrieve a folder by its fully qualified path name.
|
List<DataFileElement> |
getFolderFiles(String userId,
String folderGUID,
int startFrom,
int pageSize)
Get the data files inside a folder - both those that are nested and those that are linked.
|
List<FileFolderElement> |
getNestedFolders(String userId,
String parentFolderGUID,
int startFrom,
int pageSize)
Return the list of folders nested inside a folder.
|
List<DataFileElement> |
getTopLevelDataFiles(String userId,
String fileSystemGUID,
int startFrom,
int pageSize)
Return the list of folders nested inside a folder.
|
List<FileFolderElement> |
getTopLevelFolders(String userId,
String fileSystemGUID,
int startFrom,
int pageSize)
Return the list of folders linked to the file server capability.
|
void |
moveDataFileInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String folderGUID,
String fileGUID)
Move a data file from its current parent folder to a new parent folder - this changes the file's qualified name
but not its unique identifier (guid).
|
void |
moveDataFolderInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String folderGUID,
String dataFolderGUID)
Move a data folder from its current parent folder to a new parent folder - this changes the folder's qualified name
but not its unique identifier (guid).
|
void |
updateDataFileInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFileGUID,
boolean isMergeUpdate,
DataFileProperties dataFileProperties)
Update the file asset description in the catalog.
|
void |
updateDataFolderInCatalog(String userId,
String fileManagerCapabilityGUID,
String fileManagerCapabilityName,
String dataFolderGUID,
boolean isMergeUpdate,
FileFolderProperties fileFolderProperties)
Update the data folder asset description in the catalog.
|
List<String> createNestedFolders(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String parentGUID, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullparentGUID - unique identifier of root object to connect the folder to (fileSystemGUID or folderGUID)pathName - pathname of the folder (or folders)InvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid attachTopLevelFolder(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folder in the catalogInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid detachTopLevelFolder(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String fileSystemGUID, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folder in the catalogInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<String> addDataFileToCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, DataFileProperties dataFileProperties, String connectorProviderName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFileProperties - details of the data file to add to the catalog as an assetconnectorProviderName - class name of connector provider for connector to access this assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<String> addDataFileToCatalogFromTemplate(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulltemplateGUID - unique identifier of the file asset to copytemplateProperties - override properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid updateDataFileInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFileGUID, boolean isMergeUpdate, DataFileProperties dataFileProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFileGUID - unique identifier of the data file assetisMergeUpdate - should the supplied properties completely override the existing properties or augment them?dataFileProperties - properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid archiveDataFileInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFileGUID, ArchiveProperties archiveProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFileGUID - unique identifier of the data file assetarchiveProperties - properties to help locate the archive copyInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid deleteDataFileFromCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFileGUID, String fullPathname) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFileGUID - unique identifier of the data file assetfullPathname - unique path and file name for fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<String> addDataFolderToCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, FileFolderProperties fileFolderProperties, String connectorProviderName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfileFolderProperties - properties to describe the folder propertiesconnectorProviderName - class name of connector provider for connector to access this assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<String> addDataFolderToCatalogFromTemplate(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulltemplateGUID - unique identifier of the file asset to copytemplateProperties - override properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid updateDataFolderInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFolderGUID, boolean isMergeUpdate, FileFolderProperties fileFolderProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFolderGUID - unique identifier of the data folder assetisMergeUpdate - should the supplied properties completely override the existing properties or augment them?fileFolderProperties - properties for the assetInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid archiveDataFolderInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFolderGUID, ArchiveProperties archiveProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFolderGUID - unique identifier of the data folder assetarchiveProperties - properties to help locate the archive copyInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid deleteDataFolderFromCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String dataFolderGUID, String fullPathname) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)fileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nulldataFolderGUID - unique identifier of the data folder assetfullPathname - unique path and file name for fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid attachDataFileAssetToFolder(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folderfileGUID - unique identifier of the fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid detachDataFileAssetFromFolder(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folderfileGUID - unique identifier of the fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid moveDataFileInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String folderGUID, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folderfileGUID - unique identifier of the fileInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid moveDataFolderInCatalog(String userId, String fileManagerCapabilityGUID, String fileManagerCapabilityName, String folderGUID, String dataFolderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileManagerCapabilityGUID - unique identifier of the software server capability representing an owning external file manager or nullfileManagerCapabilityName - unique name of the software server capability representing an owning external file manager or nullfolderGUID - unique identifier of the folderdataFolderGUID - unique identifier of the data folder to moveInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemFileFolderElement getFolderByGUID(String userId, String folderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfolderGUID - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemFileFolderElement getFolderByPathName(String userId, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userpathName - path nameInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<FileFolderElement> getTopLevelFolders(String userId, String fileSystemGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileSystemGUID - unique identifier of the software server capability representing the file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<FileFolderElement> getNestedFolders(String userId, String parentFolderGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userparentFolderGUID - unique identifier of the parent folder or file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<DataFileElement> getTopLevelDataFiles(String userId, String fileSystemGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileSystemGUID - unique identifier of the software server capability representing the file systemstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<DataFileElement> getFolderFiles(String userId, String folderGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfolderGUID - unique identifier of the parent folderstartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemDataFileElement getFileByGUID(String userId, String fileGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userfileGUID - unique identifier used to locate the folderInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemDataFileElement getFileByPathName(String userId, String pathName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userpathName - path nameInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<DataFileElement> findFilesByPathName(String userId, String pathName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userpathName - path namestartFrom - starting point in the listpageSize - maximum number of resultsInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.