View Javadoc
1   /**
2    * Copyright 2005-2014 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.location.api;
17  
18  import org.kuali.rice.core.api.CoreConstants;
19  
20  /**
21   * <p>LocationConstants class.</p>
22   *
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public final class LocationConstants {
26  
27      public static final String NAMESPACE_CODE = "KR-LOC";
28  
29      public final static class PrimaryKeyConstants {
30  		public static final String CODE = "code";
31          public static final String COUNTRY_CODE = "countryCode";
32  		public static final String STATE_CODE = "stateCode";
33  
34          private PrimaryKeyConstants() {
35  			throw new UnsupportedOperationException("do not call");
36  		}
37      }
38  
39      public final static String LOCATION_DISTRIBUTED_CACHE = "locationDistributedCacheManager";
40      public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0;
41  
42      public static final class Namespaces {
43      	public static final String MODULE_NAME = "location";
44          public static final String LOCATION_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME;
45      	/**
46      	 * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
47      	 */
48      	public static final String LOCATION_NAMESPACE_2_0 = LOCATION_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
49  
50          private Namespaces() {
51  		    throw new UnsupportedOperationException("do not call");
52  	    }
53      }
54  
55      public static class ParameterKey {
56          public static final String DEFAULT_COUNTRY = "DEFAULT_COUNTRY";
57      }
58  }