public abstract class PrintJob extends java.lang.Object implements java.util.concurrent.Callable<PrintJobResult>
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
PrintJob.PrintAction
Interface encapsulating the code to run with the open output stream.
|
| Constructor and Description |
|---|
PrintJob() |
| Modifier and Type | Method and Description |
|---|---|
PrintJobResult |
call() |
protected PrintJobResult |
createResult(java.net.URI reportURI,
java.lang.String fileName,
java.lang.String fileExtension,
java.lang.String mimeType,
java.lang.String referenceId)
Create Print Job Result.
|
PrintJobEntry |
getEntry() |
void |
setEntry(PrintJobEntry entry) |
void |
setSecurityContext(org.springframework.security.core.context.SecurityContext securityContext)
The security context that contains the information about the user that made the request.
|
protected abstract java.net.URI |
withOpenOutputStream(PrintJob.PrintAction function)
Open an OutputStream and execute the function using the OutputStream.
|
public final PrintJobEntry getEntry()
public final void setEntry(PrintJobEntry entry)
protected abstract java.net.URI withOpenOutputStream(PrintJob.PrintAction function) throws java.lang.Exception
function - the function to executejava.lang.Exceptionprotected PrintJobResult createResult(java.net.URI reportURI, java.lang.String fileName, java.lang.String fileExtension, java.lang.String mimeType, java.lang.String referenceId)
reportURI - the report URIfileName - the file namefileExtension - the file extensionmimeType - the mime typepublic final PrintJobResult call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<PrintJobResult>java.lang.Exceptionpublic final void setSecurityContext(org.springframework.security.core.context.SecurityContext securityContext)
SecurityContextHolder when the thread starts executing.securityContext - the conext object