public class YfyFolderRequest extends Object
| Constructor and Description |
|---|
YfyFolderRequest(YfyClient.YfyInternalClient client) |
| Modifier and Type | Method and Description |
|---|---|
YfyFolder |
createFolder(String name,
long parentId)
Create a new empty folder inside the specified parent folder
|
SuccessResult |
deleteFolder(long folderId)
Delete a folder to trash
|
SuccessResult |
deleteFolderFromTrash(long folderId)
Permanently delete a specific folder that is in the trash.
|
GetChildrenResult |
getChildren(long folderId,
int pageId,
int pageCapacity,
ItemTypeEnum itemType)
Retrieve the files and/or folders contained within this folder without any other info about the folder.
|
YfyFolder |
getFolder(long folderId)
Retrieve detailed information about a folder
|
ListCollabResult |
listCollab(long folderId)
List specific folder's all collab relationships
|
ListShareLinkResult |
listShareLink(long folderId,
int pageId)
List share links of a folder
|
ListShareLinkResult |
listShareLink(long folderId,
int pageId,
long ownerId)
List folder's share links created by specific owner
|
SuccessResult |
moveFolder(long folderId,
long targetFolderId)
Move a folder to another folder
|
SuccessResult |
restoreFolderFromTrash(long folderId)
Restore a specific folder that have been moved to the trash.
|
YfyFolder |
updateFolder(long folderId,
String newName)
Update the name of the folder
|
public YfyFolderRequest(YfyClient.YfyInternalClient client)
public YfyFolder getFolder(long folderId) throws YfyException
folderId - Folder id in fangcloudYfyExceptionpublic YfyFolder createFolder(String name, long parentId) throws YfyException
name - New folder nameparentId - New folder's parent id in fangcloudYfyExceptionpublic YfyFolder updateFolder(long folderId, String newName) throws YfyException
folderId - Folder id in fangcloudnewName - New name of the folderYfyExceptionpublic SuccessResult deleteFolder(long folderId) throws YfyException
folderId - Folder id in fangcloudYfyExceptionpublic SuccessResult deleteFolderFromTrash(long folderId) throws YfyException
folderId - Folder id in fangcloudYfyExceptionpublic SuccessResult restoreFolderFromTrash(long folderId) throws YfyException
folderId - Folder id in fangcloudYfyExceptionpublic SuccessResult moveFolder(long folderId, long targetFolderId) throws YfyException
folderId - Folder id in fangcloudtargetFolderId - Folder id of the destination folder in fangcloudYfyExceptionpublic GetChildrenResult getChildren(long folderId, int pageId, int pageCapacity, ItemTypeEnum itemType) throws YfyException
folderId - Folder id in fangcloudpageId - Page id begin with 0pageCapacity - Files and/or folders' list size once returnitemType - Type of item. see ItemTypeEnumYfyExceptionpublic ListShareLinkResult listShareLink(long folderId, int pageId) throws YfyException
folderId - Folder id in fangcloudpageId - Page id begin with 0YfyExceptionpublic ListShareLinkResult listShareLink(long folderId, int pageId, long ownerId) throws YfyException
folderId - Folder id in fangcloudpageId - Page id begin with 0ownerId - Owner id of share link you want to seeYfyExceptionpublic ListCollabResult listCollab(long folderId) throws YfyException
folderId - Folder id in fangcloudYfyExceptionCopyright © 2017 YiFangYun. All rights reserved.