Search in sources :

Example 1 with DefaultValueFinder

use of org.kuali.kfs.krad.valuefinder.DefaultValueFinder in project cu-kfs by CU-CommunityApps.

the class LookupResource method getLookupAttributeForClass.

// todo move this to converter code
protected List<FormAttribute> getLookupAttributeForClass(Class classForType) {
    List<FormAttribute> attributes = getLookupDictionary().getLookupAttributes(classForType);
    attributes.forEach(attribute -> {
        final DefaultValueFinder defaultValueFinder = getDefaultValueFinderIfItExists(attribute);
        if (defaultValueFinder != null) {
            String defaultValue = defaultValueFinder.getDefaultValue();
            attribute.setDefaultValue(defaultValue);
        }
    });
    return attributes;
}
Also used : FormAttribute(org.kuali.kfs.datadictionary.FormAttribute) DefaultValueFinder(org.kuali.kfs.krad.valuefinder.DefaultValueFinder)

Aggregations

FormAttribute (org.kuali.kfs.datadictionary.FormAttribute)1 DefaultValueFinder (org.kuali.kfs.krad.valuefinder.DefaultValueFinder)1