1 /** 2 * Copyright 2005-2015 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.krad.service; 17 18 import org.kuali.rice.krad.bo.PersistableBusinessObject; 19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 20 import org.kuali.rice.krad.bo.PersistableBusinessObjectExtension; 21 22 @Deprecated 23 /** 24 * Provides an interface to the legacy adapter for continued use in PersistableBusinessObject 25 * 26 * @author Kuali Rice Team (rice.collab@kuali.org) 27 */ 28 public interface LegacyAppFrameworkAdapterService { 29 30 /** 31 * Refresh persistableBusinessObject 32 * @param persistableBusinessObjectBase 33 */ 34 void refresh(PersistableBusinessObjectBase persistableBusinessObjectBase); 35 36 /** 37 * Refresh Nonupdateable references 38 * @param persistableBusinessObjectBase 39 */ 40 void refreshNonUpdateableReferences(PersistableBusinessObjectBase persistableBusinessObjectBase); 41 42 /** 43 * Retrieve reference object for persistable business object 44 * @param persistableBusinessObject 45 * @param referenceObjectName 46 */ 47 void retrieveReferenceObject(PersistableBusinessObject persistableBusinessObject, String referenceObjectName); 48 49 /** 50 * Returns if the class is persistable or not 51 * @param objectClass 52 * @return 53 */ 54 boolean isPersistable(Class<?> objectClass); 55 56 /** 57 * Creates an instance of the extension for the given business object class. 58 */ 59 PersistableBusinessObjectExtension getExtension(Class<? extends PersistableBusinessObject> businessObjectClass) 60 throws InstantiationException, IllegalAccessException; 61 62 /** 63 * Refreshes the specified reference object on the given business object. 64 */ 65 void refreshReferenceObject(PersistableBusinessObject businessObject, String referenceObjectName); 66 67 }