Constructor and Description |
---|
ArchiveRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
DXProject.ArchiveRequestBuilder |
addFile(DXFile file)
Adds the file to the list of files for archival.
|
DXProject.ArchiveRequestBuilder |
addFiles(Collection<DXFile> files)
Adds the files to the list of files for archival.
|
DXProject.ArchiveRequestBuilder |
addFiles(DXFile... files)
Adds the files to the list of files for archival.
|
DXProject.ArchiveResults |
execute()
Executes the request.
|
DXProject.ArchiveRequestBuilder |
setAllCopies(Boolean allCopies)
Sets flag to enforce the transition of files into
ArchivalState.ARCHIVED state. |
DXProject.ArchiveRequestBuilder |
setFolder(String folder)
Sets folder for archival.
|
DXProject.ArchiveRequestBuilder |
setFolder(String folder,
Boolean recurse)
Sets folder for archival.
|
public DXProject.ArchiveRequestBuilder addFile(DXFile file)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
file
- DXFile
instance to be archivedpublic DXProject.ArchiveRequestBuilder addFiles(DXFile... files)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
files
- list of DXFile
instances to be archivedpublic DXProject.ArchiveRequestBuilder addFiles(Collection<DXFile> files)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
files
- collection of DXFile
instances to be archivedpublic DXProject.ArchiveRequestBuilder setFolder(String folder)
This method may only be called once during the construction of a request, and is mutually exclusive with
addFile(DXFile)
, addFiles(DXFile...)
, and addFiles(Collection)
.
folder
- path to folder to be archivedpublic DXProject.ArchiveRequestBuilder setFolder(String folder, Boolean recurse)
This method may only be called once during the construction of a request, and is mutually exclusive with
addFile(DXFile)
, addFiles(DXFile...)
, and addFiles(Collection)
.
folder
- path to folder to be archivedrecurse
- whether to archive all files in subfolders of folder
public DXProject.ArchiveRequestBuilder setAllCopies(Boolean allCopies)
ArchivalState.ARCHIVED
state. If true, archive all
the copies of files in projects with the same billTo
org. If false, archive only the copy of the file
in the current project, while other copies of the file in the rest projects with the same billTo
org
will stay in the live state.allCopies
- whether to enforce archival of all copies of files within the same billTo
orgpublic DXProject.ArchiveResults execute()
Copyright © 2023. All Rights Reserved.