001    /**
002     * Copyright 2005-2012 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 final static class PrimaryKeyConstants {
028                    public static final String CODE = "code";
029            public static final String COUNTRY_CODE = "countryCode";
030                    public static final String STATE_CODE = "stateCode";
031    
032            private PrimaryKeyConstants() {
033                            throw new UnsupportedOperationException("do not call");
034                    }
035        }
036    
037        public final static String LOCATION_DISTRIBUTED_CACHE = "locationDistributedCacheManager";
038        public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0;
039    
040        public static final class Namespaces {
041            public static final String MODULE_NAME = "location";
042            public static final String LOCATION_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME;
043            /**
044             * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
045             */
046            public static final String LOCATION_NAMESPACE_2_0 = LOCATION_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
047    
048            private Namespaces() {
049                        throw new UnsupportedOperationException("do not call");
050                }
051        }
052    }