001: /*
002: * Copyright (C) 2006 Erik Swenson - erik@oreports.com
003: *
004: * This program is free software; you can redistribute it and/or modify it
005: * under the terms of the GNU General Public License as published by the Free
006: * Software Foundation; either version 2 of the License, or (at your option)
007: * any later version.
008: *
009: * This program is distributed in the hope that it will be useful, but WITHOUT
010: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
011: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
012: * more details.
013: *
014: * You should have received a copy of the GNU General Public License along with
015: * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
016: * Place - Suite 330, Boston, MA 02111-1307, USA.
017: *
018: */
019:
020: package org.efs.openreports.objects;
021:
022: import java.io.Serializable;
023: import java.util.Date;
024: import java.util.Iterator;
025: import java.util.Map;
026:
027: public class DeliveredReport implements Serializable {
028: private static final long serialVersionUID = 9134829141030371147L;
029:
030: private String requestId;
031: private String userName;
032: private String reportName;
033: private String reportDescription;
034: private String reportFileName;
035: private String deliveryMethod;
036: private Date runDate;
037: private Map parameters;
038:
039: public String getRequestId() {
040: return requestId;
041: }
042:
043: public void setRequestId(String requestId) {
044: this .requestId = requestId;
045: }
046:
047: public String getUserName() {
048: return userName;
049: }
050:
051: public void setUserName(String userName) {
052: this .userName = userName;
053: }
054:
055: public Map getParameters() {
056: return parameters;
057: }
058:
059: public void setParameters(Map parameters) {
060: this .parameters = parameters;
061: }
062:
063: public String getParameterList() {
064: if (parameters == null || parameters.size() < 1)
065: return "";
066:
067: StringBuffer buffer = new StringBuffer();
068:
069: Iterator iterator = parameters.keySet().iterator();
070: while (iterator.hasNext()) {
071: String key = (String) iterator.next();
072: if (key.indexOf("OPENREPORTS_") == -1) {
073: buffer.append(key + "=" + parameters.get(key) + " ");
074: }
075: }
076:
077: return buffer.toString();
078: }
079:
080: public String getReportDescription() {
081: return reportDescription;
082: }
083:
084: public void setReportDescription(String reportDescription) {
085: this .reportDescription = reportDescription;
086: }
087:
088: public String getReportName() {
089: return reportName;
090: }
091:
092: public void setReportName(String reportName) {
093: this .reportName = reportName;
094: }
095:
096: public Date getRunDate() {
097: return runDate;
098: }
099:
100: public void setRunDate(Date runDate) {
101: this .runDate = runDate;
102: }
103:
104: public String getReportFileName() {
105: return reportFileName;
106: }
107:
108: public void setReportFileName(String reportFileName) {
109: this .reportFileName = reportFileName;
110: }
111:
112: public String getDeliveryMethod() {
113: return deliveryMethod;
114: }
115:
116: public void setDeliveryMethod(String deliveryMethod) {
117: this.deliveryMethod = deliveryMethod;
118: }
119: }
|