FileBrowserFolder
Extends:
File browser folder item resource object representing a folder.
Method Summary
Public Methods | ||
public |
Make a DELETE request to delete this file browser folder item resource through the REST API. |
|
public |
getChildren(params: Object, timeout: number): Promise<FileBrowserFolderChildList> Fetch a list of folders that are the children of this folder from the REST API. |
|
public |
getFiles(params: Object, timeout: number): Promise<FileBrowserFolderFileList> Fetch a list of files directly under this folder from the REST API. |
|
public |
getLinkFiles(params: Object, timeout: number): Promise<FileBrowserFolderLinkFileList> Fetch a list of link files directly under this folder from the REST API. |
|
public |
getParent(timeout: number): Promise<FileBrowserFolder> Fetch the parent folder of this folder from the REST API. |
Inherited Summary
From class Resource | ||
public static |
Helper method to make a deep copy clone of the passed object resource. |
|
public get |
Return true if the resource object contains any data. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Make a deep copy clone of this object resource. |
From class ItemResource | ||
public get |
Get the item's data object (REST API descriptors). |
|
public |
collection: * |
|
public |
Fetch this item resource from the REST API. |
|
public |
getPUTParameters(): string[] Get an array of parameter names that can be used as properties of the data object in PUT requests. |
|
private |
Internal helper method to make a DELETE request to this item resource through the REST API. |
|
private |
_getResource(linkRelation: string, ResourceClass: Object, searchParams: Object, timeout: number): Promise<ResourceClass> Internal method to fetch a related resource from the REST API that is referenced by a link relation within the item object. |
|
private |
Internal helper method to make a PUT request to this item resource through the REST API. |
Public Methods
public delete(timeout: number): Promise source
Make a DELETE request to delete this file browser folder item resource through the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getChildren(params: Object, timeout: number): Promise<FileBrowserFolderChildList> source
Fetch a list of folders that are the children of this folder from the REST API.
Return:
Promise<FileBrowserFolderChildList> | JS Promise, resolves to a |
public getFiles(params: Object, timeout: number): Promise<FileBrowserFolderFileList> source
Fetch a list of files directly under this folder from the REST API.
Return:
Promise<FileBrowserFolderFileList> | JS Promise, resolves to a |
public getLinkFiles(params: Object, timeout: number): Promise<FileBrowserFolderLinkFileList> source
Fetch a list of link files directly under this folder from the REST API.
Return:
Promise<FileBrowserFolderLinkFileList> | JS Promise, resolves to a |
public getParent(timeout: number): Promise<FileBrowserFolder> source
Fetch the parent folder of this folder from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |