View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.ksb.util;
17  
18  
19  /**
20   * This is a file for constants used by the KSB module of Rice
21   * 
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public final class KSBConstants {
25  
26      /**
27       * Configuration Parameters
28       */
29      public static final class Config {
30          public static final String MESSAGE_PERSISTENCE = "message.persistence";
31          public static final String MESSAGING_OFF = "message.off";
32          public static final String MESSAGE_DELIVERY = "message.delivery";
33          public static final String INJECTED_EXCEPTION_MESSAGE_SCHEDULER_KEY = "message.injected.scheduler";
34          public static final String FIXED_POOL_SIZE = "ksb.fixedPoolSize";
35          public static final String ROUTE_QUEUE_MAX_RETRY_ATTEMPTS_KEY = "RouteQueue.maxRetryAttempts";
36          public static final String ROUTE_QUEUE_MAX_RETRY_ATTEMPTS_OVERRIDE_KEY = "RouteQueue.maxRetryAttemptsOverride";
37          public static final String ROUTE_QUEUE_TIME_INCREMENT_KEY = "RouteQueue.timeIncrement";
38          public static final String IMMEDIATE_EXCEPTION_ROUTING = "Routing.ImmediateExceptionRouting";
39          public static final String ALLOW_SYNC_EXCEPTION_ROUTING = "rice.ksb.allowSyncExceptionRouting";
40          public static final String KSB_ALLOW_SELF_SIGNED_SSL = "rice.ksb.config.allowSelfSignedSSL";
41          public static final String KSB_MESSAGE_DATASOURCE = "rice.ksb.message.datasource";
42          public static final String KSB_MESSAGE_DATASOURCE_JNDI = "rice.ksb.message.datasource.jndi.location";
43          public static final String KSB_MESSAGE_NON_TRANSACTIONAL_DATASOURCE = "rice.ksb.message.nonTransactional.datasource";
44          public static final String KSB_MESSAGE_NON_TRANSACTIONAL_DATASOURCE_JNDI = "rice.ksb.message.nonTransactional.datasource.jndi.location";
45          public static final String KSB_REGISTRY_DATASOURCE = "rice.ksb.registry.datasource";
46          public static final String KSB_REGISTRY_DATASOURCE_JNDI = "rice.ksb.registry.datasource.jndi.location";
47          public static final String KSB_BAM_DATASOURCE = "rice.ksb.bam.datasource";
48          public static final String KSB_BAM_DATASOURCE_JNDI = "rice.ksb.bam.datasource.jndi.location";
49          public static final String USE_QUARTZ_DATABASE = "useQuartzDatabase";
50          public static final String KSB_ALTERNATE_ENDPOINTS = "ksb.alternateEndpoints";
51          public static final String KSB_ALTERNATE_ENDPOINT_LOCATIONS = "ksb.alternateEndpointLocations";
52          public static final String RESTFUL_SERVICE_PATH = "rice.ksb.restfulServicePath";
53          public static final String INSTANCE_ID = "rice.ksb.bus.instanceId";
54          public static final String REGISTRY_SERVICE_URL = "rice.ksb.registry.serviceUrl";
55          public static final String WEB_FORCE_ENABLE = "rice.ksb.web.forceEnable";
56  
57  
58      	private Config() {
59      		throw new UnsupportedOperationException("do not call");
60      	}
61      }
62      
63      // messaging constants
64      
65      public static final String MESSAGING_SYNCHRONOUS = "synchronous";
66      public static final String ROUTE_QUEUE_QUEUED = "Q";
67      public static final String ROUTE_QUEUE_EXCEPTION = "E";
68      public static final String ROUTE_QUEUE_ROUTING = "R";
69      public static final String ROUTE_QUEUE_EXCEPTION_LABEL = "EXCEPTION";
70      public static final String ROUTE_QUEUE_ROUTING_LABEL = "ROUTING";
71      public static final String ROUTE_QUEUE_QUEUED_LABEL = "QUEUED";    
72      public static final Integer ROUTE_QUEUE_DEFAULT_PRIORITY = new Integer(5);
73      public static final String ROUTE_QUEUE_FILTER_SUFFIX = "Filter";
74      
75      // custom http header keys
76      public static final String DIGITAL_SIGNATURE_HEADER = "KEW_DIGITAL_SIGNATURE";
77      public static final String KEYSTORE_ALIAS_HEADER = "KEW_KEYSTORE_ALIAS";
78      public static final String KEYSTORE_CERTIFICATE_HEADER = "KEW_CERTIFICATE_ALIAS";
79      
80      public static final class ServiceNames {
81      	public static final String BAM_SERVICE = "rice.ksb.bamService";
82      	public static final String BUS_IN_INTERCEPTORS = "ksbInInterceptors";
83          public static final String BUS_OUT_INTERCEPTORS = "ksbOutInterceptors";
84      	public static final String CXF_BUS = "cxf";
85      	public static final String DIGITAL_SIGNATURE_SERVICE = "rice.ksb.digitalSignatureService";
86          public static final String EXCEPTION_MESSAGING_SERVICE = "rice.ksb.exceptionMessagingService";
87          public static final String JAVA_SECURITY_MANAGEMENT_SERVICE = "rice.ksb.javaSecurityManagementService";
88          public static final String JTA_TRANSACTION_MANAGER = "jtaTransactionManager";
89          public static final String MESSAGE_DATASOURCE = "rice.ksb.messageDataSource";
90          public static final String MESSAGE_ENTITY_MANAGER_FACTORY = "rice.ksb.messageEntityManagerFactory";
91          public static final String MESSAGE_QUEUE_SERVICE = "rice.ksb.messageQueueService";
92          public static final String MESSAGE_NON_TRANSACTIONAL_DATASOURCE = "rice.ksb.messageNonTransactionalDataSource";
93      	public static final String REGISTRY_DATASOURCE = "rice.ksb.registryDataSource";
94      	public static final String REGISTRY_ENTITY_MANAGER_FACTORY = "rice.ksb.registryEntityManagerFactory";
95      	public static final String SERVICE_EXPORT_MANAGER = "rice.ksb.serviceExportManager";
96          public static final String SCHEDULED_THREAD_POOL_SERVICE = "rice.ksb.scheduledThreadPool";
97          public static final String SCHEDULER = "rice.ksb.scheduler";
98          public static final String THREAD_POOL_SERVICE = "rice.ksb.threadPool";
99          public static final String TRANSACTION_MANAGER = "transactionManager";
100         public static final String TRANSACTION_TEMPLATE = "transactionTemplate";
101         public static final String BASIC_AUTHENTICATION_SERVICE = "basicAuthenticationService";
102 
103     	private ServiceNames() {
104     		throw new UnsupportedOperationException("do not call");
105     	}
106     }
107     
108 	private KSBConstants() {
109 		throw new UnsupportedOperationException("do not call");
110 	}
111 
112 }