public class FilesRESTServices extends Object
| Constructor and Description |
|---|
FilesRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDListResponse |
addDataFileToCatalog(String serverName,
String userId,
String fileSystemGUID,
String fileSystemName,
DataFileRequestBody requestBody)
Add a simple asset description linked to a connection object for a file and to the folder structure implied in the path name.
|
GUIDListResponse |
addDataFolderAssetToCatalog(String serverName,
String userId,
String fileSystemGUID,
String fileSystemName,
DataFolderRequestBody requestBody)
Creates a new folder asset that is identified as a data asset.
|
VoidResponse |
attachDataFileAssetToFolder(String serverName,
String userId,
String folderGUID,
String fileGUID,
MetadataSourceRequestBody requestBody)
Link an existing file asset to a folder.
|
VoidResponse |
attachFolderToFileSystem(String serverName,
String userId,
String fileSystemGUID,
String folderGUID,
MetadataSourceRequestBody requestBody)
Links a folder to a file system.
|
GUIDListResponse |
createFolderStructureInCatalog(String serverName,
String userId,
String parentGUID,
PathNameRequestBody requestBody)
Creates a new folder asset for each element in the pathName that is linked from the parent entity.
|
GUIDListResponse |
createFolderStructureInCatalog(String serverName,
String userId,
String fileSystemGUID,
String fileSystemName,
PathNameRequestBody requestBody)
Creates a new folder asset for each element in the pathName.
|
VoidResponse |
detachDataFileAssetFromFolder(String serverName,
String userId,
String folderGUID,
String fileGUID,
MetadataSourceRequestBody requestBody)
Remove a link between a file asset and a folder.
|
VoidResponse |
detachFolderFromFileSystem(String serverName,
String userId,
String fileSystemGUID,
String folderGUID,
MetadataSourceRequestBody requestBody)
Removed the link between a folder and a file system.
|
DataFileResponse |
getDataFileByGUID(String serverName,
String userId,
String fileGUID)
Retrieve a data file asset by its unique identifier (GUID).
|
DataFileResponse |
getDataFileByPathName(String serverName,
String userId,
PathNameRequestBody requestBody)
Retrieve a data file asset by its fully qualified path name.
|
FileSystemResponse |
getFileSystemByGUID(String serverName,
String userId,
String fileSystemGUID)
Retrieve a FileSystemProperties asset by its unique identifier (GUID).
|
FileSystemResponse |
getFileSystemByUniqueName(String serverName,
String userId,
String uniqueName)
Retrieve a FileSystemProperties asset by its unique name.
|
GUIDListResponse |
getFileSystems(String serverName,
String userId,
int startingFrom,
int maxPageSize)
Retrieve a list of defined FileSystems assets.
|
FileFolderResponse |
getFolderByGUID(String serverName,
String userId,
String folderGUID)
Retrieve a FileFolderProperties asset by its unique identifier (GUID).
|
FileFolderResponse |
getFolderByPathName(String serverName,
String userId,
PathNameRequestBody requestBody)
Retrieve a folder by its fully qualified path name.
|
GUIDListResponse |
getFolderFiles(String serverName,
String userId,
String folderGUID,
int startingFrom,
int maxPageSize)
Get the files inside a folder - both those that are nested and those that are linked.
|
GUIDListResponse |
getNestedFolders(String serverName,
String userId,
String parentFolderGUID,
int startingFrom,
int maxPageSize)
Return the list of folders nested inside a folder.
|
VoidResponse |
moveDataFileInCatalog(String serverName,
String userId,
String folderGUID,
String fileGUID,
MetadataSourceRequestBody requestBody)
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).
|
VoidResponse |
moveDataFolderInCatalog(String serverName,
String userId,
String newParentFolderGUID,
String movingFolderGUID,
MetadataSourceRequestBody requestBody)
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).
|
public GUIDListResponse createFolderStructureInCatalog(String serverName, String userId, String parentGUID, PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userparentGUID - root object to connect the folder torequestBody - pathname of the folder (or folders)public GUIDListResponse createFolderStructureInCatalog(String serverName, String userId, String fileSystemGUID, String fileSystemName, PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier of the software server capability that represents the root of the path namefileSystemName - unique name of the software server capability that represents the root of the path namerequestBody - pathname of the folder (or folders)public VoidResponse attachFolderToFileSystem(String serverName, String userId, String fileSystemGUID, String folderGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier of the file system in the catalogfolderGUID - unique identifier of the folder in the catalogrequestBody - external source identifiers - or null for localpublic VoidResponse detachFolderFromFileSystem(String serverName, String userId, String fileSystemGUID, String folderGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier of the file system in the catalogfolderGUID - unique identifier of the folder in the catalogrequestBody - external source identifiers - or null for localpublic GUIDListResponse addDataFileToCatalog(String serverName, String userId, String fileSystemGUID, String fileSystemName, DataFileRequestBody requestBody)
serverName - name of calling serveruserId - calling user (assumed to be the owner)fileSystemGUID - unique identifier of the software server capability that represents the root of the path name - null to use pathnamefileSystemName - unique name of the software server capability that represents the root of the path name - null to use pathnamerequestBody - properties for the assetpublic GUIDListResponse addDataFolderAssetToCatalog(String serverName, String userId, String fileSystemGUID, String fileSystemName, DataFolderRequestBody requestBody)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier of the software server capability that represents the root of the path name - null to use pathnamefileSystemName - unique name of the software server capability that represents the root of the path name - null to use pathnamerequestBody - pathname of the filepublic VoidResponse attachDataFileAssetToFolder(String serverName, String userId, String folderGUID, String fileGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the folderfileGUID - unique identifier of the filerequestBody - external source identifiers - or null for localpublic VoidResponse detachDataFileAssetFromFolder(String serverName, String userId, String folderGUID, String fileGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the folderfileGUID - unique identifier of the filerequestBody - external source identifiers - or null for localpublic VoidResponse moveDataFileInCatalog(String serverName, String userId, String folderGUID, String fileGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - new parent folderfileGUID - unique identifier of the file to moverequestBody - request bodypublic VoidResponse moveDataFolderInCatalog(String serverName, String userId, String newParentFolderGUID, String movingFolderGUID, MetadataSourceRequestBody requestBody)
serverName - name of calling serveruserId - calling usernewParentFolderGUID - new parent foldermovingFolderGUID - unique identifier of the file to moverequestBody - external source identifiers - or null for localpublic FileSystemResponse getFileSystemByGUID(String serverName, String userId, String fileSystemGUID)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier used to locate the file systempublic FileSystemResponse getFileSystemByUniqueName(String serverName, String userId, String uniqueName)
serverName - name of calling serveruserId - calling useruniqueName - unique name used to locate the file systempublic GUIDListResponse getFileSystems(String serverName, String userId, int startingFrom, int maxPageSize)
serverName - name of calling serveruserId - calling userstartingFrom - starting point in the listmaxPageSize - maximum number of resultspublic FileFolderResponse getFolderByGUID(String serverName, String userId, String folderGUID)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier used to locate the folderpublic FileFolderResponse getFolderByPathName(String serverName, String userId, PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - path namepublic GUIDListResponse getNestedFolders(String serverName, String userId, String parentFolderGUID, int startingFrom, int maxPageSize)
serverName - name of calling serveruserId - calling userparentFolderGUID - unique identifier of the folder or Filesystem to querystartingFrom - starting point in the listmaxPageSize - maximum number of resultspublic GUIDListResponse getFolderFiles(String serverName, String userId, String folderGUID, int startingFrom, int maxPageSize)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the folder to querystartingFrom - starting point in the listmaxPageSize - maximum number of resultspublic DataFileResponse getDataFileByGUID(String serverName, String userId, String fileGUID)
serverName - name of calling serveruserId - calling userfileGUID - unique identifier used to locate the filepublic DataFileResponse getDataFileByPathName(String serverName, String userId, PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - path nameCopyright © 2018–2020 ODPi. All rights reserved.