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 @Override
15 public void processAfterCopy(MaintenanceDocument document, Map<String, String[]> parameters) {
16 super.processAfterCopy(document, parameters);
17
18 Enumeration enumeration = (Enumeration) document.getNewMaintainableObject().getBusinessObject();
19
20 if(enumeration.getEnumeratedValueList() != null) {
21 for(EnumeratedValue value : enumeration.getEnumeratedValueList()) {
22 value.setId(null);
23 }
24 }
25 }
26
27 }