Modifier and Type | Class and Description |
---|---|
static class |
DXContainer.FolderContents
Represents the contents of a folder.
|
Modifier and Type | Method and Description |
---|---|
static DXContainer |
getInstance(String projectOrContainerId)
Returns a
DXProject or DXContainer associated with an existing project or
container. |
static DXContainer |
getInstanceWithEnvironment(String projectOrContainerId,
DXEnvironment env)
Returns a
DXProject or DXContainer associated with an existing project or
container, using the specified environment. |
DXContainer.FolderContents |
listFolder(String folderPath)
Lists the data objects and subfolders inside the specified folder.
|
void |
move(List<? extends DXDataObject> objects,
List<String> folders,
String destinationFolder)
Moves the specified data objects and folders to a destination folder in the same container.
|
void |
moveFolders(List<String> folders,
String destinationFolder)
Moves the specified folders to a destination folder in the same container.
|
void |
moveObjects(List<? extends DXDataObject> objects,
String destinationFolder)
Moves the specified data objects to a destination folder in the same container.
|
void |
newFolder(String folderPath)
Creates the specified folder.
|
void |
newFolder(String folderPath,
boolean parents)
Creates the specified folder, optionally creating parent folders as well.
|
void |
removeFolder(String folderPath)
Removes the specified folder.
|
void |
removeFolder(String folderPath,
boolean recurse)
Removes the specified folder, optionally removing all subfolders as well.
|
void |
removeObjects(List<? extends DXDataObject> objects)
Removes the specified objects from the container.
|
void |
renameFolder(String folderPath,
String name)
Renames the specified folder.
|
apiCallOnObject, apiCallOnObject, equals, getId, hashCode, toString
public static DXContainer getInstance(String projectOrContainerId)
DXProject
or DXContainer
associated with an existing project or
container.projectOrContainerId
- String starting with "container-"
or "project-"
DXProject
or DXContainer
NullPointerException
- if projectOrContainerId
is nullpublic static DXContainer getInstanceWithEnvironment(String projectOrContainerId, DXEnvironment env)
DXProject
or DXContainer
associated with an existing project or
container, using the specified environment.projectOrContainerId
- String starting with "container-"
or "project-"
env
- environment to use to make subsequent API requestsDXProject
or DXContainer
NullPointerException
- if projectOrContainerId
or env
is nullpublic void move(List<? extends DXDataObject> objects, List<String> folders, String destinationFolder)
objects
- data objects to be movedfolders
- full paths to the folders to be moved (Strings starting with "/"
)destinationFolder
- full path to the destination folder (a String starting with
"/"
)public void moveFolders(List<String> folders, String destinationFolder)
folders
- full paths to the folders to be moved (Strings starting with "/"
)destinationFolder
- full path to the destination folder (a String starting with
"/"
)public void moveObjects(List<? extends DXDataObject> objects, String destinationFolder)
objects
- data objects to be moveddestinationFolder
- full path to the destination folder (A String starting with
"/"
)public void newFolder(String folderPath)
folderPath
- full path to the folder to be created (a String starting with "/"
)public void newFolder(String folderPath, boolean parents)
folderPath
- full path to the folder to be created (a String starting with "/"
)parents
- if true, create all parent folders of the requested pathpublic void renameFolder(String folderPath, String name)
This method renames a folder in the same parent folder (i.e. only changes its basename).
folderPath
- full path to the folder being renamed (a String starting with "/"
)name
- new basename for the folderpublic void removeFolder(String folderPath)
folderPath
- path to the folder to be removed (String starting with "/"
)public void removeFolder(String folderPath, boolean recurse)
folderPath
- full path to the folder to be removed (a String starting with "/"
)recurse
- if true, deletes all objects and subfolders in the folder as wellpublic void removeObjects(List<? extends DXDataObject> objects)
Removal propagates to hidden linked objects in the same container that are no longer reachable from any visible object.
objects
- List of objects to be removedpublic DXContainer.FolderContents listFolder(String folderPath)
folderPath
- full path to a folder (a String starting with "/"
)FolderContents
giving the contents of the specified folderCopyright © 2023. All Rights Reserved.