Class EPUBDownloadJob
java.lang.Object
io.goobi.viewer.model.job.download.DownloadJob
io.goobi.viewer.model.job.download.EPUBDownloadJob
- All Implemented Interfaces:
Serializable
EPUBDownloadJob 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 EPUBDownloadJob.EPUBDownloadJob(String pi, String logid, LocalDateTime lastRequested, long ttl) Constructor for EPUBDownloadJob. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidgenerateDownloadIdentifier.getDisplayName.static intgetEPUBJobsInQueue(String identifier) Deprecated.jobs are no longs handled via TaskManager but via queuesprotected static longgetEpubSizeFromTaskManager(String identifier) Deprecated.jobs are no longs handled via TaskManager but via queuesgetFileExtension.getMimeType.protected Stringprotected voidDeprecated.static voidtriggerCreation(String pi, String downloadIdentifier) Deprecated.Creation via TaskManager request is no longer used and this method is never calledMethods 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="epub"- See Also:
-
-
Constructor Details
-
EPUBDownloadJob
public EPUBDownloadJob()Constructor for EPUBDownloadJob.
-
EPUBDownloadJob
Constructor for EPUBDownloadJob.
- 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.
-
getEpubSizeFromTaskManager
Deprecated.jobs are no longs handled via TaskManager but via queuesgetEpubSizeFromTaskManager.
- Parameters:
identifier- aStringobject.- Returns:
- a long.
-
getEPUBJobsInQueue
Deprecated.jobs are no longs handled via TaskManager but via queuesgetEPUBJobsInQueue.
- Parameters:
identifier- aStringobject.- Returns:
- a int.
-
triggerCreation
@Deprecated(since="24.10") public static void triggerCreation(String pi, String downloadIdentifier) throws PresentationException, IndexUnreachableException Deprecated.Creation via TaskManager request is no longer used and this method is never calledtriggerCreation.
- Parameters:
pi- aStringobject.downloadIdentifier- aStringobject.- Throws:
PresentationException- if any.IndexUnreachableException- if any.DownloadException- if any.
-
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.
-