001/**
002 * Copyright 2005-2015 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.kns.lookup;
017
018import org.kuali.rice.krad.bo.BusinessObject;
019
020import java.util.Collection;
021
022/**
023 * Classes that implement this interface will refresh
024 *
025 * @deprecated Only used in KNS classes, use KRAD.
026 */
027@Deprecated
028public interface SelectiveReferenceRefresher {
029    /**
030     * Returns a list of references that must be refreshed after a lookup performed on an attribute is performed.
031     *
032     * A lookup on an attribute may cause many attribute values to be updated upon return from lookup.  Generally,
033     * the returned attributes are the PK of the BO being looked up.  For example,
034     * a lookup on an account number attribute will cause the chart of accounts code and account code to be returned.
035     *
036     * These returned attributes may cause other references on the page to be returned.  For example, an account number lookup
037     * may cause the chart code to change, and if there is also an ObjectCode reference in the BO, then any change in the chart code will cause the
038     * referenced ObjectCode BO to be changed.
039     *
040     * @param attributeName the name of the attribute with a quickfinder of the maintained BO.
041     *
042     * @return a list of reference names that could be affected by lookup return values
043     */
044    public Collection<String> getAffectedReferencesFromLookup(BusinessObject baseBO, String attributeName, String collectionPrefix);
045}