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
FieldsFields 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
ConstructorsConstructorDescriptionConstructor for PDFDownloadJob.PDFDownloadJob(String pi, String logid, LocalDateTime lastRequested, long ttl) Constructor for PDFDownloadJob. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidgenerateDownloadIdentifier.static StringgenerateJobId(String pi, String logId) getDisplayName.getFileExtension.getMimeType.static intgetPDFJobsInQueue(String identifier) getPDFJobsInQueue.protected Stringprotected voidDeprecated.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- aStringobject.logid- aStringobject.lastRequested- aLocalDateTimeobject.ttl- a long.
-
-
Method Details
-
generateDownloadIdentifier
public final void generateDownloadIdentifier()generateDownloadIdentifier.
- Specified by:
generateDownloadIdentifierin classDownloadJob
-
getMimeType
getMimeType.
- Specified by:
getMimeTypein classDownloadJob- Returns:
- a
Stringobject.
-
getFileExtension
getFileExtension.
- Specified by:
getFileExtensionin classDownloadJob- Returns:
- a
Stringobject.
-
getDisplayName
getDisplayName.
- Specified by:
getDisplayNamein classDownloadJob- Returns:
- a
Stringobject.
-
getPDFJobsInQueue
getPDFJobsInQueue.
- Parameters:
identifier- aStringobject.- Returns:
- a int.
-
getRestApiPath
- Specified by:
getRestApiPathin classDownloadJob- Returns:
String
-
triggerCreation
@Deprecated(since="24.10") protected void triggerCreation() throws PresentationException, IndexUnreachableExceptionDeprecated.Description copied from class:DownloadJobtriggerCreation.
- Specified by:
triggerCreationin classDownloadJob- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
generateJobId
-