1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
package org.kuali.rice.student.lookup.keyvalues; |
20 |
|
|
21 |
|
import javax.xml.namespace.QName; |
22 |
|
|
23 |
|
import org.apache.commons.lang.StringUtils; |
24 |
|
import org.kuali.rice.core.resourceloader.GlobalResourceLoader; |
25 |
|
import org.kuali.rice.core.util.KeyLabelPair; |
26 |
|
import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase; |
27 |
|
import org.kuali.student.core.organization.service.OrganizationService; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 4 |
Complexity Density: 0.67 |
|
33 |
|
public abstract class StudentKeyValuesBase extends KeyValuesBase { |
34 |
|
|
35 |
|
private static OrganizationService organizationService; |
36 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
37 |
0
|
protected static OrganizationService getOrganizationService() {... |
38 |
0
|
if (organizationService == null) { |
39 |
0
|
organizationService = (OrganizationService) GlobalResourceLoader |
40 |
|
.getService(new QName("http://student.kuali.org/wsdl/organization","OrganizationService")); |
41 |
|
} |
42 |
0
|
return organizationService; |
43 |
|
} |
44 |
|
|
45 |
|
|
46 |
|
@link@link |
47 |
|
|
48 |
|
|
49 |
|
@param |
50 |
|
@param |
51 |
|
@param |
52 |
|
@param |
53 |
|
@return |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
59 |
0
|
protected static KeyLabelPair buildKeyLabelPair(String orgId, String orgShortName, String orgLongName, String orgType) {... |
60 |
0
|
if (StringUtils.isBlank(orgShortName)) { |
61 |
0
|
throw new IllegalArgumentException("Blank value for orgShortName is invalid."); |
62 |
|
} |
63 |
|
|
64 |
0
|
return new KeyLabelPair(orgId, orgShortName); |
65 |
|
} |
66 |
|
|
67 |
|
} |