use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class RequisitionAttachmentTypeValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue(CUPurapConstants.AttachemntToVendorIndicators.DONT_SEND_TO_VENDOR, "No"));
keyValues.add(new ConcreteKeyValue(CUPurapConstants.AttachemntToVendorIndicators.SEND_TO_VENDOR, "Yes"));
return keyValues;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class PayeeAchAccountExtractStatusValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<>();
keyValues.add(new ConcreteKeyValue(CUPdpConstants.PayeeAchAccountExtractStatuses.OPEN, CUPdpConstants.PayeeAchAccountExtractStatuses.OPEN));
keyValues.add(new ConcreteKeyValue(CUPdpConstants.PayeeAchAccountExtractStatuses.CANCELED, CUPdpConstants.PayeeAchAccountExtractStatuses.CANCELED));
keyValues.add(new ConcreteKeyValue(CUPdpConstants.PayeeAchAccountExtractStatuses.PROCESSED, CUPdpConstants.PayeeAchAccountExtractStatuses.PROCESSED));
return keyValues;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class PaymentWorksCustomAttributeValueToUseValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValueList = new ArrayList<KeyValue>();
keyValueList.add(new ConcreteKeyValue(PaymentWorksConstants.CustomAttributeValueToUse.FIELD_VALUE, PaymentWorksConstants.CustomAttributeValueToUse.FIELD_VALUE));
keyValueList.add(new ConcreteKeyValue(PaymentWorksConstants.CustomAttributeValueToUse.FILE, PaymentWorksConstants.CustomAttributeValueToUse.FILE));
return keyValueList;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class FavoriteAccountValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
List<FavoriteAccount> favoriteAccounts = getUserFavoriteAccounts();
keyValues.add(new ConcreteKeyValue("", ""));
if (CollectionUtils.isNotEmpty(favoriteAccounts)) {
Collections.sort(favoriteAccounts, new Comparator() {
public int compare(Object o1, Object o2) {
FavoriteAccount accountFirst = (FavoriteAccount) o1;
FavoriteAccount accountSecond = (FavoriteAccount) o2;
if (accountFirst.getPrimaryInd() && !accountSecond.getPrimaryInd()) {
return -1;
} else if (!accountFirst.getPrimaryInd() && accountSecond.getPrimaryInd()) {
return 1;
}
if (StringUtils.equals(accountFirst.getDescription(), accountSecond.getDescription())) {
return accountFirst.getAccountNumber().compareTo(accountSecond.getAccountNumber());
} else if (StringUtils.isBlank(accountFirst.getDescription())) {
// Be aware case comparison.
return -1;
} else if (StringUtils.isBlank(accountSecond.getDescription())) {
return 1;
} else {
return accountFirst.getDescription().compareTo(accountSecond.getDescription());
}
}
});
for (FavoriteAccount account : favoriteAccounts) {
keyValues.add(new ConcreteKeyValue(account.getAccountLineIdentifier().toString(), getAccountingLineDescription(account)));
}
}
return keyValues;
}
use of org.kuali.kfs.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class FormType1099ValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue(StringUtils.EMPTY, StringUtils.EMPTY));
for (FormTypes1099 type : FormTypes1099.values()) {
keyValues.add(new ConcreteKeyValue(type.formCode, type.formDescription));
}
return keyValues;
}
Aggregations