01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.clientapp;
18:
19: import java.util.Map;
20: import java.util.Properties;
21:
22: import org.kuali.rice.config.BaseConfig;
23: import org.kuali.rice.core.Core;
24:
25: import edu.iu.uis.eden.EdenConstants;
26:
27: /**
28: * Configuration object for client applications.
29: *
30: * @author rkirkend
31: */
32: public class ClientConfig extends BaseConfig {
33:
34: public ClientConfig() {
35: super (EdenConstants.DEFAULT_APPLICATION_CONFIG_LOCATION);
36: Core.init(this );
37: }
38:
39: public Properties getBaseProperties() {
40: //so workflow can use this config for client and point to the workflow.xml with server settings (so everyone can
41: //rock the workflow.xml file
42:
43: if (Core.getRootConfig() != null) {
44: return Core.getRootConfig().getProperties();
45: }
46: return null;
47: }
48:
49: public Map getBaseObjects() {
50: if (Core.getRootConfig() != null) {
51: return Core.getRootConfig().getObjects();
52: }
53: return null;
54: }
55: }
|