Search in sources :

Example 1 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Example 2 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Example 3 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Example 4 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList) PurchaseOrderTransmissionMethod(org.kuali.kfs.module.purap.businessobject.PurchaseOrderTransmissionMethod)

Example 5 with ConcreteKeyValue

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);
        }
    }
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) Entity(org.kuali.kfs.kim.impl.identity.entity.Entity) LevelOrganization(edu.cornell.kfs.module.purap.businessobject.LevelOrganization) EntityEmployment(org.kuali.kfs.kim.impl.identity.employment.EntityEmployment) Person(org.kuali.kfs.kim.api.identity.Person) IWantDocumentService(edu.cornell.kfs.module.purap.document.service.IWantDocumentService) IWantDocument(edu.cornell.kfs.module.purap.document.IWantDocument) PurApFavoriteAccountLineBuilderForIWantDocument(edu.cornell.kfs.module.purap.util.PurApFavoriteAccountLineBuilderForIWantDocument)

Aggregations

ConcreteKeyValue (org.kuali.kfs.core.api.util.ConcreteKeyValue)37 KeyValue (org.kuali.kfs.core.api.util.KeyValue)33 ArrayList (java.util.ArrayList)32 LevelOrganization (edu.cornell.kfs.module.purap.businessobject.LevelOrganization)3 IWantDocument (edu.cornell.kfs.module.purap.document.IWantDocument)2 IWantDocumentService (edu.cornell.kfs.module.purap.document.service.IWantDocumentService)2 PurApFavoriteAccountLineBuilderForIWantDocument (edu.cornell.kfs.module.purap.util.PurApFavoriteAccountLineBuilderForIWantDocument)2 Person (org.kuali.kfs.kim.api.identity.Person)2 CheckReconSource (com.rsmart.kuali.kfs.cr.businessobject.CheckReconSource)1 ReversionCategory (edu.cornell.kfs.coa.businessobject.ReversionCategory)1 ReversionCodeValuesFinder (edu.cornell.kfs.coa.businessobject.options.ReversionCodeValuesFinder)1 PaymentMethod (edu.cornell.kfs.fp.businessobject.PaymentMethod)1 SecurityGroupTab (edu.cornell.kfs.ksr.businessobject.SecurityGroupTab)1 SecurityProvisioning (edu.cornell.kfs.ksr.businessobject.SecurityProvisioning)1 AgencyOrigin (edu.cornell.kfs.module.cg.businessobject.AgencyOrigin)1 InvoiceFrequency (edu.cornell.kfs.module.cg.businessobject.InvoiceFrequency)1 InvoiceType (edu.cornell.kfs.module.cg.businessobject.InvoiceType)1 FavoriteAccount (edu.cornell.kfs.sys.businessobject.FavoriteAccount)1 FormTypes1099 (edu.cornell.kfs.tax.FormTypes1099)1 Collection (java.util.Collection)1