Package org.mapfish.print.servlet.job
Class PrintJobEntry
java.lang.Object
org.mapfish.print.servlet.job.PrintJobEntry
Print Job Entry.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PrintJobEntry(String referenceId, PJsonObject requestData, long startTime) Constructor.PrintJobEntry(String referenceId, PJsonObject requestData, long startTime, AccessAssertion access) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAssert that the current is authorized to access this job.final voidconfigureAccess(Template template, org.springframework.context.ApplicationContext context) Configure the access permissions required to access this print job.final AccessAssertionGet access assertion.final StringgetAppId()Get app ID.final StringGet reference ID.final PJsonObjectGet request data.final DateGet start time (as date).final longGet start time (as long).final longGet time since start.final voidsetAccess(AccessAssertion access) final voidsetReferenceId(String referenceId) final voidsetRequestData(PJsonObject requestData) final voidsetStartTime(long startTime)
-
Constructor Details
-
PrintJobEntry
public PrintJobEntry()Constructor. -
PrintJobEntry
Constructor.- Parameters:
referenceId- reference of the report.requestData- the request datastartTime- the time when the print job started.
-
PrintJobEntry
public PrintJobEntry(String referenceId, PJsonObject requestData, long startTime, AccessAssertion access) Constructor.- Parameters:
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.
-
-
Method Details
-
getReferenceId
Get reference ID. -
setReferenceId
-
getRequestData
Get request data. -
setRequestData
-
getStartTime
public final long getStartTime()Get start time (as long). -
setStartTime
public final void setStartTime(long startTime) -
getStartDate
Get start time (as date). -
getAccess
Get access assertion. -
setAccess
-
getAppId
Get app ID. -
getTimeSinceStart
public final long getTimeSinceStart()Get time since start. -
assertAccess
public final void assertAccess()Assert that the current is authorized to access this job. -
configureAccess
public final void configureAccess(Template template, org.springframework.context.ApplicationContext context) Configure the access permissions required to access this print job.- Parameters:
template- the containing print template which should have sufficient information to configure the access.context- the application context
-