Search in sources :

Example 1 with CheckReconSource

use of com.rsmart.kuali.kfs.cr.businessobject.CheckReconSource in project cu-kfs by CU-CommunityApps.

the class CheckReconSrcValuesFinder method getKeyValues.

/**
 * Get Key Values
 *
 * @return List of KeyLabelPair
 *
 * @see org.kuali.core.lookup.keyvalues.KeyValuesFinder#getKeyValues()
 */
public List<KeyValue> getKeyValues() {
    Collection<CheckReconSource> sources = SpringContext.getBean(KeyValuesService.class).findAll(CheckReconSource.class);
    List<KeyValue> srcKeyLabels = new ArrayList<KeyValue>();
    srcKeyLabels.add(new ConcreteKeyValue("", ""));
    for (CheckReconSource src : sources) {
        srcKeyLabels.add(new ConcreteKeyValue(src.getSourceCode(), src.getSourceName()));
    }
    return srcKeyLabels;
}
Also used : KeyValuesService(org.kuali.kfs.krad.service.KeyValuesService) ConcreteKeyValue(org.kuali.rice.core.api.util.ConcreteKeyValue) CheckReconSource(com.rsmart.kuali.kfs.cr.businessobject.CheckReconSource) KeyValue(org.kuali.rice.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.rice.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Aggregations

CheckReconSource (com.rsmart.kuali.kfs.cr.businessobject.CheckReconSource)1 ArrayList (java.util.ArrayList)1 KeyValuesService (org.kuali.kfs.krad.service.KeyValuesService)1 ConcreteKeyValue (org.kuali.rice.core.api.util.ConcreteKeyValue)1 KeyValue (org.kuali.rice.core.api.util.KeyValue)1