1 package org.kuali.rice.core.api.util;
2
3 import java.text.DateFormat;
4 import java.text.SimpleDateFormat;
5 import org.kuali.rice.core.api.CoreApiServiceLocator;
6
7
8
9
10
11
12
13 public final class RiceConstants {
14 public static final String DB_PLATFORM = "dbPlatform";
15
16 public static final String RICE_JPA_ENABLED = "rice.jpa.enabled";
17 public static final String JPA_ENABLED_SUFFIX = ".jpa.enabled";
18
19 public static final String SERVICES_TO_CACHE = "rice.resourceloader.servicesToCache";
20 public static final String RICE_LOGGING_CONFIGURE = "rice.logging.configure";
21
22 public static final String SPRING_TRANSACTION_MANAGER = "SPRING_TRANSACTION_MANAGER";
23
24 public static final String ROOT_RESOURCE_LOADER_CONTAINER_NAME = "RootResourceLoaderContainer";
25 public static final String DEFAULT_ROOT_RESOURCE_LOADER_NAME = "RootResourceLoader";
26
27 public static final String RICE_CONFIGURER_CONFIG_NAME = "riceConfigurer";
28
29
30
31
32 public static final String DATASOURCE_OBJ = "datasource";
33 public static final String NON_TRANSACTIONAL_DATASOURCE_OBJ = "nonTransactionalDatasource";
34 public static final String SERVER_DATASOURCE_OBJ = "serverDatasource";
35 public static final String TRANSACTION_MANAGER_OBJ = "transactionManager";
36 public static final String USER_TRANSACTION_OBJ = "userTransaction";
37 public static final String M_BEANS = "mBeans";
38 public static final String ALT_SPRING_FILE = "config.spring.file";
39 public static final String ALT_OJB_FILE = "config.obj.file";
40
41
42
43 public static final String TRANSACTION_MANAGER_JNDI = "transactionManager.jndi.location";
44 public static final String USER_TRANSACTION_JNDI = "userTransaction.jndi.location";
45 public static final String DATASOURCE_JNDI = "datasource.jndi.location";
46 public static final String NON_TRANSACTIONAL_DATASOURCE_JNDI = "nonTransactional.datasource.jndi.location";
47 public static final String SERVER_DATASOURCE_JNDI = "serverDatasource.jndi.location";
48
49
50
51 public static final String MAPPING_BASIC = "basic";
52
53
54 public static final String MODULE_LOCKED_MAPPING = "moduleLocked";
55
56
57 public static final String SIMPLE_DATE_FORMAT_FOR_DATE = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString("info.DateFormat");
58 public static final String SIMPLE_DATE_FORMAT_FOR_TIME = "hh:mm a";
59 public static final String DEFAULT_DATE_FORMAT_PATTERN = SIMPLE_DATE_FORMAT_FOR_TIME + " " + SIMPLE_DATE_FORMAT_FOR_DATE;
60
61 public static DateFormat getDefaultDateFormat() {
62 return new SimpleDateFormat(SIMPLE_DATE_FORMAT_FOR_DATE);
63 }
64
65 public static DateFormat getDefaultTimeFormat() {
66 return new SimpleDateFormat(SIMPLE_DATE_FORMAT_FOR_TIME);
67 }
68
69 public static DateFormat getDefaultDateAndTimeFormat() {
70 return new SimpleDateFormat(DEFAULT_DATE_FORMAT_PATTERN);
71 }
72
73
74
75 public static final int MAXIMUM_URL_LENGTH = 2048;
76
77 public static final long NO_WAIT = 0;
78
79 public static final String RICE_JAXWS_TARGET_NAMESPACE_BASE = "http://rice.kuali.org/wsdl";
80
81 private RiceConstants() {
82 throw new UnsupportedOperationException("do not call");
83 }
84 }