View Javadoc
1   package org.kuali.ole.select.keyvalue;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.rice.core.api.util.ConcreteKeyValue;
5   import org.kuali.rice.core.api.util.KeyValue;
6   import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
7   import org.kuali.rice.krad.uif.view.ViewModel;
8   
9   import java.util.ArrayList;
10  import java.util.List;
11  
12  /**
13   * Created with IntelliJ IDEA.
14   * User: chenchulakshmig
15   * Date: 6/26/13
16   * Time: 12:25 PM
17   * To change this template use File | Settings | File Templates.
18   */
19  public class OLEEResourceSearchFinder extends UifKeyValuesFinderBase {
20      @Override
21      public List<KeyValue> getKeyValues(ViewModel viewModel) {
22          List<KeyValue> ersSearchoptions = new ArrayList<KeyValue>();
23  
24          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_TITLE, OLEConstants.OLEEResourceRecord.ERESOURCE_RECORD_NAME));
25          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_ISBN, OLEConstants.OLEEResourceRecord.ERESOURCE_ISBN_ISSN_VALUE));
26          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_OCLC, OLEConstants.OLEEResourceRecord.ERESOURCE_OCLC_VALUE));
27          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PUBLISHER, OLEConstants.OLEEResourceRecord.ERESOURCE_PUBLISHER_VALUE));
28          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PLATFORM_PROVIDER, OLEConstants.OLEEResourceRecord.ERESOURCE_PLATFORM_PROV_NAME));
29          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_IDENTIFIER, OLEConstants.OLEEResourceRecord.ERESOURCE_RECORD_ID));
30          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_DOC_NUMB, OLEConstants.OLEEResourceRecord.ERESOURCE_DOC_ID));
31          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_PO_ID, OLEConstants.OLEEResourceRecord.ERESOURCE_PO_NUMBER));
32          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_INVOICE_NO, OLEConstants.OLEEResourceRecord.ERESOURCE_INVOICE_NUMBER));
33          ersSearchoptions.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.ERESOURCE_LICENSE_REQ_STATUS, OLEConstants.OLEEResourceRecord.ERESOURCE_SUB_WORKFLOW_STATUS));
34  
35          return ersSearchoptions;
36      }
37  }