View Javadoc

1   package org.kuali.ole.deliver.request.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       * @return keyValues(list)
21       */
22      @Override
23      public List getKeyValues() {
24          List<KeyValue> keyValues = new ArrayList<KeyValue>();
25  
26                  keyValues.add(new ConcreteKeyValue("Patron","Patron"));
27                  keyValues.add(new ConcreteKeyValue("Proxy Patron","Proxy Patron"));
28                  keyValues.add(new ConcreteKeyValue("Operator","Operator"));
29  
30          return keyValues;
31      }
32  
33  }