View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import org.kuali.rice.core.api.util.ConcreteKeyValue;
4   import org.kuali.rice.core.api.util.KeyValue;
5   import org.kuali.rice.krad.keyvalues.KeyValuesBase;
6   
7   import java.util.ArrayList;
8   import java.util.List;
9   
10  /**
11   * Created with IntelliJ IDEA.
12   * User: ?
13   * Date: 10/9/12
14   * Time: 6:11 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class OleDeliverRequestCreatorKeyValue extends KeyValuesBase {
18      /**
19       * This method will populate the code as a key and name as a value and return it as list
20       *
21       * @return keyValues(list)
22       */
23      @Override
24      public List getKeyValues() {
25          List<KeyValue> keyValues = new ArrayList<KeyValue>();
26  
27          keyValues.add(new ConcreteKeyValue("Patron", "Patron"));
28          keyValues.add(new ConcreteKeyValue("Proxy Patron", "Proxy Patron"));
29          keyValues.add(new ConcreteKeyValue("Operator", "Operator"));
30  
31          return keyValues;
32      }
33  
34  }