1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.workflow.qualifierresolver; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import org.kuali.rice.kew.engine.RouteContext; |
21 | |
import org.kuali.rice.kim.bo.types.dto.AttributeSet; |
22 | |
import org.kuali.rice.student.bo.KualiStudentKimAttributes; |
23 | |
import org.kuali.student.core.search.dto.SearchResultRow; |
24 | |
|
25 | 0 | public class DepartmentCommitteeQualifierResolver extends AbstractCocOrgQualifierResolver { |
26 | |
|
27 | |
@Override |
28 | |
public List<AttributeSet> resolve(RouteContext routeContext) { |
29 | 0 | List<AttributeSet> attributeSets = super.resolve(routeContext); |
30 | 0 | String orgId = null; |
31 | 0 | if (attributeSets.size() > 0 && attributeSets.get(0).size() > 0) { |
32 | 0 | orgId = getAttribute(attributeSets, KualiStudentKimAttributes.QUALIFICATION_ORG_ID); |
33 | |
} |
34 | 0 | List<SearchResultRow> results = relatedOrgsFromOrgId(orgId,KUALI_ORG_TYPE_CURRICULUM_PARENT,KUALI_ORG_COC); |
35 | 0 | return attributeSetFromSearchResult(results,KualiStudentKimAttributes.QUALIFICATION_DEPARTMENT,KualiStudentKimAttributes.QUALIFICATION_DEPARTMENT_ID); |
36 | |
} |
37 | |
|
38 | |
} |