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 Summary
Constructors Constructor Description EducationalBookletReport(File bookletDirectory)
The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExportSubProgram(SubProgram subProgram)
Add subProgram to export subProgramsvoid
addSubProgramWithError(SubProgram subProgram)
Add subProgram to subPrograms with errorFile
getBookletDirectory()
Get the booklet directoryString
getCurrentStatus()
The current status of the educational booklet generation.List<SubProgram>
getExportSubPrograms()
Get export subProgramsList<SubProgram>
getSubProgramsWithError()
Get subPrograms with errorvoid
setExportSubProgram(List<SubProgram> subPrograms)
Set the export subPrograms
-
-
-
Constructor Detail
-
EducationalBookletReport
public EducationalBookletReport(File bookletDirectory)
The constructor- Parameters:
bookletDirectory
- The booklet directory
-
-
Method Detail
-
getBookletDirectory
public File getBookletDirectory()
Get the booklet directory- Returns:
- the booklet directory
-
getExportSubPrograms
public List<SubProgram> 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
public List<SubProgram> 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
public 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
String
representing the status
-
-