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 GeneratedReport implements Serializable {
028: private static final long serialVersionUID = 9134829141030371147L;
029:
030: private String userName;
031: private String reportName;
032: private String reportDescription;
033: private String reportFileName;
034: private Date runDate;
035: private Map parameters;
036:
037: public String getUserName() {
038: return userName;
039: }
040:
041: public void setUserName(String userName) {
042: this .userName = userName;
043: }
044:
045: public Map getParameters() {
046: return parameters;
047: }
048:
049: public void setParameters(Map parameters) {
050: this .parameters = parameters;
051: }
052:
053: public String getParameterList() {
054: if (parameters == null || parameters.size() < 1)
055: return "";
056:
057: StringBuffer buffer = new StringBuffer();
058:
059: Iterator iterator = parameters.keySet().iterator();
060: while (iterator.hasNext()) {
061: String key = (String) iterator.next();
062: if (key.indexOf("OPENREPORTS_") == -1) {
063: buffer.append(key + "=" + parameters.get(key) + " ");
064: }
065: }
066:
067: return buffer.toString();
068: }
069:
070: public String getReportDescription() {
071: return reportDescription;
072: }
073:
074: public void setReportDescription(String reportDescription) {
075: this .reportDescription = reportDescription;
076: }
077:
078: public String getReportName() {
079: return reportName;
080: }
081:
082: public void setReportName(String reportName) {
083: this .reportName = reportName;
084: }
085:
086: public Date getRunDate() {
087: return runDate;
088: }
089:
090: public void setRunDate(Date runDate) {
091: this .runDate = runDate;
092: }
093:
094: public String getReportFileName() {
095: return reportFileName;
096: }
097:
098: public void setReportFileName(String reportFileName) {
099: this.reportFileName = reportFileName;
100: }
101: }
|