public class VolumeHoraireReport extends AbstractReport
AbstractPilotageReport.PilotageFile, AbstractPilotageReport.PilotageReportStatus
PilotageReport.PilotageReportTarget
Modifier and Type | Field and Description |
---|---|
private static Map<CourseList.ChoiceType,String> |
__COURSELIST_TYPE_2_LABEL |
private Map<String,Map<String,String>> |
_calculatedElps |
private String |
_natureSemester |
private String |
_natureUE |
private String |
_natureYear |
_currentFormattedDate, _i18nUtils, _odfHelper, _pilotageHelper, _refTableHelper, _reportHelper, _resolver, _sourceResolver, _tmpFolder, _userManager
PARAMETER_CATALOG, PARAMETER_LANG, PARAMETER_ORGUNIT, PARAMETER_PROGRAM
Constructor and Description |
---|
VolumeHoraireReport() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Pair<Double,Double>> |
_calculVolumeByEnseignement(Course course,
float weight) |
private Map<String,Pair<Double,Double>> |
_calculVolumeByEnseignement(CourseList courseList,
float initialWeight,
Map<String,Pair<Double,Double>> volumesByNature) |
private List<Course> |
_getCoursesForProgramItem(ProgramItem programItem) |
private Set<Course> |
_getUEsFromPrograms(List<Program> selectedPrograms) |
protected void |
_launchByOrgUnit(String uaiCode,
String catalog,
String lang)
Launch a report generation on an orgunit.
|
private void |
_saxUE(TransformerHandler handler,
Map<String,String> structureData,
Map<String,String> ueData) |
private void |
_saxUEsForProgram(TransformerHandler handler,
Program program) |
private void |
_saxUEsWithStructure(TransformerHandler handler,
ProgramItem programItem,
Map<String,String> structureData) |
private void |
_volumeHoraire(List<Program> selectedPrograms)
Processing of the hourly volume for each UE.
|
private void |
_writeReportsVolumeHoraire(String uaiCode,
String catalog,
String lang,
List<Program> selectedPrograms)
Write the report.
|
protected String |
getReportName()
The report name to add in the mail.
|
protected String |
getType()
Get the name of the report
|
launchByOrgUnit, launchByProgram
convertReport, createZipFile, getMailBody, getMailSubject, getPipeline, getPluginName, initialize, launch, sendMail, service, setPluginInfo
getLogger, setLogger
private static final Map<CourseList.ChoiceType,String> __COURSELIST_TYPE_2_LABEL
private String _natureSemester
private String _natureYear
public VolumeHoraireReport()
protected String getType()
AbstractPilotageReport
getType
in class AbstractPilotageReport
protected String getReportName()
AbstractPilotageReport
getReportName
in class AbstractPilotageReport
protected void _launchByOrgUnit(String uaiCode, String catalog, String lang) throws Exception
AbstractReport
_launchByOrgUnit
in class AbstractReport
uaiCode
- The UAI code of the OrgUnit
catalog
- The cataloglang
- The languageException
- if an exception occursprivate void _volumeHoraire(List<Program> selectedPrograms)
selectedPrograms
- The programs to exploreprivate Set<Course> _getUEsFromPrograms(List<Program> selectedPrograms)
private List<Course> _getCoursesForProgramItem(ProgramItem programItem)
private Map<String,Pair<Double,Double>> _calculVolumeByEnseignement(CourseList courseList, float initialWeight, Map<String,Pair<Double,Double>> volumesByNature)
private Map<String,Pair<Double,Double>> _calculVolumeByEnseignement(Course course, float weight)
private void _writeReportsVolumeHoraire(String uaiCode, String catalog, String lang, List<Program> selectedPrograms) throws SAXException, IOException, TransformerConfigurationException
uaiCode
- The UAI code of the orgunitcatalog
- The cataloglang
- The languageselectedPrograms
- The programsSAXException
- if an error occursIOException
- if an error occursTransformerConfigurationException
- if an error occursprivate void _saxUEsForProgram(TransformerHandler handler, Program program) throws SAXException
SAXException
private void _saxUEsWithStructure(TransformerHandler handler, ProgramItem programItem, Map<String,String> structureData) throws SAXException
SAXException
private void _saxUE(TransformerHandler handler, Map<String,String> structureData, Map<String,String> ueData) throws SAXException
SAXException