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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(ViewerMessage message, MessageQueueManager queueManager) call this method to execute the ticketstatic booleancreateLock(Path pdfFile) static de.unigoettingen.sub.commons.contentlib.servlet.model.MetsPdfRequestcreatePdfRequest(Dataset work, Optional<String> divId, boolean usePdfSource) static booleanstatic booleanreleaseLock(Path pdfFile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.goobi.viewer.controller.mq.MessageHandler
call
-
Constructor Details
-
PdfMessageHandler
public PdfMessageHandler()
-
-
Method Details
-
call
Description copied from interface:MessageHandlercall this method to execute the ticket- Specified by:
callin 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:
getMessageHandlerNamein interfaceMessageHandler<MessageStatus>
-