Package org.ametys.odf.schedulable
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExportSubProgram
(SubProgram subProgram) Add subProgram to export subProgramsvoid
addSubProgramWithError
(SubProgram subProgram) Add subProgram to subPrograms with errorGet the booklet directoryThe current status of the educational booklet generation.Get export subProgramsGet subPrograms with errorvoid
setExportSubProgram
(List<SubProgram> subPrograms) Set the export subPrograms
-
Constructor Details
-
EducationalBookletReport
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
Add subProgram to export subPrograms- Parameters:
subProgram
- the subProgram to add
-
setExportSubProgram
Set the export subPrograms- Parameters:
subPrograms
- the list of export subPrograms
-
getSubProgramsWithError
Get subPrograms with error- Returns:
- the list of subPrograms with error
-
addSubProgramWithError
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
-