@@ -0,0 +1,2581 @@
+/*%0A * Copyright 2005-2010 The Kuali Foundation%0A * %0A * Licensed under the Educational Community License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A * http://www.osedu.org/licenses/ECL-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.kuali.kra.iacuc.protocol;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.Iterator;%0Aimport java.util.List;%0A%0Aimport org.kuali.kra.infrastructure.KraServiceLocator;%0Aimport org.kuali.kra.lookup.keyvalue.KeyValueFinderService;%0Aimport org.kuali.rice.core.api.util.ConcreteKeyValue;%0Aimport org.kuali.rice.core.api.util.KeyValue;%0Aimport org.kuali.rice.krad.keyvalues.KeyValuesBase;%0Aimport org.kuali.rice.krad.service.KeyValuesService;%0A%0Apublic class IacucProtocolTypeValuesFinder extends KeyValuesBase %7B%0A%0A    private static final long serialVersionUID = -3626497316348500710L;%0A%0A    /**%0A     * Constructs the list of Protocol Types.  Each entry%0A     * in the list is a &lt;key, value&gt; pair, where the %22key%22 is the unique%0A     * status code and the %22value%22 is the textual description that is viewed%0A     * by a user.  The list is obtained from the IACUC_PROTOCOL_TYPE database table%0A     * via the %22KeyValueFinderService%22.%0A     * %0A     * @return the list of &lt;key, value&gt; pairs of abstract types.  The first entry%0A     * is always &lt;%22%22, %22select:%22&gt;.%0A     * @see org.kuali.rice.krad.keyvalues.KeyValuesFinder#getKeyValues()%0A     */%0A    %0A    KeyValueFinderService keyValueFinderService= (KeyValueFinderService)KraServiceLocator.getService(%22keyValueFinderService%22);%0A%0A    public List%3CKeyValue%3E getKeyValues() %7B%0A        KeyValuesService keyValuesService = (KeyValuesService) KraServiceLocator.getService(%22keyValuesService%22);%0A        Collection protocolTypes = keyValuesService.findAllOrderBy(IacucProtocolType.class,%22description%22,true);%0A        List%3CKeyValue%3E keyValues = new ArrayList%3CKeyValue%3E();   %0A        for (Iterator iter = protocolTypes.iterator(); iter.hasNext();) %7B%0A            IacucProtocolType protocolType = (IacucProtocolType) iter.next();%0A            keyValues.add(new ConcreteKeyValue(protocolType.getProtocolTypeCode().toString(), protocolType.getDescription()));%0A        %7D%0A        return keyValues;%0A    %7D  %0A%7D%0A

Implement COI event type of "IACUC Protocol"