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) getEPUBJobsInQueue.protected static long
getEpubSizeFromTaskManager
(String identifier) getEpubSizeFromTaskManager.getFileExtension.getMimeType.protected String
static void
triggerCreation
(String pi, 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="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
getEpubSizeFromTaskManager.
- Parameters:
identifier
- aString
object.- Returns:
- a long.
-
getEPUBJobsInQueue
getEPUBJobsInQueue.
- Parameters:
identifier
- aString
object.- Returns:
- a int.
-
triggerCreation
public static void triggerCreation(String pi, String downloadIdentifier) throws PresentationException, IndexUnreachableException triggerCreation.
- 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
-