Class PDFDownloadJob
java.lang.Object
io.goobi.viewer.model.job.download.DownloadJob
io.goobi.viewer.model.job.download.PDFDownloadJob
- All Implemented Interfaces:
Serializable
PDFDownloadJob class.
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.job.download.DownloadJob
DATETIME_FORMAT, description, id, identifier, lastRequested, logId, message, pi, status, ttl, TTL_FORMAT, type
-
Constructor Summary
ConstructorDescriptionConstructor for PDFDownloadJob.PDFDownloadJob
(String pi, String logid, LocalDateTime lastRequested, long ttl) Constructor for PDFDownloadJob. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
generateDownloadIdentifier.getDisplayName.getFileExtension.getMimeType.static int
getPDFJobsInQueue
(String identifier) getPDFJobsInQueue.protected String
static void
triggerCreation
(String pi, String logId, String downloadIdentifier) triggerCreation.Methods inherited from class io.goobi.viewer.model.job.download.DownloadJob
deleteFile, generateDownloadJobId, getDescription, getDownloadFile, getFile, getId, getIdentifier, getJobStatus, getLastRequested, getLogId, getMessage, getObservers, getPi, getStatus, getTimeToLive, getTtl, getType, isExpired, notifyObservers, ocrFolderExists, postJobRequest, resetObservers, setDescription, setId, setIdentifier, setLastRequested, setLogId, setMessage, setObservers, setPi, setStatus, setTtl, toString, updateStatus
-
Field Details
-
LOCAL_TYPE
ConstantTYPE="pdf"
- See Also:
-
-
Constructor Details
-
PDFDownloadJob
public PDFDownloadJob()Constructor for PDFDownloadJob.
-
PDFDownloadJob
Constructor for PDFDownloadJob.
- Parameters:
pi
- aString
object.logid
- aString
object.lastRequested
- aLocalDateTime
object.ttl
- a long.
-
-
Method Details
-
generateDownloadIdentifier
public final void generateDownloadIdentifier()generateDownloadIdentifier.
- Specified by:
generateDownloadIdentifier
in classDownloadJob
-
getMimeType
getMimeType.
- Specified by:
getMimeType
in classDownloadJob
- Returns:
- a
String
object.
-
getFileExtension
getFileExtension.
- Specified by:
getFileExtension
in classDownloadJob
- Returns:
- a
String
object.
-
getDisplayName
getDisplayName.
- Specified by:
getDisplayName
in classDownloadJob
- Returns:
- a
String
object.
-
triggerCreation
public static void triggerCreation(String pi, String logId, String downloadIdentifier) throws PresentationException, IndexUnreachableException triggerCreation.
- Parameters:
pi
- aString
object.logId
- aString
object.downloadIdentifier
- aString
object.- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-
getPDFJobsInQueue
getPDFJobsInQueue.
- Parameters:
identifier
- aString
object.- Returns:
- a int.
-
getRestApiPath
- Specified by:
getRestApiPath
in classDownloadJob
- Returns:
String
-