1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
package org.kuali.rice.core.config; |
19 | |
|
20 | |
import java.io.IOException; |
21 | |
import java.util.Map; |
22 | |
import java.util.Properties; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
public interface Config { |
31 | |
|
32 | |
public static final String CLIENT_PROTOCOL = "client.protocol"; |
33 | |
|
34 | |
public static final String KEYSTORE_ALIAS = "keystore.alias"; |
35 | |
public static final String KEYSTORE_PASSWORD = "keystore.password"; |
36 | |
public static final String KEYSTORE_FILE = "keystore.file"; |
37 | |
|
38 | |
public static final String BASE_WEB_SERVICE_URL_WORKFLOW_CLIENT_FILE = "webservices.settings.url"; |
39 | |
|
40 | |
public static final String BASE_WEB_SERVICE_WSDL_PATH = "webservices.settings.wsdl.path"; |
41 | |
|
42 | |
public static final String WSDL_LOCATION_WORKFLOW_CLIENT_FILE = "webservices.settings.wsdd.path"; |
43 | |
|
44 | |
public static final String WEB_SERVICE_CONNECT_RETRY = "webservices.settings.connect.retry"; |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
public static final String LOG4J_SETTINGS_XML = "log4j.settings.xml"; |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
public static final String LOG4J_SETTINGS_PROPS = "log4j.settings.props"; |
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
public static final String LOG4J_SETTINGS_PATH = "log4j.settings.path"; |
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
public static final String LOG4J_SETTINGS_RELOADINTERVAL_MINS = "log4j.settings.reloadInterval"; |
66 | |
|
67 | |
public static final String TRANSACTION_TIMEOUT = "transaction.timeout"; |
68 | |
|
69 | |
public static final String DOCUMENT_LOCK_TIMEOUT = "document.lock.timeout"; |
70 | |
|
71 | |
public static final String EMAIL_SECURITY_PATH = "email.security.path"; |
72 | |
|
73 | |
public static final String ENVIRONMENT = "environment"; |
74 | |
|
75 | |
public static final String PLUGIN_DIR = "plugin.dir"; |
76 | |
|
77 | |
public static final String EXTRA_CLASSES_DIR = "extra.classes.dir"; |
78 | |
|
79 | |
public static final String EXTRA_LIB_DIR = "extra.lib.dir"; |
80 | |
|
81 | |
public static final String EDL_CONFIG_LOCATION = "edl.config.loc"; |
82 | |
|
83 | |
public static final String SERVICE_NAMESPACE = "service.namespace"; |
84 | |
|
85 | |
public static final String THREAD_POOL_SIZE = "threadPool.size"; |
86 | |
|
87 | |
public static final String BAM_ENABLED = "bam.enabled"; |
88 | |
|
89 | |
public static final String EMBEDDED_PLUGIN_LOCATIAON = "embedded.plugin.location"; |
90 | |
|
91 | |
public static final String DATASOURCE_PLATFORM = "datasource.platform"; |
92 | |
|
93 | |
public static final String OJB_PLATFORM = "datasource.ojb.platform"; |
94 | |
|
95 | |
public static final String NODE_PROPERTIES_PATH = "node.properties.path"; |
96 | |
|
97 | |
public static final String DATASOURCE_OJB_SEQUENCE_MANAGER = "datasource.ojb.sequenceManager"; |
98 | |
public static final String DATASOURCE_OJB_SEQUENCE_MANAGER_CLASS = "datasource.ojb.sequenceManager.className"; |
99 | |
public static final String DATASOURCE_DRIVER_NAME = "datasource.driver.name"; |
100 | |
public static final String DATASOURCE_URL = "datasource.url"; |
101 | |
public static final String DATASOURCE_POOL_SIZE = "datasource.pool.size"; |
102 | |
public static final String DATASOURCE_POOL_MIN_SIZE = "datasource.pool.minSize"; |
103 | |
public static final String DATASOURCE_POOL_MAX_SIZE = "datasource.pool.maxSize"; |
104 | |
public static final String DATASOURCE_POOL_MAXWAIT = "datasource.pool.maxWait"; |
105 | |
public static final String DATASOURCE_POOL_VALIDATION_QUERY = "datasource.pool.validationQuery"; |
106 | |
public static final String DATASOURCE_USERNAME = "datasource.username"; |
107 | |
public static final String DATASOURCE_PASSWORD = "datasource.password"; |
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
public static final String KEW_URL = "kew.url"; |
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
public static final String KR_URL = "kr.url"; |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public static final String KIM_URL = "kim.url"; |
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
public static final String KEN_URL = "ken.url"; |
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
@Deprecated |
133 | |
public static final String DEFAULT_NOTE_CLASS = "default.note.class"; |
134 | |
public static final String DEFAULT_KEW_NOTE_CLASS = "default.kew.note.class"; |
135 | |
public static final String M_BEANS = "mBeans"; |
136 | |
public static final String ALT_SPRING_FILE = "config.spring.file"; |
137 | |
public static final String ALT_OJB_FILE = "config.obj.file"; |
138 | |
|
139 | |
|
140 | |
public static final String BUS_DEPLOYED_SERVICES = "bus.services"; |
141 | |
public static final String SERVICE_SERVLET_URL = "serviceServletUrl"; |
142 | |
public static final String MESSAGE_PERSISTENCE = "message.persistence"; |
143 | |
public static final String STORE_AND_FORWARD = "bus.storeAndForward"; |
144 | |
public static final String REFRESH_RATE = "bus.refresh.rate"; |
145 | |
public static final String DEV_MODE = "dev.mode"; |
146 | |
public static final String BATCH_MODE = "rice.ksb.batch.mode"; |
147 | |
|
148 | |
public static final String CREDENTIALS_SOURCE_FACTORY = "credentialsSourceFactory"; |
149 | |
|
150 | |
public static final String EMBEDDED_PLUGIN_DEFAULT_CURRENT_CLASS_LOADER = "embedded.plugin.default.current.classloader"; |
151 | |
|
152 | |
public static final String FIRST_DAILY_EMAIL_DELIVERY_DATE = "email.daily.firstDeliveryDate"; |
153 | |
public static final String FIRST_WEEKLY_EMAIL_DELIVERY_DATE = "email.weekly.firstDeliveryDate"; |
154 | |
|
155 | |
public static final String ENABLE_EMAIL_REMINDER_LIFECYCLE = "email.reminder.lifecycle.enabled"; |
156 | |
public static final String ENABLE_XML_PIPELINE_LIFECYCLE = "xml.pipeline.lifecycle.enabled"; |
157 | |
|
158 | |
public static final String OUT_BOX_MODE = "actionlist.outbox"; |
159 | |
|
160 | |
@Deprecated |
161 | |
public static final String OUT_BOX_DEFAULT_PREFERENCE_ON = "actionlist.outbox.default.preference.on"; |
162 | |
|
163 | |
public static final String PORTAL_SHOW_SAMPLE_APP = "portal.show.sample.app"; |
164 | |
|
165 | |
public void parseConfig() throws IOException; |
166 | |
|
167 | |
|
168 | |
|
169 | |
|
170 | |
|
171 | |
|
172 | |
|
173 | |
|
174 | |
public void overrideProperty(String name, String value); |
175 | |
|
176 | |
public String getDailyEmailFirstDeliveryDate(); |
177 | |
|
178 | |
public String getWeeklyEmailFirstDeliveryDate(); |
179 | |
|
180 | |
|
181 | |
|
182 | |
|
183 | |
|
184 | |
|
185 | |
public Properties getProperties(); |
186 | |
|
187 | |
public String getProperty(String key); |
188 | |
|
189 | |
public boolean getBooleanProperty(String key, boolean defaultValue); |
190 | |
|
191 | |
public Map<String, String> getPropertiesWithPrefix(String prefix, boolean stripPrefix); |
192 | |
|
193 | |
public Map<String, Object> getObjects(); |
194 | |
|
195 | |
public Object getObject(String key); |
196 | |
|
197 | |
public String getClientProtocol(); |
198 | |
|
199 | |
public String getBaseWebServiceURL(); |
200 | |
|
201 | |
public String getBaseWebServiceWsdlPath(); |
202 | |
|
203 | |
public String getClientWSDLFullPathAndFileName(); |
204 | |
|
205 | |
public String getWebServicesConnectRetry(); |
206 | |
|
207 | |
|
208 | |
|
209 | |
|
210 | |
public String getKEWBaseURL(); |
211 | |
|
212 | |
|
213 | |
|
214 | |
|
215 | |
public String getKIMBaseURL(); |
216 | |
|
217 | |
|
218 | |
|
219 | |
|
220 | |
public String getKRBaseURL(); |
221 | |
|
222 | |
|
223 | |
|
224 | |
|
225 | |
public String getKENBaseURL(); |
226 | |
|
227 | |
public String getLog4jFileLocation(); |
228 | |
|
229 | |
public String getLog4jReloadInterval(); |
230 | |
|
231 | |
public String getTransactionTimeout(); |
232 | |
|
233 | |
public String getEmailConfigurationPath(); |
234 | |
|
235 | |
public String getEnvironment(); |
236 | |
|
237 | |
public String getEDLConfigLocation(); |
238 | |
|
239 | |
public String getServiceNamespace(); |
240 | |
|
241 | |
|
242 | |
|
243 | |
|
244 | |
|
245 | |
public String getDefaultNoteClass(); |
246 | |
|
247 | |
public String getDefaultKewNoteClass(); |
248 | |
|
249 | |
public String getEmbeddedPluginLocation(); |
250 | |
|
251 | |
public Integer getRefreshRate(); |
252 | |
|
253 | |
public String getEndPointUrl(); |
254 | |
|
255 | |
public String getAlternateSpringFile(); |
256 | |
|
257 | |
public String getAlternateOJBFile(); |
258 | |
|
259 | |
public String getKeystoreAlias(); |
260 | |
|
261 | |
public String getKeystorePassword(); |
262 | |
|
263 | |
public String getKeystoreFile(); |
264 | |
|
265 | |
public String getDocumentLockTimeout(); |
266 | |
|
267 | |
|
268 | |
|
269 | |
|
270 | |
|
271 | |
public String getPortalShowSampleApp(); |
272 | |
|
273 | |
public Boolean getEmailReminderLifecycleEnabled(); |
274 | |
|
275 | |
public Boolean getXmlPipelineLifeCycleEnabled(); |
276 | |
|
277 | |
public Boolean getDevMode(); |
278 | |
|
279 | |
public Boolean getBatchMode(); |
280 | |
|
281 | |
public Boolean getStoreAndForward(); |
282 | |
public Boolean getOutBoxOn(); |
283 | |
|
284 | |
@Deprecated |
285 | |
public Boolean getOutBoxDefaultPreferenceOn(); |
286 | |
|
287 | |
|
288 | |
|
289 | |
|
290 | |
|
291 | |
|
292 | |
|
293 | |
|
294 | |
public void putConfig(Config config); |
295 | |
|
296 | |
public void putProperties(Properties properties); |
297 | |
public void putProperty(String key, String value); |
298 | |
public void removeProperty(String key); |
299 | |
public void putObjects(Map<String, Object> objects); |
300 | |
public void putObject(String key, Object value); |
301 | |
public void removeObject(String key); |
302 | |
} |