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
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 EPUBDownloadJob.EPUBDownloadJob
(String pi, String logid, LocalDateTime lastRequested, long ttl) Constructor for EPUBDownloadJob. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
generateDownloadIdentifier.getDisplayName.static int
getEPUBJobsInQueue
(String identifier) Deprecated.jobs are no longs handled via TaskManager but via queuesprotected static long
getEpubSizeFromTaskManager
(String identifier) Deprecated.jobs are no longs handled via TaskManager but via queuesgetFileExtension.getMimeType.protected String
protected void
Deprecated.static void
triggerCreation
(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
- 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.
-
getEpubSizeFromTaskManager
Deprecated.jobs are no longs handled via TaskManager but via queuesgetEpubSizeFromTaskManager.
- Parameters:
identifier
- aString
object.- Returns:
- a long.
-
getEPUBJobsInQueue
Deprecated.jobs are no longs handled via TaskManager but via queuesgetEPUBJobsInQueue.
- Parameters:
identifier
- aString
object.- 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
- aString
object.downloadIdentifier
- aString
object.- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.DownloadException
- if any.
-
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.
-