use of org.kuali.kfs.core.api.util.KeyValue 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;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class InvoiceTypeValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
Collection<InvoiceType> invoiceTypeCodes = keyValuesService.findAll(InvoiceType.class);
List<KeyValue> invoiceTypeKeyLabels = new ArrayList<KeyValue>();
for (Iterator<InvoiceType> iter = invoiceTypeCodes.iterator(); iter.hasNext(); ) {
InvoiceType element = (InvoiceType) iter.next();
if (element.isActive()) {
invoiceTypeKeyLabels.add(new ConcreteKeyValue(element.getInvoiceTypeCode(), element.getInvoiceTypeCode()));
}
}
return invoiceTypeKeyLabels;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class DepartmentLevelOrganizationValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue("", ""));
return keyValues;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class AmountOrPercentValuesFinder method getKeyValues.
/**
* @see org.kuali.kfs.kns.lookup.keyvalues.KeyValuesFinder#getKeyValues()
*/
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue(CUPurapConstants.AMOUNT, "Amount"));
keyValues.add(new ConcreteKeyValue(CUPurapConstants.PERCENT, "Percent"));
return keyValues;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class YesNoValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<>();
keyValues.add(new ConcreteKeyValue("N", "No"));
keyValues.add(new ConcreteKeyValue("Y", "Yes"));
return keyValues;
}
Aggregations