public class YfyShareLinkRequest extends Object
| Constructor and Description |
|---|
YfyShareLinkRequest(YfyBaseClient.YfyInternalClient client) |
| Modifier and Type | Method and Description |
|---|---|
YfyShareLink |
createFileShareLink(long fileId,
ShareLinkAccessEnum access,
boolean disableDownload,
String dueTime,
String password)
Create file share link with all personal params.
|
YfyShareLink |
createFolderShareLink(long folderId,
ShareLinkAccessEnum access,
boolean disableDownload,
String dueTime,
String password)
Create folder share link with all personal params.
|
YfyShareLink |
getShareLink(String uniqueName)
Retrieve share link info by unique name
|
YfyShareLink |
getShareLink(String uniqueName,
String password)
Retrieve share link info by unique name
|
SuccessResult |
revokeShareLink(String uniqueName)
Revoke share link by unique name
|
YfyShareLink |
updateShareLink(String uniqueName,
ShareLinkAccessEnum access,
boolean disableDownload,
String dueTime,
String password)
Update folder share link with all personal params.
|
public YfyShareLinkRequest(YfyBaseClient.YfyInternalClient client)
public YfyShareLink getShareLink(String uniqueName) throws YfyException
uniqueName - Unique name of share linkYfyExceptionpublic YfyShareLink getShareLink(String uniqueName, String password) throws YfyException
uniqueName - Unique name of share linkpassword - password of the share linkYfyExceptionpublic YfyShareLink createFileShareLink(long fileId, ShareLinkAccessEnum access, boolean disableDownload, String dueTime, String password) throws YfyException
fileId - File id in fangcloudaccess - Share link access typedisableDownload - Is need to disable others downloaddueTime - Due time of the share linkpassword - Set password to share link(set null to disable password)YfyExceptionpublic YfyShareLink createFolderShareLink(long folderId, ShareLinkAccessEnum access, boolean disableDownload, String dueTime, String password) throws YfyException
folderId - Folder id in fangcloudaccess - Share link access typedisableDownload - Is need to disable others downloaddueTime - Due time of the share linkpassword - Set password to share link(set null to disable password)YfyExceptionpublic YfyShareLink updateShareLink(String uniqueName, ShareLinkAccessEnum access, boolean disableDownload, String dueTime, String password) throws YfyException
uniqueName - Unique name of share linkaccess - Share link access typedisableDownload - Is need to disable others downloaddueTime - Due time of the share linkpassword - Set password to share link(set null to disable password)YfyExceptionpublic SuccessResult revokeShareLink(String uniqueName) throws YfyException
uniqueName - Unique name of share linkYfyExceptionCopyright © 2018 YiFangYun. All rights reserved.