Search in sources :

Example 1 with KimDocumentAttributeDataBusinessObjectBase

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;
}
Also used : KimDocumentAttributeDataBusinessObjectBase(org.kuali.kfs.kim.bo.ui.KimDocumentAttributeDataBusinessObjectBase) HashMap(java.util.HashMap) KimAttribute(org.kuali.kfs.kim.impl.common.attribute.KimAttribute)

Aggregations

HashMap (java.util.HashMap)1 KimDocumentAttributeDataBusinessObjectBase (org.kuali.kfs.kim.bo.ui.KimDocumentAttributeDataBusinessObjectBase)1 KimAttribute (org.kuali.kfs.kim.impl.common.attribute.KimAttribute)1