Coverage Report - org.kuali.student.core.enumerationmanagement.document.EnumerationMaintainableImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumerationMaintainableImpl
0%
0/7
0%
0/4
3
 
 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  0
 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  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  0
         }
 26  
 
 27  
 }