Package io.goobi.viewer.model.job.mq
Class PdfMessageHandler
java.lang.Object
io.goobi.viewer.model.job.mq.PdfMessageHandler
- All Implemented Interfaces:
MessageHandler<MessageStatus>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall
(ViewerMessage message, MessageQueueManager queueManager) call this method to execute the ticketstatic boolean
createLock
(Path pdfFile) static de.unigoettingen.sub.commons.contentlib.servlet.model.MetsPdfRequest
createPdfRequest
(Dataset work, Optional<String> divId, boolean usePdfSource) static boolean
static boolean
releaseLock
(Path pdfFile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.goobi.viewer.controller.mq.MessageHandler
call
-
Constructor Details
-
PdfMessageHandler
public PdfMessageHandler()
-
-
Method Details
-
call
Description copied from interface:MessageHandler
call this method to execute the ticket- Specified by:
call
in interfaceMessageHandler<MessageStatus>
- Parameters:
message
- The ticket to handlequeueManager
- reference to to manage the queue- Returns:
- V
-
createLock
- Throws:
IOException
-
releaseLock
- Throws:
IOException
-
isLocked
- Throws:
IOException
-
createPdfRequest
public static de.unigoettingen.sub.commons.contentlib.servlet.model.MetsPdfRequest createPdfRequest(Dataset work, Optional<String> divId, boolean usePdfSource) throws URISyntaxException - Throws:
URISyntaxException
-
getMessageHandlerName
- Specified by:
getMessageHandlerName
in interfaceMessageHandler<MessageStatus>
-