Class PrintJobEntryImpl

java.lang.Object
org.mapfish.print.servlet.job.impl.PrintJobEntryImpl
All Implemented Interfaces:
PrintJobEntry

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

    • PrintJobEntryImpl

      public PrintJobEntryImpl()
      Constructor.
    • PrintJobEntryImpl

      public PrintJobEntryImpl(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.
    • PrintJobEntryImpl

      public PrintJobEntryImpl(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()
      Description copied from interface: PrintJobEntry
      Get reference ID.
      Specified by:
      getReferenceId in interface PrintJobEntry
    • setReferenceId

      public final void setReferenceId(String referenceId)
    • getRequestData

      public final PJsonObject getRequestData()
      Description copied from interface: PrintJobEntry
      Get request data.
      Specified by:
      getRequestData in interface PrintJobEntry
    • 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 interface PrintJobEntry
    • setStartTime

      public final void setStartTime(long startTime)
    • getStartDate

      public final Date getStartDate()
      Description copied from interface: PrintJobEntry
      Get start time (as date).
      Specified by:
      getStartDate in interface PrintJobEntry
    • getAccess

      public final AccessAssertion getAccess()
      Description copied from interface: PrintJobEntry
      Get access assertion.
      Specified by:
      getAccess in interface PrintJobEntry
    • setAccess

      public final void setAccess(AccessAssertion access)
    • getAppId

      public final String getAppId()
      Description copied from interface: PrintJobEntry
      Get app ID.
      Specified by:
      getAppId in interface PrintJobEntry
    • getTimeSinceStart

      public final long getTimeSinceStart()
      Description copied from interface: PrintJobEntry
      Get time since start.
      Specified by:
      getTimeSinceStart in interface PrintJobEntry
    • assertAccess

      public final void assertAccess()
      Description copied from interface: PrintJobEntry
      Assert that the current is authorized to access this job.
      Specified by:
      assertAccess in interface PrintJobEntry
    • 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