Class PrintJobEntryImpl
java.lang.Object
org.mapfish.print.servlet.job.impl.PrintJobEntryImpl
- All Implemented Interfaces:
PrintJobEntry
Print Job Entry.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PrintJobEntryImpl
(String referenceId, PJsonObject requestData, long startTime) Constructor.PrintJobEntryImpl
(String referenceId, PJsonObject requestData, long startTime, AccessAssertion access) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Assert that the current is authorized to access this job.final void
configureAccess
(Template template, org.springframework.context.ApplicationContext context) Configure the access permissions required to access this print job.final AccessAssertion
Get access assertion.final String
getAppId()
Get app ID.final String
Get reference ID.final PJsonObject
Get request data.final Date
Get start time (as date).final long
Get start time (as long).final long
Get time since start.final void
setAccess
(AccessAssertion access) final void
setReferenceId
(String referenceId) final void
setRequestData
(PJsonObject requestData) final void
setStartTime
(long startTime)
-
Constructor Details
-
PrintJobEntryImpl
public PrintJobEntryImpl()Constructor. -
PrintJobEntryImpl
Constructor.- Parameters:
referenceId
- reference of the report.requestData
- the request datastartTime
- the time when the print job started.
-
PrintJobEntryImpl
public PrintJobEntryImpl(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
Description copied from interface:PrintJobEntry
Get reference ID.- Specified by:
getReferenceId
in interfacePrintJobEntry
-
setReferenceId
-
getRequestData
Description copied from interface:PrintJobEntry
Get request data.- Specified by:
getRequestData
in interfacePrintJobEntry
-
setRequestData
-
getStartTime
public final long getStartTime()Description copied from interface:PrintJobEntry
Get start time (as long).- Specified by:
getStartTime
in interfacePrintJobEntry
-
setStartTime
public final void setStartTime(long startTime) -
getStartDate
Description copied from interface:PrintJobEntry
Get start time (as date).- Specified by:
getStartDate
in interfacePrintJobEntry
-
getAccess
Description copied from interface:PrintJobEntry
Get access assertion.- Specified by:
getAccess
in interfacePrintJobEntry
-
setAccess
-
getAppId
Description copied from interface:PrintJobEntry
Get app ID.- Specified by:
getAppId
in interfacePrintJobEntry
-
getTimeSinceStart
public final long getTimeSinceStart()Description copied from interface:PrintJobEntry
Get time since start.- Specified by:
getTimeSinceStart
in interfacePrintJobEntry
-
assertAccess
public final void assertAccess()Description copied from interface:PrintJobEntry
Assert that the current is authorized to access this job.- Specified by:
assertAccess
in interfacePrintJobEntry
-
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
-