@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/asset-owner/users/{userId}")
public class FileSystemOnboardingResource
extends Object
| Constructor and Description |
|---|
FileSystemOnboardingResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDListResponse |
addAvroFileToCatalog(String serverName,
String userId,
NewFileAssetRequestBody requestBody)
Add a simple asset description linked to a connection object for an Avro file.
|
GUIDListResponse |
addCSVFileToCatalog(String serverName,
String userId,
NewCSVFileAssetRequestBody requestBody)
Add a simple asset description linked to a connection object for a CSV file.
|
GUIDListResponse |
addDataFileAssetToCatalog(String serverName,
String userId,
NewFileAssetRequestBody requestBody)
Creates a new file asset and links it to the folder structure implied in the path name.
|
GUIDListResponse |
addDataFolderAssetToCatalog(String serverName,
String userId,
NewFileAssetRequestBody requestBody)
Creates a new folder asset that is identified as a data asset.
|
VoidResponse |
attachDataFileAssetToFolder(String serverName,
String userId,
String folderGUID,
String fileGUID,
NullRequestBody requestBody)
Link an existing file asset to a folder.
|
VoidResponse |
attachFolderToFileSystem(String serverName,
String userId,
String fileSystemGUID,
String folderGUID,
NullRequestBody requestBody)
Links a folder to a file system.
|
GUIDResponse |
createFileSystemInCatalog(String serverName,
String userId,
NewFileSystemRequestBody requestBody)
Files live on a file system.
|
GUIDListResponse |
createFolderStructureInCatalog(String serverName,
String userId,
PathNameRequestBody requestBody)
Creates a new folder asset for each element in the pathName.
|
GUIDListResponse |
createFolderStructureInCatalog(String serverName,
String userId,
String anchorGUID,
PathNameRequestBody requestBody)
Creates a new folder asset for each element in the pathName that is linked from the anchor entity.
|
VoidResponse |
detachDataFileAssetFromFolder(String serverName,
String userId,
String folderGUID,
String fileGUID,
NullRequestBody requestBody)
Remove a link between a file asset and a folder.
|
VoidResponse |
detachFolderFromFileSystem(String serverName,
String userId,
String fileSystemGUID,
String folderGUID,
NullRequestBody requestBody)
Removed the link between a folder and a file system.
|
FileSystemResponse |
getFileSystemByGUID(String serverName,
String userId,
String fileSystemGUID)
Retrieve a FileSystem asset by its unique identifier (GUID).
|
FileSystemResponse |
getFileSystemByUniqueName(String serverName,
String userId,
String uniqueName)
Retrieve a FileSystem asset by its unique name.
|
GUIDListResponse |
getFileSystems(String serverName,
String userId,
int startingFrom,
int maxPageSize)
Retrieve a list of defined FileSystems assets.
|
FolderResponse |
getFolderByGUID(String serverName,
String userId,
String folderGUID)
Retrieve a Folder asset by its unique identifier (GUID).
|
FolderResponse |
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 anchorGUID,
int startingFrom,
int maxPageSize)
Return the list of folders nested inside a folder.
|
VoidResponse |
moveDataFileInCatalog(String serverName,
String userId,
String folderGUID,
String fileGUID,
NullRequestBody 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 folderGUID,
String dataFolderGUID,
NullRequestBody 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 FileSystemOnboardingResource()
@RequestMapping(method=POST,
path="/file-systems")
public GUIDResponse createFileSystemInCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
NewFileSystemRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - properties of the file system@RequestMapping(method=POST,
path="/folders/{anchorGUID}")
public GUIDListResponse createFolderStructureInCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String anchorGUID,
@RequestBody
PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling useranchorGUID - root object to connect the folder torequestBody - pathname of the folder (or folders)@RequestMapping(method=POST,
path="/folders")
public GUIDListResponse createFolderStructureInCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - pathname of the folder (or folders)@RequestMapping(method=POST,
path="/file-systems/{fileSystemGUID}/folders/{fileSystemGUID}/attach")
public VoidResponse attachFolderToFileSystem(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String fileSystemGUID,
@PathVariable
String folderGUID,
@RequestBody
NullRequestBody 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 - dummy request body@RequestMapping(method=POST,
path="/file-systems/{fileSystemGUID}/folders/{fileSystemGUID}/detach")
public VoidResponse detachFolderFromFileSystem(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String fileSystemGUID,
@PathVariable
String folderGUID,
@RequestBody
NullRequestBody 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 - dummy request body@RequestMapping(method=POST,
path="/assets/data-files")
public GUIDListResponse addDataFileAssetToCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
NewFileAssetRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - pathname of the data file@RequestMapping(method=POST,
path="/assets/data-folders")
public GUIDListResponse addDataFolderAssetToCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
NewFileAssetRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - pathname of the data folder@RequestMapping(method=POST,
path="/folders/{folderGUID}/assets/data-files/{fileGUID}/attach")
public VoidResponse attachDataFileAssetToFolder(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID,
@PathVariable
String fileGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the folderfileGUID - unique identifier of the filerequestBody - dummy request body@RequestMapping(method=POST,
path="/folders/{folderGUID}/assets/data-files/{fileGUID}/detach")
public VoidResponse detachDataFileAssetFromFolder(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID,
@PathVariable
String fileGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the folderfileGUID - unique identifier of the filerequestBody - dummy request body@RequestMapping(method=POST,
path="/folders/{folderGUID}/assets/data-files/{fileGUID}/move-to")
public VoidResponse moveDataFileInCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID,
@PathVariable
String fileGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - new parent folderfileGUID - unique identifier of the file to move@RequestMapping(method=POST,
path="/folders/{folderGUID}/assets/data-folders/{dataFolderGUID}/move-to")
public VoidResponse moveDataFolderInCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID,
@PathVariable
String dataFolderGUID,
@RequestBody
NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userfolderGUID - new parent folderdataFolderGUID - unique identifier of the data folder to move@RequestMapping(method=GET,
path="/file-systems/{fileSystemGUID}")
public FileSystemResponse getFileSystemByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String fileSystemGUID)
serverName - name of calling serveruserId - calling userfileSystemGUID - unique identifier used to locate the file system@RequestMapping(method=GET,
path="/file-systems/by-name/{uniqueName}")
public FileSystemResponse getFileSystemByUniqueName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String uniqueName)
serverName - name of calling serveruserId - calling useruniqueName - unique name for the filesystem@RequestMapping(method=GET,
path="/file-systems")
public GUIDListResponse getFileSystems(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestParam
int startingFrom,
@RequestParam
int maxPageSize)
serverName - name of calling serveruserId - calling userstartingFrom - starting point in the listmaxPageSize - maximum number of results@RequestMapping(method=GET,
path="/folders/{folderGUID}")
public FolderResponse getFolderByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier used to locate the folder@RequestMapping(method=GET,
path="/folders/by-path-name")
public FolderResponse getFolderByPathName(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
PathNameRequestBody requestBody)
serverName - name of calling serveruserId - calling userrequestBody - path name@RequestMapping(method=GET,
path="/{anchorGUID}/folders")
public GUIDListResponse getNestedFolders(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String anchorGUID,
@RequestParam
int startingFrom,
@RequestParam
int maxPageSize)
serverName - name of calling serveruserId - calling useranchorGUID - unique identifier of the anchor folder or FilesystemstartingFrom - starting point in the listmaxPageSize - maximum number of results@RequestMapping(method=GET,
path="/folders/{folderGUID}/files")
public GUIDListResponse getFolderFiles(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String folderGUID,
@RequestParam
int startingFrom,
@RequestParam
int maxPageSize)
serverName - name of calling serveruserId - calling userfolderGUID - unique identifier of the anchor folderstartingFrom - starting point in the listmaxPageSize - maximum number of results@RequestMapping(method=POST,
path="/assets/data-files/avro")
public GUIDListResponse addAvroFileToCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
NewFileAssetRequestBody requestBody)
serverName - name of calling serveruserId - calling user (assumed to be the owner)requestBody - properties for the asset@RequestMapping(method=POST,
path="/assets/data-files/csv")
public GUIDListResponse addCSVFileToCatalog(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
NewCSVFileAssetRequestBody requestBody)
serverName - name of calling serveruserId - calling user (assumed to be the owner)requestBody - parameters for the new assetCopyright © 2018–2019 ODPi. All rights reserved.