public class PendingPrintJob extends PrintJobStatus
| Constructor and Description |
|---|
PendingPrintJob(java.lang.String referenceId,
java.lang.String appId,
java.util.Date startDate,
long requestCount,
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.
|
boolean |
isRunning() |
static PendingPrintJob |
load(org.json.JSONObject metadata,
java.lang.String referenceId,
java.lang.String appId,
java.util.Date startDate,
long requestCount,
AccessAssertion reportAccess)
Construct a new instance from the values provided.
|
void |
setRunning(boolean running) |
assertAccess, getAccess, getAppId, getCompletionDate, getElapsedTime, getFileName, getReferenceId, getRequestCount, getStartDate, load, setCompletionDate, storepublic PendingPrintJob(java.lang.String referenceId,
java.lang.String appId,
java.util.Date startDate,
long requestCount,
AccessAssertion access)
referenceId - reference of the report.appId - the appId used for loading the configuration.startDate - the start date.requestCount - the total number of requests made when the job was submitted.access - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.public static PendingPrintJob load(org.json.JSONObject metadata, java.lang.String referenceId, java.lang.String appId, java.util.Date startDate, long requestCount, 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.requestCount - the total number of requests made when the job was submitted.reportAccess - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.org.json.JSONExceptionprotected final void addExtraParameters(org.json.JSONObject metadata)
throws org.json.JSONException
PrintJobStatusaddExtraParameters in class PrintJobStatusmetadata - the json object that contains the metadataorg.json.JSONExceptionpublic final boolean isRunning()
public final void setRunning(boolean running)