Package org.ametys.odf.schedulable
Class EducationalBookletSchedulable.EducationalBookletReport
- java.lang.Object
- 
- org.ametys.odf.schedulable.EducationalBookletSchedulable.EducationalBookletReport
 
- 
- Enclosing class:
- EducationalBookletSchedulable
 
 protected static class EducationalBookletSchedulable.EducationalBookletReport extends Object Object to represent list of programs exported and list of programs with error after PDF generation
- 
- 
Constructor SummaryConstructors Constructor Description EducationalBookletReport(File bookletDirectory)The constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExportSubProgram(SubProgram subProgram)Add subProgram to export subProgramsvoidaddSubProgramWithError(SubProgram subProgram)Add subProgram to subPrograms with errorFilegetBookletDirectory()Get the booklet directoryStringgetCurrentStatus()The current status of the educational booklet generation.List<SubProgram>getExportSubPrograms()Get export subProgramsList<SubProgram>getSubProgramsWithError()Get subPrograms with errorvoidsetExportSubProgram(List<SubProgram> subPrograms)Set the export subPrograms
 
- 
- 
- 
Constructor Detail- 
EducationalBookletReportpublic EducationalBookletReport(File bookletDirectory) The constructor- Parameters:
- bookletDirectory- The booklet directory
 
 
- 
 - 
Method Detail- 
getBookletDirectorypublic File getBookletDirectory() Get the booklet directory- Returns:
- the booklet directory
 
 - 
getExportSubProgramspublic List<SubProgram> getExportSubPrograms() Get export subPrograms- Returns:
- the list of export subPrograms
 
 - 
addExportSubProgrampublic void addExportSubProgram(SubProgram subProgram) Add subProgram to export subPrograms- Parameters:
- subProgram- the subProgram to add
 
 - 
setExportSubProgrampublic void setExportSubProgram(List<SubProgram> subPrograms) Set the export subPrograms- Parameters:
- subPrograms- the list of export subPrograms
 
 - 
getSubProgramsWithErrorpublic List<SubProgram> getSubProgramsWithError() Get subPrograms with error- Returns:
- the list of subPrograms with error
 
 - 
addSubProgramWithErrorpublic void addSubProgramWithError(SubProgram subProgram) Add subProgram to subPrograms with error- Parameters:
- subProgram- the subProgram to add
 
 - 
getCurrentStatuspublic String 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 Stringrepresenting the status
 
 
- 
 
-