@Embeddable public class PrintJobEntryImpl extends java.lang.Object implements PrintJobEntry
| Constructor and Description |
|---|
PrintJobEntryImpl()
Constructor.
|
PrintJobEntryImpl(java.lang.String referenceId,
PJsonObject requestData,
long startTime)
Constructor.
|
PrintJobEntryImpl(java.lang.String referenceId,
PJsonObject requestData,
long startTime,
AccessAssertion access)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertAccess()
Assert that the current is authorized to access this job.
|
void |
configureAccess(Template template,
org.springframework.context.ApplicationContext context)
Configure the access permissions required to access this print job.
|
AccessAssertion |
getAccess()
Get access assertion.
|
java.lang.String |
getAppId()
Get app ID.
|
java.lang.String |
getReferenceId()
Get reference ID.
|
PJsonObject |
getRequestData()
Get request data.
|
java.util.Date |
getStartDate()
Get start time (as date).
|
long |
getStartTime()
Get start time (as long).
|
long |
getTimeSinceStart()
Get time since start.
|
void |
setAccess(AccessAssertion access) |
void |
setReferenceId(java.lang.String referenceId) |
void |
setRequestData(PJsonObject requestData) |
void |
setStartTime(long startTime) |
public PrintJobEntryImpl()
public PrintJobEntryImpl(java.lang.String referenceId,
PJsonObject requestData,
long startTime)
referenceId - reference of the report.requestData - the request datastartTime - the time when the print job started.public PrintJobEntryImpl(java.lang.String referenceId,
PJsonObject requestData,
long startTime,
AccessAssertion access)
referenceId - reference of the report.requestData - the request datastartTime - the time when the print job started.access - the an access control object for downloading this report. Typically this is combined access of the
template and the configuration.public final void setReferenceId(java.lang.String referenceId)
public final void setRequestData(PJsonObject requestData)
public final void setAccess(AccessAssertion access)
public final java.lang.String getReferenceId()
PrintJobEntrygetReferenceId in interface PrintJobEntrypublic final PJsonObject getRequestData()
PrintJobEntrygetRequestData in interface PrintJobEntrypublic final long getStartTime()
PrintJobEntrygetStartTime in interface PrintJobEntrypublic final void setStartTime(long startTime)
public final java.util.Date getStartDate()
PrintJobEntrygetStartDate in interface PrintJobEntrypublic final AccessAssertion getAccess()
PrintJobEntrygetAccess in interface PrintJobEntrypublic final java.lang.String getAppId()
PrintJobEntrygetAppId in interface PrintJobEntrypublic final long getTimeSinceStart()
PrintJobEntrygetTimeSinceStart in interface PrintJobEntrypublic final void assertAccess()
PrintJobEntryassertAccess in interface PrintJobEntrypublic final void configureAccess(Template template, org.springframework.context.ApplicationContext context)
template - the containing print template which should have sufficient
information to configure the access.context - the application context