use of org.kuali.rice.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class InvoiceFrequencyValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
KeyValuesService boService = SpringContext.getBean(KeyValuesService.class);
Collection<InvoiceFrequency> invoiceFrequencyCodes = boService.findAll(InvoiceFrequency.class);
List<KeyValue> invoiceFrequencyKeyLabels = new ArrayList<KeyValue>();
for (Iterator<InvoiceFrequency> iter = invoiceFrequencyCodes.iterator(); iter.hasNext(); ) {
InvoiceFrequency element = (InvoiceFrequency) iter.next();
if (element.isActive()) {
// only show active invoice types
invoiceFrequencyKeyLabels.add(new ConcreteKeyValue(element.getInvoiceFrequencyCode(), element.getInvoiceFrequencyCode()));
}
}
return invoiceFrequencyKeyLabels;
}
use of org.kuali.rice.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class PaymentMethodValuesFinder method getKeyValues.
/*
* @see org.kuali.keyvalues.KeyValuesFinder#getKeyValues()
*/
public List<KeyValue> getKeyValues() {
Collection<PaymentMethod> paymentMethods = getBusinessObjectService().findMatchingOrderBy(PaymentMethod.class, getFilterCriteria(), "paymentMethodName", true);
List<KeyValue> labels = new ArrayList<KeyValue>(paymentMethods.size());
for (PaymentMethod pm : paymentMethods) {
labels.add(new ConcreteKeyValue(pm.getPaymentMethodCode(), pm.getPaymentMethodCode() + " - " + pm.getPaymentMethodName()));
}
return labels;
}
use of org.kuali.rice.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class ScheduleTypeKeyValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> chartKeyLabels = new ArrayList<KeyValue>();
chartKeyLabels.add(new ConcreteKeyValue("", ""));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.DAILY.name, "Daily"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.BIWEEKLY.name, "Bi-Weekly"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.MONTHLY.name, "Monthly"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.YEARLY.name, "Yearly"));
return chartKeyLabels;
}
use of org.kuali.rice.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class CuLocaleValuesFinder method getKeyValues.
/**
* @see org.kuali.kfs.krad.keyvalues.KeyValuesFinder#getKeyValues()
*/
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue(KFSConstants.EMPTY_STRING, KFSConstants.EMPTY_STRING));
// In this case, the source map is a "linked" one, so we can rely on consistent iteration order.
for (Map.Entry<String, String> locale : CUVendorConstants.LOCALES_LABEL_MAP.entrySet()) {
keyValues.add(new ConcreteKeyValue(locale.getKey(), locale.getValue()));
}
return keyValues;
}
use of org.kuali.rice.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class AttachmentDescriptionValuesFinder 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("Note", "Note"));
keyValues.add(new ConcreteKeyValue("Quote", "Quote"));
keyValues.add(new ConcreteKeyValue("Invoice", "Invoice"));
keyValues.add(new ConcreteKeyValue("Contract/Agreement", "Contract/Agreement"));
keyValues.add(new ConcreteKeyValue("Sole Source", "Sole Source"));
keyValues.add(new ConcreteKeyValue("Specifications", "Specifications"));
keyValues.add(new ConcreteKeyValue("Other", "Other"));
return keyValues;
}
Aggregations