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 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
-
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:PrintJobEntryGet reference ID.- Specified by:
getReferenceIdin interfacePrintJobEntry
-
setReferenceId
-
getRequestData
Description copied from interface:PrintJobEntryGet request data.- Specified by:
getRequestDatain interfacePrintJobEntry
-
setRequestData
-
getStartTime
public final long getStartTime()Description copied from interface:PrintJobEntryGet start time (as long).- Specified by:
getStartTimein interfacePrintJobEntry
-
setStartTime
public final void setStartTime(long startTime) -
getStartDate
Description copied from interface:PrintJobEntryGet start time (as date).- Specified by:
getStartDatein interfacePrintJobEntry
-
getAccess
Description copied from interface:PrintJobEntryGet access assertion.- Specified by:
getAccessin interfacePrintJobEntry
-
setAccess
-
getAppId
Description copied from interface:PrintJobEntryGet app ID.- Specified by:
getAppIdin interfacePrintJobEntry
-
getTimeSinceStart
public final long getTimeSinceStart()Description copied from interface:PrintJobEntryGet time since start.- Specified by:
getTimeSinceStartin interfacePrintJobEntry
-
assertAccess
public final void assertAccess()Description copied from interface:PrintJobEntryAssert that the current is authorized to access this job.- Specified by:
assertAccessin 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
-