View Javadoc
1   package org.kuali.ole.describe.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.keyvalues.KeyValuesBase;
7   
8   import java.util.ArrayList;
9   import java.util.List;
10  
11  /**
12   * Created with IntelliJ IDEA.
13   * User: sundarr
14   * Date: 7/2/13
15   * Time: 6:34 PM
16   * To change this template use File | Settings | File Templates.
17   */
18  public class SerialsReceivingRecordSearchByKeyValueFinder extends KeyValuesBase {
19  
20      /**
21       * This method will populate the code as a key and name as a value and return it as list
22       *
23       * @return keyValues(list)
24       */
25      @Override
26      public List getKeyValues() {
27          List<KeyValue> keyValues = new ArrayList<KeyValue>();
28  
29          keyValues.add(new ConcreteKeyValue(OLEConstants.TITLE_SEARCH, "Title"));
30          keyValues.add(new ConcreteKeyValue(OLEConstants.ISSN_SEARCH, "ISSN"));
31          keyValues.add(new ConcreteKeyValue(OLEConstants.SERIAL_SEARCH, "Serials Receiving Record No"));
32          keyValues.add(new ConcreteKeyValue(OLEConstants.LOCALID_SEARCH, "Local Identifier"));
33          keyValues.add(new ConcreteKeyValue(OLEConstants.PO_SEARCH, "Purchase Order No"));
34          return keyValues;
35      }
36  }