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.coreservice.api.namespace; 17 18 import org.kuali.rice.core.api.mo.common.Coded; 19 import org.kuali.rice.core.api.mo.common.GloballyUnique; 20 import org.kuali.rice.core.api.mo.common.Versioned; 21 import org.kuali.rice.core.api.mo.common.active.Inactivatable; 22 23 /** 24 * Defines the contract for a Namespace. A namespace is a mechanism for partitioning of data into 25 * areas of responsibility. Since much of the Kuali Rice middleware is shared across multiple integrating 26 * applications, this notion of a namespace is a critical element in keeping related data elements 27 * grouped together and isolated from those to which they should have no relation or access. 28 */ 29 public interface NamespaceContract extends Versioned, GloballyUnique, Inactivatable, Coded { 30 31 /** 32 * This the id of the application which owns this Namespace. If this namespace has no application owner, 33 * then this method will return null. 34 * 35 * <p> 36 * It is a way of assigning the Namespace to a specific rice application or rice ecosystem. 37 * </p> 38 * 39 * @return application id 40 */ 41 String getApplicationId(); 42 43 /** 44 * This the name for the Namespace. This can be null or a blank string. 45 * 46 * @return name 47 */ 48 String getName(); 49 }