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;
}
Aggregations