use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class CuCurrencyTypeValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList();
keyValues.add(new ConcreteKeyValue(CuFPConstants.CURRENCY_CODE_U, CuFPConstants.CURRENCY_US_DOLLAR));
keyValues.add(new ConcreteKeyValue(CuFPConstants.CURRENCY_CODE_C, CuFPConstants.CURRENCY_US_DOLLAR_TO_FOREIGN));
keyValues.add(new ConcreteKeyValue(CuFPConstants.CURRENCY_CODE_F, CuFPConstants.CURRENCY_FOREIGN));
return keyValues;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue 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.ConcreteKeyValue 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.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class PurchaseOrderTransmissionMethodValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
Collection<PurchaseOrderTransmissionMethod> methods = keyValuesService.findAll(PurchaseOrderTransmissionMethod.class);
List<KeyValue> labels = new ArrayList<>();
labels.add(new ConcreteKeyValue("", ""));
for (PurchaseOrderTransmissionMethod method : methods) {
labels.add(new ConcreteKeyValue(method.getPurchaseOrderTransmissionMethodCode(), method.getPurchaseOrderTransmissionMethodDescription()));
}
return labels;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class IWantDocumentAction method setCollegeAndDepartmentBasedOnPrimaryDepartment.
/**
* Sets the College and Department based on the initiator primary department.
*
* @param documentForm
*/
private void setCollegeAndDepartmentBasedOnPrimaryDepartment(IWantDocumentForm documentForm) {
IWantDocumentService iWantDocumentService = SpringContext.getBean(IWantDocumentService.class);
String primaryDeptOrg = null;
IWantDocument iWantDocument = null;
if (documentForm != null && documentForm.getDocument() != null) {
iWantDocument = (IWantDocument) documentForm.getDocument();
}
if (iWantDocument != null && StringUtils.isEmpty(iWantDocument.getCollegeLevelOrganization())) {
Person currentUser = GlobalVariables.getUserSession().getPerson();
Entity entityInfo = KimApiServiceLocator.getIdentityService().getEntityByPrincipalId(currentUser.getPrincipalId());
if (ObjectUtils.isNotNull(entityInfo)) {
if (ObjectUtils.isNotNull(entityInfo.getEmploymentInformation()) && entityInfo.getEmploymentInformation().size() > 0) {
EntityEmployment employmentInformation = entityInfo.getEmploymentInformation().get(0);
String primaryDepartment = employmentInformation.getPrimaryDepartmentCode();
primaryDeptOrg = primaryDepartment.substring(primaryDepartment.lastIndexOf('-') + 1, primaryDepartment.length());
String cLevelOrg = iWantDocumentService.getCLevelOrganizationForDLevelOrg(primaryDepartment);
((IWantDocument) documentForm.getDocument()).setCollegeLevelOrganization(cLevelOrg);
}
}
}
if (iWantDocument != null && StringUtils.isNotEmpty(iWantDocument.getCollegeLevelOrganization())) {
String cLevelOrg = iWantDocument.getCollegeLevelOrganization();
documentForm.getDeptOrgKeyLabels().clear();
documentForm.getDeptOrgKeyLabels().add(new ConcreteKeyValue("", "Please Select"));
List<LevelOrganization> dLevelOrgs = iWantDocumentService.getDLevelOrganizations(cLevelOrg);
for (LevelOrganization levelOrganization : dLevelOrgs) {
documentForm.getDeptOrgKeyLabels().add(new ConcreteKeyValue(levelOrganization.getCode(), levelOrganization.getCodeAndDescription()));
}
if (primaryDeptOrg != null) {
iWantDocument.setDepartmentLevelOrganization(primaryDeptOrg);
}
}
}
Aggregations