use of org.kuali.kfs.kim.bo.ui.KimDocumentAttributeDataBusinessObjectBase in project cu-kfs by CU-CommunityApps.
the class AttributeValidationHelper method convertQualifiersToAttrIdxMap.
public Map<String, String> convertQualifiersToAttrIdxMap(List<? extends KimDocumentAttributeDataBusinessObjectBase> qualifiers) {
Map<String, String> m = new HashMap<>();
int i = 0;
for (KimDocumentAttributeDataBusinessObjectBase data : qualifiers) {
KimAttribute attrib = getAttributeDefinitionById(data.getKimAttrDefnId());
if (attrib != null) {
m.put(attrib.getAttributeName(), Integer.toString(i));
} else {
LOG.error("Unable to get attribute name for ID:" + data.getKimAttrDefnId());
}
i++;
}
return m;
}
Aggregations