public class Nodes
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Nodes.CreateStructure |
static class |
Nodes.PatchStructure |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
root |
| Constructor and Description |
|---|
Nodes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addChildToNode(ACDSession acdSession,
NodeInfo parent,
NodeInfo child)
Add child to
parent Node. |
static Property |
addProperty(ACDSession acdSession,
NodeInfo node,
Property property)
add property to
node in owner group. |
static FolderInfo |
createFolder(ACDSession acdSession,
FolderInfo folderInfo)
Create Folder by
folderInfoname is required. |
static void |
deleteProperty(ACDSession acdSession,
NodeInfo node,
java.lang.String key)
Delete target
property in node. |
static java.io.InputStream |
downloadFile(ACDSession acdSession,
FileInfo downloadedFileInfo)
Download file as
InputStream |
static NodeInfoList |
getChildList(ACDSession acdSession,
NodeInfo parent,
java.lang.String startToken)
Get child list of target
parent, with filters=kind:(FOLDER* OR FILE*) |
static NodeInfoList |
getChildList(ACDSession acdSession,
NodeInfo parent,
java.lang.String filters,
java.lang.String startToken)
Get List of target
parent Node, each query return max to 200 Node. |
static FileInfoList |
getFileInfoLists(ACDSession acdSession,
java.lang.String startToken)
Get List of all FileInfo with sort="" and limit=200 and tempLink=true and asset=NONE
|
static FileInfoList |
getFileInfoLists(ACDSession acdSession,
java.lang.String startToken,
java.lang.String sort,
java.lang.Integer limit,
java.lang.Boolean withTempLink,
java.lang.String withAsset)
Get List of all FileInfo.
|
static FileInfo |
getFileMetadata(ACDSession acdSession,
java.lang.String id)
get File Metadata with withAsset="ALL" and withTempLink = true
|
static FileInfo |
getFileMetadata(ACDSession acdSession,
java.lang.String id,
java.lang.Boolean withTempLink,
java.lang.String withAsset)
get File Metadata
|
static FolderInfoList |
getFolderInfoLists(ACDSession acdSession,
java.lang.String startToken)
Get List of all FolderInfo. each query return 200 max FolderInfo
|
static FolderInfo |
getFolderMetadata(ACDSession acdSession,
java.lang.String id)
get Folder metadata
|
static Properties |
getProperties(ACDSession acdSession,
NodeInfo node,
java.lang.String owner)
Get all properties of
node with target owner Group. |
static Property |
getProperty(ACDSession acdSession,
NodeInfo node,
java.lang.String owner,
java.lang.String key)
Get Property value of
node by property. |
static FolderInfo |
getRootFolder(ACDSession acdSession)
Get root folder
|
static FileInfo |
overwriteFile(ACDSession acdSession,
FileInfo overwritedFileInfo,
java.io.File uploadFile)
overwrite target file by
uploadFile |
static void |
removeChildFromNode(ACDSession acdSession,
NodeInfo parent,
NodeInfo child)
remove child from
parent Node. |
static FileInfo |
updateFileMetadata(ACDSession acdSession,
FileInfo fileInfo)
update File Metadata, only accept name, description and labels
|
static FolderInfo |
updateFolderMetadata(ACDSession acdSession,
FolderInfo folderInfo)
update Folder Metadata, only accept name, description and labels
|
static FileInfo |
uploadFile(ACDSession acdSession,
FileInfo uploadedFileInfo,
java.io.File uploadFile)
Upload file
|
public static FileInfo uploadFile(ACDSession acdSession, FileInfo uploadedFileInfo, java.io.File uploadFile)
acdSession - ACDSession ACDSessionuploadedFileInfo - name and kind are required. labels, properties and parents are optional.uploadFile - Upload File Pathpublic static FileInfo overwriteFile(ACDSession acdSession, FileInfo overwritedFileInfo, java.io.File uploadFile)
uploadFileacdSession - ACDSessionoverwritedFileInfo - uploadFile - Upload File Pathpublic static java.io.InputStream downloadFile(ACDSession acdSession, FileInfo downloadedFileInfo)
InputStreamacdSession - ACDSessiondownloadedFileInfo - target file infopublic static FileInfoList getFileInfoLists(ACDSession acdSession, java.lang.String startToken)
acdSession - ACDSessionstartToken - nextToken from previous request for access more content. Default: nullpublic static FileInfoList getFileInfoLists(ACDSession acdSession, java.lang.String startToken, java.lang.String sort, java.lang.Integer limit, java.lang.Boolean withTempLink, java.lang.String withAsset)
acdSession - ACDSessionstartToken - nextToken from previous request for access more content. Default: nullsort - Sortable fields - createdDate, modifiedDate, contentDate, name, size and contentType. limit - for pagination, Default: 200withTempLink - if true, the response will contain tempLink for download. Default: falsewithAsset - "ALL", "NONE". Default: "NONE"public static FileInfo getFileMetadata(ACDSession acdSession, java.lang.String id)
acdSession - ACDSessionid - Node IDpublic static FileInfo getFileMetadata(ACDSession acdSession, java.lang.String id, java.lang.Boolean withTempLink, java.lang.String withAsset)
acdSession - ACDSessionid - Node IDwithTempLink - if true, the response will contain tempLink for download. Default: falsewithAsset - "ALL", "NONE". Default: "NONE"public static FileInfo updateFileMetadata(ACDSession acdSession, FileInfo fileInfo)
acdSession - ACDSessionfileInfo - File Infopublic static FolderInfo getRootFolder(ACDSession acdSession)
acdSession - ACDSessionpublic static FolderInfo createFolder(ACDSession acdSession, FolderInfo folderInfo)
folderInfoFOLDER. acdSession - ACDSessionfolderInfo - Folder Info create folder according to folderInfo.FolderInfopublic static FolderInfo getFolderMetadata(ACDSession acdSession, java.lang.String id)
acdSession - ACDSessionid - Node IDpublic static FolderInfo updateFolderMetadata(ACDSession acdSession, FolderInfo folderInfo)
acdSession - ACDSessionfolderInfo - Folder Infopublic static FolderInfoList getFolderInfoLists(ACDSession acdSession, java.lang.String startToken)
acdSession - ACDSessionstartToken - nextToken from previous request for access more content. Default: nullpublic static void addChildToNode(ACDSession acdSession, NodeInfo parent, NodeInfo child)
parent Node.acdSession - ACDSessionparent - Parentchild - Childpublic static void removeChildFromNode(ACDSession acdSession, NodeInfo parent, NodeInfo child)
parent Node.acdSession - ACDSessionparent - Parentchild - Childpublic static NodeInfoList getChildList(ACDSession acdSession, NodeInfo parent, java.lang.String startToken)
parent, with filters=kind:(FOLDER* OR FILE*)acdSession - ACDSessionparent - Parent Parent target nodestartToken - nextToken from previous request for access more content. Default: nullpublic static NodeInfoList getChildList(ACDSession acdSession, NodeInfo parent, java.lang.String filters, java.lang.String startToken)
parent Node, each query return max to 200 Node.acdSession - ACDSessionparent - Parent target Nodefilters - filter return result, Example: kind:(FOLDER* OR FILE*)startToken - nextToken from previous request for access more content. Default: nullpublic static Property addProperty(ACDSession acdSession, NodeInfo node, Property property)
node in owner group.acdSession - ACDSessionnode - Nodeproperty - require key and value.public static Properties getProperties(ACDSession acdSession, NodeInfo node, java.lang.String owner)
node with target owner Group.acdSession - ACDSessionnode - Nodeowner - Owner can't be null.public static Property getProperty(ACDSession acdSession, NodeInfo node, java.lang.String owner, java.lang.String key)
node by property.acdSession - ACDSessionnode - Nodeowner - Ownerkey - Keypublic static void deleteProperty(ACDSession acdSession, NodeInfo node, java.lang.String key)
property in node.acdSession - ACDSessionnode - Nodekey - Key