Package org.icij.datashare.batch
Class BatchDownload
- java.lang.Object
-
- org.icij.datashare.batch.BatchDownload
-
public class BatchDownload extends Object
-
-
Constructor Summary
Constructors Constructor Description BatchDownload(List<Project> projects, User user, String query)BatchDownload(List<Project> projects, User user, String query, String uri)BatchDownload(List<Project> projects, User user, String query, String uri, Path downloadDir, boolean isEncrypted)BatchDownload(List<Project> projects, User user, String query, Path downloadDir, boolean isEncrypted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathcreateFilename(User user)booleanequals(Object o)booleangetExists()inthashCode()booleanisJsonQuery()static BatchDownloadnullObject()com.fasterxml.jackson.databind.JsonNodequeryAsJson()voidsetZipSize(long zipSize)useful because zipSize cannot be known by object constructor method (before the zip file actually exists on disk) see org.icij.datashare.tasks.BatchDownloadRunnerStringtoString()
-
-
-
Field Detail
-
ZIP_FORMAT
public static final String ZIP_FORMAT
- See Also:
- Constant Field Values
-
uuid
public final String uuid
-
filename
public final Path filename
-
query
public final String query
-
uri
public final String uri
-
user
public final User user
-
encrypted
public final boolean encrypted
-
zipSize
public volatile long zipSize
-
-
Method Detail
-
nullObject
public static BatchDownload nullObject()
-
setZipSize
public void setZipSize(long zipSize)
useful because zipSize cannot be known by object constructor method (before the zip file actually exists on disk) see org.icij.datashare.tasks.BatchDownloadRunner- Parameters:
zipSize-
-
getExists
public boolean getExists()
-
isJsonQuery
public boolean isJsonQuery()
-
queryAsJson
public com.fasterxml.jackson.databind.JsonNode queryAsJson()
-
-