Class PdfDownloadJob
java.lang.Object
io.goobi.viewer.model.job.download.DownloadJob
io.goobi.viewer.model.job.download.PdfDownloadJob
Download job that generates a PDF file for a digitized record or one of its structural divisions via the content server. Supports optional log ID
scoping, configuration variants, and pre-existing PDF source files.
-
Field Summary
FieldsFields inherited from class io.goobi.viewer.model.job.download.DownloadJob
FILE_EXTENSION_CREATING_LOCK -
Constructor Summary
ConstructorsConstructorDescriptionPdfDownloadJob(ViewerMessage pdfMessage) PdfDownloadJob(String pi, String logId, String configVariant, boolean usePdfSource) PdfDownloadJob(String pi, String logId, String configVariant, boolean usePdfSource, Path targetFolder) PdfDownloadJob(Path path) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreate(Dataset work, OutputStream out) voidcreate(OutputStream out) static de.unigoettingen.sub.commons.contentlib.servlet.model.MetsPdfRequestcreatePdfRequest(Dataset work, Optional<String> divId, boolean usePdfSource, String configVariant) getLogId()getPath()getType()booleanstatic intMethods inherited from class io.goobi.viewer.model.job.download.DownloadJob
create, createLock, from, getDataset, getExirationTime, getPi, getTempPath, getTimeToLive, isExpired, isLocked, notifyObserver, releaseLock
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
PdfDownloadJob
-
PdfDownloadJob
-
PdfDownloadJob
-
PdfDownloadJob
-
-
Method Details
-
getLogId
-
getConfigVariant
-
isUsePdfSource
public boolean isUsePdfSource() -
getPath
- Specified by:
getPathin classDownloadJob
-
getType
- Specified by:
getTypein classDownloadJob
-
getFilename
- Specified by:
getFilenamein classDownloadJob
-
create
public void create(Dataset work) throws IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException - Specified by:
createin classDownloadJob- Throws:
IOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionPresentationException
-
create
public void create(OutputStream out) throws IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException, IndexUnreachableException, RecordNotFoundException, URISyntaxException - Throws:
IOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionPresentationExceptionIndexUnreachableExceptionRecordNotFoundExceptionURISyntaxException
-
create
public void create(Dataset work, OutputStream out) throws IOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, PresentationException, URISyntaxException - Throws:
IOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionPresentationExceptionURISyntaxException
-
getDownloadFilename
- Specified by:
getDownloadFilenamein classDownloadJob
-
createPdfRequest
public static de.unigoettingen.sub.commons.contentlib.servlet.model.MetsPdfRequest createPdfRequest(Dataset work, Optional<String> divId, boolean usePdfSource, String configVariant) throws URISyntaxException - Throws:
URISyntaxException
-
removeFilesForRecord
-
getMimeType
- Specified by:
getMimeTypein classDownloadJob
-