001/** 002 * Copyright 2005-2018 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 */ 016package org.kuali.rice.location.framework.campus; 017 018import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 019import org.kuali.rice.krad.bo.ExternalizableBusinessObject; 020import org.kuali.rice.location.api.campus.CampusTypeContract; 021 022/** 023 * TODO: Likely should remove all methods from this interface after KULRICE-7170 is fixed 024 */ 025public interface CampusTypeEbo extends CampusTypeContract, 026 ExternalizableBusinessObject, MutableInactivatable { 027 028 /** 029 * This is the name for the CampusType. 030 * 031 * <p> 032 * It is a name a campus type. 033 * </p> 034 * 035 * @return name for CampusType. 036 */ 037 String getName(); 038 039 /** 040 * The code value for this object. In general a code value cannot be null or a blank string. 041 * 042 * @return the code value for this object. 043 */ 044 String getCode(); 045 046 /** 047 * Returns the version number for this object. In general, this value should only 048 * be null if the object has not yet been stored to a persistent data store. 049 * This version number is generally used for the purposes of optimistic locking. 050 * 051 * @return the version number, or null if one has not been assigned yet 052 */ 053 Long getVersionNumber(); 054 055 /** 056 * Return the globally unique object id of this object. In general, this value should only 057 * be null if the object has not yet been stored to a persistent data store. 058 * 059 * @return the objectId of this object, or null if it has not been set yet 060 */ 061 String getObjectId(); 062 063 /** 064 * The active indicator for an object. 065 * 066 * @return true if active false if not. 067 */ 068 boolean isActive(); 069 070 /** 071 * Sets the record to active or inactive. 072 */ 073 void setActive(boolean active); 074}