public class FailedPrintJob extends PrintJobStatus
| Constructor and Description |
|---|
FailedPrintJob(java.lang.String referenceId,
java.lang.String appId,
java.util.Date completionDate,
java.lang.String fileName,
java.lang.String error,
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 |
getError() |
static FailedPrintJob |
load(org.json.JSONObject metadata,
java.lang.String referenceId,
java.lang.String appId,
java.util.Date completionDate,
java.lang.String fileName,
AccessAssertion reportAccess)
Construct a new instance from the values provided.
|
getAccess, getAppId, getCompletionDate, getFileName, getReferenceId, load, storepublic FailedPrintJob(java.lang.String referenceId,
java.lang.String appId,
java.util.Date completionDate,
java.lang.String fileName,
java.lang.String error,
AccessAssertion access)
referenceId - reference of the report.appId - the appId used for loading the configuration.completionDate - the date when the print job completedfileName - the fileName to send to the client.error - the error that occurred during running.access - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.protected final void addExtraParameters(org.json.JSONObject metadata)
throws org.json.JSONException
PrintJobStatusaddExtraParameters in class PrintJobStatusmetadata - the json object that contains the metadataorg.json.JSONExceptionpublic static FailedPrintJob load(org.json.JSONObject metadata, java.lang.String referenceId, java.lang.String appId, java.util.Date completionDate, 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.completionDate - the date when the print job completedfileName - the fileName to send to the client.reportAccess - the access/roles required to download this report. Typically this is all the roles in the template and
the configuration.org.json.JSONExceptionpublic final java.lang.String getError()