Class PrintJobEntryImpl
- java.lang.Object
-
- org.mapfish.print.servlet.job.impl.PrintJobEntryImpl
-
- All Implemented Interfaces:
PrintJobEntry
@Embeddable public class PrintJobEntryImpl extends java.lang.Object implements PrintJobEntry
Print Job Entry.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
PrintJobEntryImpl
public PrintJobEntryImpl()
Constructor.
-
PrintJobEntryImpl
public PrintJobEntryImpl(java.lang.String referenceId, PJsonObject requestData, long startTime)
Constructor.- Parameters:
referenceId
- reference of the report.requestData
- the request datastartTime
- the time when the print job started.
-
PrintJobEntryImpl
public PrintJobEntryImpl(java.lang.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 Detail
-
getReferenceId
public final java.lang.String getReferenceId()
Description copied from interface:PrintJobEntry
Get reference ID.- Specified by:
getReferenceId
in interfacePrintJobEntry
-
setReferenceId
public final void setReferenceId(java.lang.String referenceId)
-
getRequestData
public final PJsonObject getRequestData()
Description copied from interface:PrintJobEntry
Get request data.- Specified by:
getRequestData
in interfacePrintJobEntry
-
setRequestData
public final void setRequestData(PJsonObject requestData)
-
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
public final java.util.Date getStartDate()
Description copied from interface:PrintJobEntry
Get start time (as date).- Specified by:
getStartDate
in interfacePrintJobEntry
-
getAccess
public final AccessAssertion getAccess()
Description copied from interface:PrintJobEntry
Get access assertion.- Specified by:
getAccess
in interfacePrintJobEntry
-
setAccess
public final void setAccess(AccessAssertion access)
-
getAppId
public final java.lang.String 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
-
-