package net.sourceforge.fenixedu.dataTransferObject.degreeAdministrativeOffice.gradeSubmission; import java.util.ArrayList; import java.util.Collection; import net.sourceforge.fenixedu.domain.ExecutionCourse; import net.sourceforge.fenixedu.domain.MarkSheet; public class MarkSheetSendMailBean extends MarkSheetManagementBaseBean { Collection markSheetToConfirmSendMailBean; Collection gradesToSubmitExecutionCourseSendMailBean; String from; String subject; String message; String cc; public String getCc() { return cc; } public void setCc(String cc) { this.cc = cc; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public Collection getMarkSheetToConfirmSendMailBean() { return markSheetToConfirmSendMailBean; } public void setMarkSheetToConfirmSendMailBean(Collection markSheetToConfirmSendMailBean) { this.markSheetToConfirmSendMailBean = markSheetToConfirmSendMailBean; } public Collection getMarkSheetToConfirmSendMailBeanToSubmit() { Collection result = new ArrayList(); for (MarkSheetToConfirmSendMailBean sendMailBean : this.markSheetToConfirmSendMailBean) { if (sendMailBean.isToSubmit()) { result.add(sendMailBean.getMarkSheet()); } } return result; } public Collection getGradesToSubmitExecutionCourseSendMailBean() { return gradesToSubmitExecutionCourseSendMailBean; } public void setGradesToSubmitExecutionCourseSendMailBean( Collection gradesToSubmitExecutionCourseSendMailBean) { this.gradesToSubmitExecutionCourseSendMailBean = gradesToSubmitExecutionCourseSendMailBean; } public Collection getGradesToSubmitExecutionCourseSendMailBeanToSubmit() { Collection result = new ArrayList(); for (GradesToSubmitExecutionCourseSendMailBean sendMailBean : this.gradesToSubmitExecutionCourseSendMailBean) { if (sendMailBean.isToSubmit()) { result.add(sendMailBean.getExecutionCourse()); } } return result; } }