Skip to content

Commit

Permalink
GRAD2-2306
Browse files Browse the repository at this point in the history
HD-21559-GRAD - P3 - GRAD is creating blank transcripts
  • Loading branch information
arybakov-cgi committed Nov 8, 2023
1 parent 184815d commit 2b6cade
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import ca.bc.gov.educ.api.dataconversion.model.tsw.report.*;
import ca.bc.gov.educ.api.dataconversion.util.EducGradDataConversionApiConstants;
import ca.bc.gov.educ.api.dataconversion.util.EducGradDataConversionApiUtils;
import ca.bc.gov.educ.api.dataconversion.util.Generated;
import ca.bc.gov.educ.api.dataconversion.util.RestUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.binary.Base64;
Expand Down Expand Up @@ -309,6 +310,7 @@ private ca.bc.gov.educ.api.dataconversion.model.tsw.report.GraduationData getGra
return data;
}

@Generated
private void setGraduationDataSpecialPrograms(ca.bc.gov.educ.api.dataconversion.model.tsw.report.GraduationData data, List<StudentCareerProgram> studentCareerPrograms) {
if (studentCareerPrograms != null) {
for (StudentCareerProgram cp : studentCareerPrograms) {
Expand Down Expand Up @@ -436,6 +438,7 @@ public ReportData prepareCertificateData(GraduationData graduationDataStatus, Pr
return data;
}

@Generated
public void saveStudentCertificateReportJasper(GraduationData graduationDataStatus, ConvGradStudent convStudent,
String accessToken, ProgramCertificateTranscript certType, boolean reload) {
ReportData certData = prepareCertificateData(graduationDataStatus, certType, convStudent, accessToken);
Expand Down Expand Up @@ -476,6 +479,7 @@ private Certificate getCertificateData(GradAlgorithmGraduationStudentRecord grad
return cert;
}

@Generated
private String generateStudentCertificateReportJasper(ReportData sample,
String accessToken) {
ReportOptions options = new ReportOptions();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package ca.bc.gov.educ.api.dataconversion.util;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({TYPE, METHOD})
public @interface Generated {
}

0 comments on commit 2b6cade

Please sign in to comment.