Class PrintJobEntry

java.lang.Object
org.mapfish.print.servlet.job.PrintJobEntry

@Embeddable public class PrintJobEntry extends Object
Print Job Entry.
  • Constructor Details

    • PrintJobEntry

      public PrintJobEntry()
      Constructor.
    • PrintJobEntry

      public PrintJobEntry(String referenceId, PJsonObject requestData, long startTime)
      Constructor.
      Parameters:
      referenceId - reference of the report.
      requestData - the request data
      startTime - 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 data
      startTime - 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

      public final String getReferenceId()
      Get reference ID.
    • setReferenceId

      public final void setReferenceId(String referenceId)
    • getRequestData

      public final PJsonObject getRequestData()
      Get request data.
    • setRequestData

      public final void setRequestData(PJsonObject requestData)
    • getStartTime

      public final long getStartTime()
      Get start time (as long).
    • setStartTime

      public final void setStartTime(long startTime)
    • getStartDate

      public final Date getStartDate()
      Get start time (as date).
    • getAccess

      public final AccessAssertion getAccess()
      Get access assertion.
    • setAccess

      public final void setAccess(AccessAssertion access)
    • getAppId

      public final String 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