Class EducationalBookletSchedulable.EducationalBookletReport

java.lang.Object
org.ametys.odf.schedulable.EducationalBookletSchedulable.EducationalBookletReport
Enclosing class:
EducationalBookletSchedulable

Object to represent list of programs exported and list of programs with error after PDF generation
  • Constructor Details

    • EducationalBookletReport

      public EducationalBookletReport(File bookletDirectory)
      The constructor
      Parameters:
      bookletDirectory - The booklet directory
  • Method Details

    • getBookletDirectory

      Get the booklet directory
      Returns:
      the booklet directory
    • getExportSubPrograms

      Get export subPrograms
      Returns:
      the list of export subPrograms
    • addExportSubProgram

      public void addExportSubProgram(SubProgram subProgram)
      Add subProgram to export subPrograms
      Parameters:
      subProgram - the subProgram to add
    • setExportSubProgram

      public void setExportSubProgram(List<SubProgram> subPrograms)
      Set the export subPrograms
      Parameters:
      subPrograms - the list of export subPrograms
    • getSubProgramsWithError

      Get subPrograms with error
      Returns:
      the list of subPrograms with error
    • addSubProgramWithError

      public void addSubProgramWithError(SubProgram subProgram)
      Add subProgram to subPrograms with error
      Parameters:
      subProgram - the subProgram to add
    • getCurrentStatus

      The current status of the educational booklet generation. - FAILURE: No subprograms with errors - SUCCESS: All subprograms are successfully generated - SUCCESS_WITH_ERRORS: Some subprograms are successfully generated but not all of them
      Returns:
      A String representing the status