View Javadoc

1   /**
2    * Copyright 2005-2012 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 final static class PrimaryKeyConstants {
28  		public static final String CODE = "code";
29          public static final String COUNTRY_CODE = "countryCode";
30  		public static final String STATE_CODE = "stateCode";
31  
32          private PrimaryKeyConstants() {
33  			throw new UnsupportedOperationException("do not call");
34  		}
35      }
36  
37      public final static String LOCATION_DISTRIBUTED_CACHE = "locationDistributedCacheManager";
38      public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0;
39  
40      public static final class Namespaces {
41      	public static final String MODULE_NAME = "location";
42          public static final String LOCATION_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME;
43      	/**
44      	 * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
45      	 */
46      	public static final String LOCATION_NAMESPACE_2_0 = LOCATION_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
47  
48          private Namespaces() {
49  		    throw new UnsupportedOperationException("do not call");
50  	    }
51      }
52  }