org.apertereports.backbone.jms
Class ReportOrderPusher

java.lang.Object
  extended by org.apertereports.backbone.jms.ReportOrderPusher

public class ReportOrderPusher
extends Object

Helper class for creating a report order and pushing it to JMS queue.


Constructor Summary
ReportOrderPusher()
           
 
Method Summary
static void addToJMS(Long id)
          Pushes a message to JMS.
static ReportOrder buildNewOrder(ReportTemplate report, Map<String,String> parameters, String format, String recipientEmail, String username, String replyToQ)
          Builds a new report order with given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportOrderPusher

public ReportOrderPusher()
Method Detail

addToJMS

public static void addToJMS(Long id)
Pushes a message to JMS. The message contains a single integer value which is the report order ID.

Parameters:
id - Report order ID

buildNewOrder

public static ReportOrder buildNewOrder(ReportTemplate report,
                                        Map<String,String> parameters,
                                        String format,
                                        String recipientEmail,
                                        String username,
                                        String replyToQ)
Builds a new report order with given parameters. Returns null when the paramters cannot be converted to an XML representation or another report order with equal configuration already exists in database.

Parameters:
report - A Jasper report template
parameters - Report paramters
format - Output format
recipientEmail - A recipient email address that should receive the report generation result
username - Order creator login
replyToQ - JMS queue name the result should be replied to
Returns:
A configured report order


Copyright © 2011. All Rights Reserved.