001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.ksb.util;
017    
018    
019    /**
020     * This is a file for constants used by the KSB module of Rice
021     * 
022     * @author Kuali Rice Team (rice.collab@kuali.org)
023     */
024    public final class KSBConstants {
025    
026        /**
027         * Configuration Parameters
028         */
029        public static final class Config {
030            public static final String MESSAGE_PERSISTENCE = "message.persistence";
031            public static final String MESSAGING_OFF = "message.off";
032            public static final String MESSAGE_DELIVERY = "message.delivery";
033            public static final String INJECTED_EXCEPTION_MESSAGE_SCHEDULER_KEY = "message.injected.scheduler";
034            public static final String FIXED_POOL_SIZE = "ksb.fixedPoolSize";
035            public static final String ROUTE_QUEUE_MAX_RETRY_ATTEMPTS_KEY = "RouteQueue.maxRetryAttempts";
036            public static final String ROUTE_QUEUE_MAX_RETRY_ATTEMPTS_OVERRIDE_KEY = "RouteQueue.maxRetryAttemptsOverride";
037            public static final String ROUTE_QUEUE_TIME_INCREMENT_KEY = "RouteQueue.timeIncrement";
038            public static final String IMMEDIATE_EXCEPTION_ROUTING = "Routing.ImmediateExceptionRouting";
039            public static final String ALLOW_SYNC_EXCEPTION_ROUTING = "rice.ksb.allowSyncExceptionRouting";
040            public static final String KSB_ALLOW_SELF_SIGNED_SSL = "rice.ksb.config.allowSelfSignedSSL";
041            public static final String KSB_MESSAGE_DATASOURCE = "rice.ksb.message.datasource";
042            public static final String KSB_MESSAGE_DATASOURCE_JNDI = "rice.ksb.message.datasource.jndi.location";
043            public static final String KSB_MESSAGE_NON_TRANSACTIONAL_DATASOURCE = "rice.ksb.message.nonTransactional.datasource";
044            public static final String KSB_MESSAGE_NON_TRANSACTIONAL_DATASOURCE_JNDI = "rice.ksb.message.nonTransactional.datasource.jndi.location";
045            public static final String KSB_REGISTRY_DATASOURCE = "rice.ksb.registry.datasource";
046            public static final String KSB_REGISTRY_DATASOURCE_JNDI = "rice.ksb.registry.datasource.jndi.location";
047            public static final String KSB_BAM_DATASOURCE = "rice.ksb.bam.datasource";
048            public static final String KSB_BAM_DATASOURCE_JNDI = "rice.ksb.bam.datasource.jndi.location";
049            public static final String USE_QUARTZ_DATABASE = "useQuartzDatabase";
050            public static final String KSB_ALTERNATE_ENDPOINTS = "ksb.alternateEndpoints";
051            public static final String KSB_ALTERNATE_ENDPOINT_LOCATIONS = "ksb.alternateEndpointLocations";
052            public static final String RESTFUL_SERVICE_PATH = "rice.ksb.restfulServicePath";
053            public static final String INSTANCE_ID = "rice.ksb.bus.instanceId";
054            public static final String REGISTRY_SERVICE_URL = "rice.ksb.registry.serviceUrl";
055            public static final String WEB_FORCE_ENABLE = "rice.ksb.web.forceEnable";
056    
057    
058            private Config() {
059                    throw new UnsupportedOperationException("do not call");
060            }
061        }
062        
063        // messaging constants
064        
065        public static final String MESSAGING_SYNCHRONOUS = "synchronous";
066        public static final String ROUTE_QUEUE_QUEUED = "Q";
067        public static final String ROUTE_QUEUE_EXCEPTION = "E";
068        public static final String ROUTE_QUEUE_ROUTING = "R";
069        public static final String ROUTE_QUEUE_EXCEPTION_LABEL = "EXCEPTION";
070        public static final String ROUTE_QUEUE_ROUTING_LABEL = "ROUTING";
071        public static final String ROUTE_QUEUE_QUEUED_LABEL = "QUEUED";    
072        public static final Integer ROUTE_QUEUE_DEFAULT_PRIORITY = new Integer(5);
073        public static final String ROUTE_QUEUE_FILTER_SUFFIX = "Filter";
074        
075        // custom http header keys
076        public static final String DIGITAL_SIGNATURE_HEADER = "KEW_DIGITAL_SIGNATURE";
077        public static final String KEYSTORE_ALIAS_HEADER = "KEW_KEYSTORE_ALIAS";
078        public static final String KEYSTORE_CERTIFICATE_HEADER = "KEW_CERTIFICATE_ALIAS";
079        
080        public static final class ServiceNames {
081            public static final String BAM_SERVICE = "rice.ksb.bamService";
082            public static final String BUS_IN_INTERCEPTORS = "ksbInInterceptors";
083            public static final String BUS_OUT_INTERCEPTORS = "ksbOutInterceptors";
084            public static final String CXF_BUS = "cxf";
085            public static final String DIGITAL_SIGNATURE_SERVICE = "rice.ksb.digitalSignatureService";
086            public static final String ENCRYPTION_SERVICE = "enEncryptionService";
087            public static final String EXCEPTION_MESSAGING_SERVICE = "rice.ksb.exceptionMessagingService";
088            public static final String JAVA_SECURITY_MANAGEMENT_SERVICE = "rice.ksb.javaSecurityManagementService";
089            public static final String JTA_TRANSACTION_MANAGER = "jtaTransactionManager";
090            public static final String MESSAGE_DATASOURCE = "rice.ksb.messageDataSource";
091            public static final String MESSAGE_ENTITY_MANAGER_FACTORY = "rice.ksb.messageEntityManagerFactory";
092            public static final String MESSAGE_QUEUE_SERVICE = "rice.ksb.messageQueueService";
093            public static final String MESSAGE_NON_TRANSACTIONAL_DATASOURCE = "rice.ksb.messageNonTransactionalDataSource";
094            public static final String REGISTRY_DATASOURCE = "rice.ksb.registryDataSource";
095            public static final String REGISTRY_ENTITY_MANAGER_FACTORY = "rice.ksb.registryEntityManagerFactory";
096            public static final String SERVICE_EXPORT_MANAGER = "rice.ksb.serviceExportManager";
097            public static final String SCHEDULED_THREAD_POOL_SERVICE = "rice.ksb.scheduledThreadPool";
098            public static final String SCHEDULER = "rice.ksb.scheduler";
099            public static final String THREAD_POOL_SERVICE = "rice.ksb.threadPool";
100            public static final String TRANSACTION_MANAGER = "transactionManager";
101            public static final String TRANSACTION_TEMPLATE = "transactionTemplate";
102            public static final String BASIC_AUTHENTICATION_SERVICE = "basicAuthenticationService";
103    
104            private ServiceNames() {
105                    throw new UnsupportedOperationException("do not call");
106            }
107        }
108        
109            private KSBConstants() {
110                    throw new UnsupportedOperationException("do not call");
111            }
112    
113    }