org.apertereports.backbone.jms
Class ReportOrderPusher
java.lang.Object
org.apertereports.backbone.jms.ReportOrderPusher
public class ReportOrderPusher
- extends Object
Helper class for creating a report order and pushing it to JMS queue.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportOrderPusher
public ReportOrderPusher()
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 templateparameters - Report paramtersformat - Output formatrecipientEmail - A recipient email address that should receive the report generation resultusername - Order creator loginreplyToQ - JMS queue name the result should be replied to
- Returns:
- A configured report order
Copyright © 2011. All Rights Reserved.