Coverage Report - org.kuali.rice.core.config.Config
 
Classes in this File Line Coverage Branch Coverage Complexity
Config
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  *
 4  
  *
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  *
 9  
  * http://www.opensource.org/licenses/ecl2.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  
 
 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  
  * Interface encapsulating central config settings. This interface was taken
 26  
  * directly from BundleUtility which it replaces.
 27  
  *
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 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  
          * Configuration key under which to specify inlined Log4J configuration in XML/DOM configurer syntax
 48  
          */
 49  
         public static final String LOG4J_SETTINGS_XML = "log4j.settings.xml";
 50  
 
 51  
         /**
 52  
          * Configuration key under which to specify inlined Log4J configuration in properties configurer syntax
 53  
          */
 54  
         public static final String LOG4J_SETTINGS_PROPS = "log4j.settings.props";
 55  
 
 56  
         /**
 57  
          * Configuration key under which to specify an external Log4J configuration file path
 58  
          */
 59  
 
 60  
         public static final String LOG4J_SETTINGS_PATH = "log4j.settings.path";
 61  
 
 62  
         /**
 63  
          * Configuration key under which to specify the Log4J configuration reload interval in minutes
 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  
          * Configuration key under which to specify the base url for workflow
 111  
          */
 112  
         public static final String KEW_URL = "kew.url";
 113  
 
 114  
         /**
 115  
          * Configuration key under which to specify the base url for rice
 116  
          */
 117  
         public static final String KR_URL = "kr.url";
 118  
 
 119  
         /**
 120  
          * Configuration key under which to specify the base url for kim
 121  
          */
 122  
         public static final String KIM_URL = "kim.url";
 123  
         
 124  
         /**
 125  
          * Configuration key under which to specify the base url for kim
 126  
          */
 127  
         public static final String KEN_URL = "ken.url";
 128  
 
 129  
         /**
 130  
          * Use DEFAULT_KEW_NOTE_CLASS
 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  
         //bus stuff
 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  
          * Programmatically override or place a setting in the config properties
 170  
          * @param name
 171  
          * @param value
 172  
          * @deprecated use the putProperty method instead
 173  
          */
 174  
         public void overrideProperty(String name, String value);
 175  
 
 176  
         public String getDailyEmailFirstDeliveryDate();
 177  
 
 178  
         public String getWeeklyEmailFirstDeliveryDate();
 179  
 
 180  
         /**
 181  
          * Returns properties explicitly configured in this Config
 182  
          *
 183  
          * @return properties explicitly configured in this Config
 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  
          * @return the base URL for KEW
 209  
          */
 210  
         public String getKEWBaseURL();
 211  
         
 212  
         /**
 213  
          * @return the base URL for KIM
 214  
          */
 215  
         public String getKIMBaseURL();
 216  
         
 217  
         /**
 218  
          * @return the base URL for KRice
 219  
          */
 220  
         public String getKRBaseURL();
 221  
 
 222  
         /**
 223  
          * @return the base URL for KEN
 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  
      * This method has been deprecated.  Use {@link #getDefaultKewNoteClass()} instead.
 243  
      * @deprecated
 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  
          * This has to be a string because BooleanS don't work when accessed through 
 269  
          * ConfigProperties like ${ConfigProperties.portal.show.sample.app} in JSPs.
 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  
          * This method takes a config object and merges it with the current
 290  
          * object.  
 291  
          * 
 292  
          * @param config
 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  
 }