001package org.kuali.ole.select.keyvalue; 002 003import org.kuali.ole.OLEConstants; 004import org.kuali.rice.core.api.util.ConcreteKeyValue; 005import org.kuali.rice.core.api.util.KeyValue; 006import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase; 007import org.kuali.rice.krad.uif.view.ViewModel; 008 009import java.util.ArrayList; 010import java.util.List; 011 012/** 013 * Created with IntelliJ IDEA. 014 * User: chenchulakshmig 015 * Date: 6/26/13 016 * Time: 12:25 PM 017 * To change this template use File | Settings | File Templates. 018 */ 019public class OLEEResourceSearchFinder extends UifKeyValuesFinderBase { 020 @Override 021 public List<KeyValue> getKeyValues(ViewModel viewModel) { 022 List<KeyValue> ersSearchoptions = new ArrayList<KeyValue>(); 023 024 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_TITLE, OLEConstants.OLEEResourceRecord.ERESOURCE_RECORD_NAME)); 025 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_ISBN, OLEConstants.OLEEResourceRecord.ERESOURCE_ISBN_ISSN_VALUE)); 026 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_OCLC, OLEConstants.OLEEResourceRecord.ERESOURCE_OCLC_VALUE)); 027 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PUBLISHER, OLEConstants.OLEEResourceRecord.ERESOURCE_PUBLISHER_VALUE)); 028 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PLATFORM_PROVIDER, OLEConstants.OLEEResourceRecord.ERESOURCE_PLATFORM_PROV_NAME)); 029 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_IDENTIFIER, OLEConstants.OLEEResourceRecord.ERESOURCE_RECORD_ID)); 030 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_DOC_NUMB, OLEConstants.OLEEResourceRecord.ERESOURCE_DOC_ID)); 031 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PO_ID, OLEConstants.OLEEResourceRecord.ERESOURCE_PO_NUMBER)); 032 ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_LICENSE_REQ_STATUS, OLEConstants.OLEEResourceRecord.ERESOURCE_SUB_WORKFLOW_STATUS)); 033 034 return ersSearchoptions; 035 } 036}