public final class SuccessfulPrintJob extends PrintJobStatus
| Constructor and Description |
|---|
SuccessfulPrintJob(java.lang.String referenceId,
java.net.URI reportURI,
java.lang.String appId,
java.util.Date startDate,
java.util.Date completionDate,
long requestCount,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String fileExtension,
AccessAssertion access)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraParameters(org.json.JSONObject metadata)
Add extra information to the metadata object being put in the registry.
|
java.lang.String |
getFileExtension() |
java.lang.String |
getMimeType() |
java.net.URI |
getURI() |
static SuccessfulPrintJob |
load(org.json.JSONObject metadata,
java.lang.String referenceId,
java.lang.String appId,
java.util.Date startDate,
java.util.Date completionDate,
long requestCount,
java.lang.String fileName,
AccessAssertion reportAccess)
Construct a new instance from the values provided.
|
assertAccess, getAccess, getAppId, getCompletionDate, getElapsedTime, getFileName, getReferenceId, getRequestCount, getStartDate, load, setCompletionDate, storepublic SuccessfulPrintJob(java.lang.String referenceId,
java.net.URI reportURI,
java.lang.String appId,
java.util.Date startDate,
java.util.Date completionDate,
long requestCount,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String fileExtension,
AccessAssertion access)
referenceId - reference of the report.reportURI - the uri for fetching the report.appId - the appId used for loading the configuration.startDate - the date when the print job started.completionDate - the date when the print job completed.requestCount - the total number of requests made when the job was submitted.fileName - the fileName to send to the client.mimeType - the mimetype of the printed filefileExtension - the file extension (to be added to the filename)access - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.public java.net.URI getURI()
public java.lang.String getMimeType()
public java.lang.String getFileExtension()
public static SuccessfulPrintJob load(org.json.JSONObject metadata, java.lang.String referenceId, java.lang.String appId, java.util.Date startDate, java.util.Date completionDate, long requestCount, java.lang.String fileName, AccessAssertion reportAccess) throws org.json.JSONException
metadata - the metadata retrieved from the registry. Only need it to get the extra information that is not stored by
parent class.referenceId - reference of the report.appId - the appId used for loading the configuration.startDate - the start date.completionDate - the date when the print job completed.requestCount - the total number of requests made when the job was submitted.fileName - the fileName to send to the client.reportAccess - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.org.json.JSONExceptionprotected void addExtraParameters(org.json.JSONObject metadata)
throws org.json.JSONException
PrintJobStatusaddExtraParameters in class PrintJobStatusmetadata - the json object that contains the metadataorg.json.JSONException