View Javadoc

1   package org.kuali.ole.batch.keyvalue;
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: aurojyotit
13   * Date: 7/8/13
14   * Time: 12:58 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class OLEBatchProcessFieldNameValuesFinder extends KeyValuesBase {
18  
19      public List<KeyValue> getKeyValues() {
20  
21          List<KeyValue> keyValues = new ArrayList<KeyValue>();
22          /*Collection<OLEBatchProcessFilterCriteriaBo> oleBatchProcessFilterCriteriaBos = KRADServiceLocator.getBusinessObjectService().findAll(OLEBatchProcessFilterCriteriaBo.class);
23          keyValues.add(new ConcreteKeyValue(" ", " "));
24          for (OLEBatchProcessFilterCriteriaBo oleBatchProcessFilterCriteriaBo : oleBatchProcessFilterCriteriaBos) {
25              keyValues.add(new ConcreteKeyValue( oleBatchProcessFilterCriteriaBo.getFieldName(), oleBatchProcessFilterCriteriaBo.getFieldName() ));
26          }*/
27  
28          keyValues.add(new ConcreteKeyValue("",""));
29          keyValues.add(new ConcreteKeyValue("Creation Date","Creation Date"));
30          keyValues.add(new ConcreteKeyValue("Updation Date","Updation Date"));
31          keyValues.add(new ConcreteKeyValue("Record Status","Record Status"));
32          keyValues.add(new ConcreteKeyValue("Record Number","Record Number"));
33          keyValues.add(new ConcreteKeyValue("Title","Title"));
34          keyValues.add(new ConcreteKeyValue("Author","Author"));
35          return keyValues;
36      }
37  }