Coverage Report - org.kuali.student.enrollment.class2.courseoffering.service.transformer.RegistrationGroupTransformer
 
Classes in this File Line Coverage Branch Coverage Complexity
RegistrationGroupTransformer
0%
0/27
N/A
1
 
 1  
 package org.kuali.student.enrollment.class2.courseoffering.service.transformer;
 2  
 
 3  
 import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo;
 4  
 import org.kuali.student.enrollment.lui.dto.LuiInfo;
 5  
 
 6  
 
 7  0
 public class RegistrationGroupTransformer {
 8  
 
 9  
     public RegistrationGroupInfo transform(LuiInfo lui) {
 10  
 
 11  0
         RegistrationGroupInfo regDateGroup = new RegistrationGroupInfo();
 12  0
         regDateGroup.setId(lui.getId());
 13  0
         regDateGroup.setMeta(lui.getMeta());
 14  0
         regDateGroup.setStateKey(lui.getStateKey());
 15  0
         regDateGroup.setTypeKey(lui.getTypeKey());
 16  0
         regDateGroup.setDescr(lui.getDescr());
 17  0
         regDateGroup.setAttributes(lui.getAttributes());
 18  0
         regDateGroup.setMaximumEnrollment(lui.getMaximumEnrollment());
 19  0
         regDateGroup.setMinimumEnrollment(lui.getMinimumEnrollment());
 20  0
         regDateGroup.setName(lui.getName());
 21  0
         regDateGroup.setFormatOfferingId(lui.getCluId());
 22  0
         regDateGroup.setTermId(lui.getAtpId());
 23  
         // TODO: co.setIsHonorsOffering(isHonorsOffering) -- lui.getLuiCodes() ?
 24  
 
 25  
         // below undecided
 26  
         // co.setHasWaitlist(lui.getHasWaitlist());
 27  
         // co.setWaitlistTypeKey(lui.getWaitlistTypeKey());
 28  
         // co.setWaitlistMaximum(lui.getWaitlistMaximum());
 29  
         // co.setIsWaitlistCheckinRequired(lui.getIsWaitlistCheckinRequired());
 30  
         // co.setWaitlistCheckinFrequency(lui.getWaitlistCheckinFrequency());
 31  
 
 32  
         // LuiLuiRelation (to set courseOfferingId, activityOfferingIds)
 33  0
         return regDateGroup;
 34  
     }
 35  
     
 36  
     
 37  
     public LuiInfo transform(RegistrationGroupInfo regGroup) {
 38  
         
 39  0
         LuiInfo lui = new LuiInfo();
 40  0
         lui.setId(regGroup.getId());
 41  0
         lui.setTypeKey(regGroup.getTypeKey());
 42  0
         lui.setStateKey(regGroup.getStateKey());
 43  0
         lui.setDescr(regGroup.getDescr());
 44  0
         lui.setMeta(regGroup.getMeta());
 45  0
         lui.setAttributes(regGroup.getAttributes());
 46  0
         lui.setName(regGroup.getName());
 47  0
         lui.setCluId(regGroup.getFormatOfferingId());
 48  0
         lui.setMaximumEnrollment(regGroup.getMaximumEnrollment());
 49  0
         lui.setMinimumEnrollment(regGroup.getMinimumEnrollment());
 50  0
         lui.setAtpId(regGroup.getTermId());
 51  
         
 52  
         //TODO: co.getIsHonorsOffering() --store in a generic lui luCodes type of field?
 53  
         
 54  
         //below undecided
 55  
         //lui.setHasWaitlist(rg.getHasWaitlist());
 56  
         //lui.setIsWaitlistCheckinRequired(rg.getIsWaitlistCheckinRequired());
 57  
         //lui.setWaitlistCheckinFrequency(rg.getWaitlistCheckinFrequency());
 58  
         //lui.setWaitlistMaximum(rg.getWaitlistMaximum());
 59  
         //lui.setWaitlistTypeKey(rg.getWaitlistTypeKey());
 60  0
         return lui;
 61  
     
 62  
     }
 63  
 }