|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EnumerationMaintainableImpl | Line # 10 | 5 | 0% | 2 | 8 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | package org.kuali.student.core.enumerationmanagement.document; | |
2 | ||
3 | import java.util.Map; | |
4 | ||
5 | import org.kuali.rice.kns.document.MaintenanceDocument; | |
6 | import org.kuali.rice.kns.maintenance.KualiMaintainableImpl; | |
7 | import org.kuali.student.core.enumerationmanagement.bo.EnumeratedValue; | |
8 | import org.kuali.student.core.enumerationmanagement.bo.Enumeration; | |
9 | ||
10 | public class EnumerationMaintainableImpl extends KualiMaintainableImpl { | |
11 | ||
12 | private static final long serialVersionUID = 7426377658194232269L; | |
13 | ||
14 | 0 | @Override |
15 | public void processAfterCopy(MaintenanceDocument document, Map<String, String[]> parameters) { | |
16 | 0 | super.processAfterCopy(document, parameters); |
17 | ||
18 | 0 | Enumeration enumeration = (Enumeration) document.getNewMaintainableObject().getBusinessObject(); |
19 | ||
20 | 0 | if(enumeration.getEnumeratedValueList() != null) { |
21 | 0 | for(EnumeratedValue value : enumeration.getEnumeratedValueList()) { |
22 | 0 | value.setId(null); |
23 | } | |
24 | } | |
25 | } | |
26 | ||
27 | } |
|