Class DownloadJobTools
java.lang.Object
io.goobi.viewer.model.job.download.DownloadJobTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Deprecated.static File
getDownloadFileStatic
(String identifier, String type, String extension) getDownloadFileStatic.static int
Delete all jobs and associated files for the given record identifier.
-
Method Details
-
removeJobsForRecord
Delete all jobs and associated files for the given record identifier.- Parameters:
pi
- Record identifier- Returns:
- Number of removed jobs
- Throws:
DAOException
-
cleanupExpiredDownloads
Deprecated.Only used in deprecated methodDownloadJob.checkDownload(String, String, String, String, String, long)
cleanupExpiredDownloads.
- Returns:
- a int.
- Throws:
DAOException
- if any.
-
getDownloadFileStatic
getDownloadFileStatic.
- Parameters:
identifier
- the identifier of the downloadtype
- either "pdf" or "epub"extension
- aString
object.- Returns:
- The Download location file, ending with ".pdf" or ".epub" depending on type
- Throws:
IllegalArgumentException
- If the hash is null, empty or blank, or if the type is not "epub" or "pdf"
-
DownloadJob.checkDownload(String, String, String, String, String, long)