KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > war > common > JasperServerConstImpl


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.common;
22
23 import java.io.Serializable JavaDoc;
24
25 /**
26  * @author aztec
27  * @version $Id: JdbcDataSourceService.java 2331 2006-03-08 15:06:12Z lucian $
28  */

29 public class JasperServerConstImpl implements JasperServerConst, Serializable JavaDoc {
30     //getter methods for all constants
31
//defined in the interface
32
public static String JavaDoc getJSReposPath() {
33         return JASPER_SERVER_REPOSITORY_PATH;
34     }
35
36     public static String JavaDoc getJSDataSrc() {
37         return JASPER_SERVER_DATASOURCE;
38     }
39
40     public static String JavaDoc getJSConnector() {
41         return JASPER_SERVER_DB_DRIVER;
42     }
43
44     public static String JavaDoc getJSUrl() {
45         return JASPER_SERVER_DB_URL;
46     }
47
48     public static String JavaDoc getJasRepCont() {
49         return JASPER_REPORT_CONTENT;
50     }
51
52     public static String JavaDoc getJSDbUser() {
53         return JASPER_SERVER_DB_USER;
54     }
55
56     public static String JavaDoc getJSDbPasswd() {
57         return JASPER_SERVER_DB_PASSWORD;
58     }
59
60     public static String JavaDoc getRepReqParam() {
61         return REPORT_REQUEST_PARAM;
62     }
63
64     public String JavaDoc getResultsPerPage() {
65         return RESULTS_PER_PAGE;
66     }
67     public static String JavaDoc getDataTypeReqParam() {
68         return DATATYPE_REQUEST_PARAM;
69     }
70
71     public static String JavaDoc getInputControlReqParam() {
72         return INPUTCONTROL_REQUEST_PARAM;
73     }
74
75     public static String JavaDoc getListOfValuesReqParam() {
76         return LISTOFVALUES_REQUEST_PARAM;
77     }
78
79     public static String JavaDoc getJrxmlFileExtn() {
80         return FILE_JRXML_EXTN;
81     }
82
83     public static String JavaDoc getJasperFileExtn() {
84         return FILE_JASPER_EXTN;
85     }
86
87     public static int getJrxmlMaxSize() {
88         return JRXML_THRESHOLD_SIZE;
89     }
90
91     public static String JavaDoc getFieldChoiceFile() {
92         return FIELD_CHOICE_FILE_SYSTEM;
93     }
94     
95     public static String JavaDoc getFieldChoiceRepo() {
96         return FIELD_CHOICE_CONT_REPO;
97     }
98     public static String JavaDoc getFieldChoiceLocal() {
99         return FIELD_CHOICE_LOCAL;
100     }
101
102     public static String JavaDoc getFieldChoiceNone() {
103         return FIELD_CHOICE_NONE;
104     }
105
106     public static String JavaDoc getJNDIDatasourceType(){
107         return TYPE_DATASRC_JNDI;
108     }
109
110     public static String JavaDoc getJDBCDatasourceType(){
111         return TYPE_DATASRC_JDBC;
112     }
113
114     public static String JavaDoc getBeanDatasourceType(){
115         return TYPE_DATASRC_BEAN;
116     }
117
118     public static String JavaDoc getImageResourceType(){
119         return TYPE_RSRC_IMAGE;
120     }
121
122     public static String JavaDoc getFontResourceType(){
123         return TYPE_RSRC_FONT;
124     }
125
126     public static String JavaDoc getClassJarResourceType(){
127         return TYPE_RSRC_CLASS_JAR;
128     }
129
130     public static String JavaDoc getQueryResourceType(){
131         return TYPE_RSRC_QUERY;
132     }
133
134     public static String JavaDoc getSubReportResourceType(){
135         return TYPE_RSRC_SUB_REPORT;
136     }
137
138     public static String JavaDoc getNoOption(){
139         return OPTION_NO;
140     }
141     public static String JavaDoc getYesOption(){
142         return OPTION_YES;
143     }
144     public static String JavaDoc getBooleanCtrlType(){
145         return TYPE_BOOLEAN;
146     }
147     public static String JavaDoc getSingleValueCtrlType(){
148         return TYPE_SINGLE_VALUE;
149     }
150     public static String JavaDoc getSingleSelectLovCtrlType(){
151         return TYPE_SINGLE_SELECT_LIST_OF_VALUES;
152     }
153     public static String JavaDoc getSingleSelectQueryCtrlType(){
154         return TYPE_SINGLE_SELECT_QUERY;
155     }
156     public static String JavaDoc getMultiValueCtrlType(){
157         return TYPE_MULTI_VALUE;
158     }
159     public static String JavaDoc getMultiSelectLovCtrlType(){
160         return TYPE_MULTI_SELECT_LIST_OF_VALUES;
161     }
162     public static String JavaDoc getMultiSelectQueryCtrl(){
163         return TYPE_MULTI_SELECT_QUERY;
164     }
165     public static String JavaDoc getTypeText(){
166         return TYPE_TEXT;
167     }
168     public static String JavaDoc getTypeNumber(){
169         return TYPE_NUMBER;
170     }
171     public static String JavaDoc getTypeDate(){
172         return TYPE_DATE;
173     }
174     public static String JavaDoc getTypeDateTime(){
175         return TYPE_DATE_TIME;
176     }
177     public String JavaDoc getUploadedFileName(){
178         return UPLOADED_FILE_NAME;
179     }
180     public String JavaDoc getUploadedFileExt(){
181         return UPLOADED_FILE_EXT;
182     }
183     
184    
185    public static String JavaDoc getOlapMondrianConnectionType() {
186        return OLAP_MONDRIAN_CONNECTION_TYPE;
187    }
188    
189    public static String JavaDoc getOlapXmlaConnectionType() {
190        return OLAP_XMLA_CONNECTION_TYPE;
191    }
192 }
193
Popular Tags