Class PrintJobEntryImpl

  • All Implemented Interfaces:
    PrintJobEntry

    @Embeddable
    public class PrintJobEntryImpl
    extends java.lang.Object
    implements PrintJobEntry
    Print Job Entry.
    • 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 data
        startTime - 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 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 Detail

      • setReferenceId

        public final void setReferenceId​(java.lang.String referenceId)
      • setRequestData

        public final void setRequestData​(PJsonObject requestData)
      • 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 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