package net.sourceforge.fenixedu.presentationTier.docs.academicAdministrativeOffice; import java.util.ArrayList; import java.util.List; import net.sourceforge.fenixedu.domain.serviceRequests.documentRequests.DocumentRequest; import net.sourceforge.fenixedu.presentationTier.docs.MissingMandatoryReportDataException; import pt.iscte.ci.metadata.ISCTE; public class ExamDateCertificate extends AdministrativeOfficeDocument { /** * */ private static final long serialVersionUID = 1L; @ISCTE (comment="Added throws MissingMandatoryReportDataException", author="António Casqueiro") protected ExamDateCertificate(final DocumentRequest documentRequest) throws MissingMandatoryReportDataException { super(documentRequest); } @Override protected void fillReport() { super.fillReport(); this.dataSource.addAll(getExamDateEntries()); parameters.put("name", getDocumentRequest().getRegistration().getPerson().getName()); } private List getExamDateEntries() { final List result = new ArrayList(); for (int i = 0; i < 50; i++) { result.add(new ExamDateEntry("FINISH " + i, "10/10/2006", "10:00", "10/10/2006", "10:00")); } return result; } @Override protected boolean hasPayment() { return false; } }