use of edu.cornell.kfs.module.cg.businessobject.AgencyOrigin in project cu-kfs by CU-CommunityApps.
the class AgencyOriginValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
Collection<AgencyOrigin> agencyOrigins = keyValuesService.findAllOrderBy(AgencyOrigin.class, KFSPropertyConstants.CODE, false);
List<KeyValue> keyValues = new ArrayList<>();
keyValues.add(new ConcreteKeyValue(KFSConstants.EMPTY_STRING, KFSConstants.EMPTY_STRING));
agencyOrigins.stream().map(agencyOrigin -> new ConcreteKeyValue(agencyOrigin.getCode(), agencyOrigin.getName())).forEach(keyValues::add);
return keyValues;
}
Aggregations