KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > war > dto > ReportDataSourceWrapper


1 /*
2  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed WITHOUT ANY WARRANTY; and without the
10  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
15  * or write to:
16  *
17  * Free Software Foundation, Inc.,
18  * 59 Temple Place - Suite 330,
19  * Boston, MA USA 02111-1307
20  */

21 package com.jaspersoft.jasperserver.war.dto;
22
23 import java.io.Serializable JavaDoc;
24 import java.util.ArrayList JavaDoc;
25 import java.util.List JavaDoc;
26
27 import com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportDataSource;
28 import com.jaspersoft.jasperserver.war.common.JasperServerConstImpl;
29
30 public class ReportDataSourceWrapper extends BaseDTO implements Serializable JavaDoc {
31     private ReportDataSource reportDataSource;
32     private List JavaDoc allDatasources;
33     private List JavaDoc allTypes;
34     private boolean lookup;
35     private String JavaDoc type;
36     private String JavaDoc source;
37     private String JavaDoc selectedUri;
38     private List JavaDoc allFolders;
39     private Object JavaDoc parentFlowObject;
40     private String JavaDoc parentType;
41     
42     public boolean isLookup() {
43         return lookup;
44     }
45     public void setLookup(boolean lookup) {
46         this.lookup = lookup;
47     }
48     public String JavaDoc getSource() {
49         return source;
50     }
51     public void setSource(String JavaDoc source) {
52         this.source = source;
53     }
54     public String JavaDoc getType() {
55         return type;
56     }
57     public void setType(String JavaDoc type) {
58         this.type = type;
59     }
60     public List JavaDoc getAllDatasources() {
61         return allDatasources;
62     }
63     public void setAllDatasources(List JavaDoc allDatasources) {
64         this.allDatasources = allDatasources;
65     }
66     public List JavaDoc getAllTypes() {
67         if(allTypes==null){
68             allTypes=new ArrayList JavaDoc();
69             allTypes.add(JasperServerConstImpl.getJDBCDatasourceType());
70             allTypes.add(JasperServerConstImpl.getJNDIDatasourceType());
71             allTypes.add(JasperServerConstImpl.getBeanDatasourceType());
72         }
73         return allTypes;
74     }
75     public void setAllTypes(List JavaDoc allTypes) {
76         this.allTypes = allTypes;
77     }
78     public ReportDataSource getReportDataSource() {
79         return reportDataSource;
80     }
81     public void setReportDataSource(ReportDataSource reportDataSource) {
82         this.reportDataSource = reportDataSource;
83     }
84     public String JavaDoc getSelectedUri() {
85         return selectedUri;
86     }
87     public void setSelectedUri(String JavaDoc selectedUri) {
88         this.selectedUri = selectedUri;
89     }
90     public List JavaDoc getAllFolders() {
91         return allFolders;
92     }
93     public void setAllFolders(List JavaDoc allFolders) {
94         this.allFolders = allFolders;
95     }
96     
97     public Object JavaDoc getParentFlowObject() {
98         return parentFlowObject;
99     }
100
101     public void setParentFlowObject(Object JavaDoc parentFlowObject) {
102         this.parentFlowObject = parentFlowObject;
103     }
104     public String JavaDoc getParentType() {
105         return parentType;
106     }
107     public void setParentType(String JavaDoc parentType) {
108         this.parentType = parentType;
109     }
110 }
111
Popular Tags