1 package org.kuali.ole.batch.keyvalue;
2
3 import org.kuali.ole.describe.bo.OleBibliographicRecordStatus;
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 import org.kuali.rice.krad.service.KRADServiceLocator;
8
9 import java.util.ArrayList;
10 import java.util.Collection;
11 import java.util.List;
12
13
14
15
16
17
18
19
20 public class OLEBatchProcessProfileBibStatusValuesFinder extends KeyValuesBase {
21
22 public List<KeyValue> getKeyValues() {
23
24 List<KeyValue> keyValues = new ArrayList<KeyValue>();
25 Collection<OleBibliographicRecordStatus> oleBatchProcessFilterCriteriaBos = KRADServiceLocator.getBusinessObjectService().findAll(OleBibliographicRecordStatus.class);
26 keyValues.add(new ConcreteKeyValue("",""));
27 for (OleBibliographicRecordStatus oleBatchProcessFilterCriteriaBo : oleBatchProcessFilterCriteriaBos) {
28 keyValues.add(new ConcreteKeyValue(oleBatchProcessFilterCriteriaBo.getBibliographicRecordStatusName(),oleBatchProcessFilterCriteriaBo.getBibliographicRecordStatusName()));
29
30 }
31 return keyValues;
32 }
33 }