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.static String
generateJobId
(String pi, String logId) getDisplayName.getFileExtension.getMimeType.static int
getPDFJobsInQueue
(String identifier) getPDFJobsInQueue.protected String
protected void
Deprecated.Methods inherited from class io.goobi.viewer.model.job.download.DownloadJob
checkDownload, deleteFile, generateDownloadJobId, getDescription, getDownloadFile, getFile, getId, getIdentifier, 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
-
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.
-
getPDFJobsInQueue
getPDFJobsInQueue.
- Parameters:
identifier
- aString
object.- Returns:
- a int.
-
getRestApiPath
- Specified by:
getRestApiPath
in classDownloadJob
- Returns:
String
-
triggerCreation
@Deprecated(since="24.10") protected void triggerCreation() throws PresentationException, IndexUnreachableExceptionDeprecated.Description copied from class:DownloadJob
triggerCreation.
- Specified by:
triggerCreation
in classDownloadJob
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-
generateJobId
-