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.api.resourceloader.GlobalResourceLoader; |
25 |
|
import org.kuali.rice.core.util.ConcreteKeyValue; |
26 |
|
import org.kuali.rice.core.util.KeyValue; |
27 |
|
import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase; |
28 |
|
import org.kuali.student.core.organization.service.OrganizationService; |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 4 |
Complexity Density: 0.67 |
|
34 |
|
public abstract class StudentKeyValuesBase extends KeyValuesBase { |
35 |
|
|
36 |
|
private static OrganizationService organizationService; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
38 |
0
|
protected static OrganizationService getOrganizationService() {... |
39 |
0
|
if (organizationService == null) { |
40 |
0
|
organizationService = (OrganizationService) GlobalResourceLoader |
41 |
|
.getService(new QName("http://student.kuali.org/wsdl/organization","OrganizationService")); |
42 |
|
} |
43 |
0
|
return organizationService; |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
@link@link |
48 |
|
|
49 |
|
|
50 |
|
@param |
51 |
|
@param |
52 |
|
@param |
53 |
|
@param |
54 |
|
@return |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
60 |
0
|
protected static KeyValue buildKeyValue(String orgId, String orgShortName, String orgLongName, String orgType) {... |
61 |
0
|
if (StringUtils.isBlank(orgShortName)) { |
62 |
0
|
throw new IllegalArgumentException("Blank value for orgShortName is invalid."); |
63 |
|
} |
64 |
|
|
65 |
0
|
return new ConcreteKeyValue(orgId, orgShortName); |
66 |
|
} |
67 |
|
|
68 |
|
} |