001    /**
002     * Copyright 2005-2014 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.location.api;
017    
018    import org.kuali.rice.core.api.CoreConstants;
019    
020    /**
021     * <p>LocationConstants class.</p>
022     *
023     * @author Kuali Rice Team (rice.collab@kuali.org)
024     */
025    public final class LocationConstants {
026    
027        public static final String NAMESPACE_CODE = "KR-LOC";
028    
029        public final static class PrimaryKeyConstants {
030                    public static final String CODE = "code";
031            public static final String COUNTRY_CODE = "countryCode";
032                    public static final String STATE_CODE = "stateCode";
033    
034            private PrimaryKeyConstants() {
035                            throw new UnsupportedOperationException("do not call");
036                    }
037        }
038    
039        public final static String LOCATION_DISTRIBUTED_CACHE = "locationDistributedCacheManager";
040        public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0;
041    
042        public static final class Namespaces {
043            public static final String MODULE_NAME = "location";
044            public static final String LOCATION_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME;
045            /**
046             * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
047             */
048            public static final String LOCATION_NAMESPACE_2_0 = LOCATION_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
049    
050            private Namespaces() {
051                        throw new UnsupportedOperationException("do not call");
052                }
053        }
054    
055        public static class ParameterKey {
056            public static final String DEFAULT_COUNTRY = "DEFAULT_COUNTRY";
057        }
058    }