1 package org.kuali.student.enrollment.registration.client.service.dto; 2 3 import javax.xml.bind.annotation.XmlAccessType; 4 import javax.xml.bind.annotation.XmlAccessorType; 5 import javax.xml.bind.annotation.XmlRootElement; 6 import javax.xml.bind.annotation.XmlType; 7 import java.util.ArrayList; 8 import java.util.List; 9 10 @XmlRootElement 11 @XmlAccessorType(XmlAccessType.FIELD) 12 @XmlType(name = "CourseSearchResult", propOrder = { 13 "courseOfferingId", "activityOfferingIds", "regGroupId", "regGroupName", 14 "regGroupState", "termId", "registrationCounts"}) 15 public class RegGroupSearchResult { 16 17 private String courseOfferingId; 18 private List<String> activityOfferingIds; 19 private String regGroupId; 20 private String regGroupName; 21 private String regGroupState; 22 private String termId; 23 private List<RegistrationCountResult> registrationCounts; 24 25 public String getCourseOfferingId() { 26 return courseOfferingId; 27 } 28 29 public void setCourseOfferingId(String courseOfferingId) { 30 this.courseOfferingId = courseOfferingId; 31 } 32 33 public List<String> getActivityOfferingIds() { 34 if (activityOfferingIds == null) { 35 activityOfferingIds = new ArrayList<>(); 36 } 37 38 return activityOfferingIds; 39 } 40 41 public void setActivityOfferingIds(List<String> activityOfferingIds) { 42 this.activityOfferingIds = activityOfferingIds; 43 } 44 45 public String getRegGroupId() { 46 return regGroupId; 47 } 48 49 public void setRegGroupId(String regGroupId) { 50 this.regGroupId = regGroupId; 51 } 52 53 public String getRegGroupName() { 54 return regGroupName; 55 } 56 57 public void setRegGroupName(String regGroupName) { 58 this.regGroupName = regGroupName; 59 } 60 61 public String getRegGroupState() { 62 return regGroupState; 63 } 64 65 public void setRegGroupState(String regGroupState) { 66 this.regGroupState = regGroupState; 67 } 68 69 public String getTermId() { 70 return termId; 71 } 72 73 public void setTermId(String termId) { 74 this.termId = termId; 75 } 76 77 public List<RegistrationCountResult> getRegistrationCounts() { 78 if(registrationCounts == null){ 79 registrationCounts = new ArrayList<>(); 80 } 81 return registrationCounts; 82 } 83 84 public void setRegistrationCounts(List<RegistrationCountResult> registrationCounts) { 85 this.registrationCounts = registrationCounts; 86 } 87 }