KickJava   Java API By Example, From Geeks To Geeks.

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


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
24 /**
25  * @author aztec
26  * @version $Id: JdbcDataSourceService.java 2331 2006-03-08 15:06:12Z lucian $
27  */

28 public interface JasperServerConst {
29     String JavaDoc JASPER_SERVER_REPOSITORY_PATH = "C:\\reports\\";
30     String JavaDoc JASPER_SERVER_DATASOURCE = "java:/comp/env/jdbc/jserver";
31     String JavaDoc JASPER_SERVER_DB_DRIVER = "com.mysql.jdbc.Driver";
32     String JavaDoc JASPER_SERVER_DB_URL = "jdbc:mysql://localhost:3306/jserver";
33     String JavaDoc JASPER_REPORT_CONTENT = "jasRepContent";
34     String JavaDoc JASPER_SERVER_DB_USER = "root";
35     String JavaDoc JASPER_SERVER_DB_PASSWORD = "password";
36     String JavaDoc REPORT_REQUEST_PARAM = "report";
37     String JavaDoc DATATYPE_REQUEST_PARAM = "dataType";
38     String JavaDoc INPUTCONTROL_REQUEST_PARAM = "inputControl";
39     String JavaDoc LISTOFVALUES_REQUEST_PARAM = "listOfValues";
40     String JavaDoc FILE_JRXML_EXTN = ".jrxml";
41     String JavaDoc FILE_JASPER_EXTN = ".jasper";
42     int JRXML_THRESHOLD_SIZE = 102400;
43     String JavaDoc FIELD_CHOICE_FILE_SYSTEM ="FILE_SYSTEM";
44     String JavaDoc FIELD_CHOICE_CONT_REPO ="CONTENT_REPOSITORY";
45     String JavaDoc FIELD_CHOICE_LOCAL = "LOCAL";
46     String JavaDoc FIELD_CHOICE_NONE = "NONE";
47     String JavaDoc TYPE_DATASRC_JNDI = "JNDI Data Source";
48     String JavaDoc TYPE_DATASRC_JDBC = "JDBC Data Source";
49     String JavaDoc TYPE_DATASRC_BEAN = "Bean Data Source";
50     String JavaDoc TYPE_RSRC_IMAGE = "Image";
51     String JavaDoc TYPE_RSRC_FONT = "Font";
52     String JavaDoc TYPE_RSRC_SUB_REPORT = "Jrxml";
53     String JavaDoc TYPE_RSRC_CLASS_JAR = "Jar";
54     String JavaDoc TYPE_RSRC_RESOURCE_BUNDLE = "Properties";
55     String JavaDoc TYPE_RSRC_OLAP_SCHEMA= "OLAP Schema";
56     String JavaDoc TYPE_RSRC_QUERY = "Query";
57     String JavaDoc OPTION_YES = "Yes";
58     String JavaDoc OPTION_NO = "No";
59     String JavaDoc TYPE_BOOLEAN = "Boolean";
60     String JavaDoc TYPE_SINGLE_VALUE = "Single Value";
61     String JavaDoc TYPE_SINGLE_SELECT_LIST_OF_VALUES = "Single Select List of Values";
62     String JavaDoc TYPE_SINGLE_SELECT_QUERY = "Single Select Query";
63     String JavaDoc TYPE_MULTI_VALUE = "Multi Value";
64     String JavaDoc TYPE_MULTI_SELECT_LIST_OF_VALUES = "Multi Select List of Values";
65     String JavaDoc TYPE_MULTI_SELECT_QUERY = "Multi Select Query";
66     String JavaDoc TYPE_TEXT = "Text";
67     String JavaDoc TYPE_NUMBER = "Number";
68     String JavaDoc TYPE_DATE = "Date";
69     String JavaDoc TYPE_DATE_TIME = "Date-Time";
70     String JavaDoc UPLOADED_FILE_NAME="uploadedFileName";
71     String JavaDoc UPLOADED_FILE_EXT="uploadedFileExt";
72     String JavaDoc FIELD_FILE_UPLOAD="data";
73
74     String JavaDoc REQUEST_PARAMETER_EDIT_RESOURCE_URI = "resource";
75     
76     //variables for Pagination
77
String JavaDoc RESULTS_PER_PAGE = "5";
78     int PAGE_SET_COUNT = 5;
79     
80     // Max field lengths for validation
81
int MAX_LENGTH_NAME = 30;
82     int MAX_LENGTH_LABEL = 30;
83     int MAX_LENGTH_DESC = 100;
84
85     
86     String JavaDoc OLAP_MONDRIAN_CONNECTION_TYPE = "Mondrian Connection";
87     
88     String JavaDoc OLAP_XMLA_CONNECTION_TYPE = "XML/A Connection";
89 }
90
Popular Tags