Class VolumeHoraireReport
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.odfpilotage.report.AbstractPilotageReport
-
- org.ametys.plugins.odfpilotage.report.impl.AbstractReport
-
- org.ametys.plugins.odfpilotage.report.impl.VolumeHoraireReport
-
- All Implemented Interfaces:
PilotageReport
,LogEnabled
,PluginAware
,Initializable
,Configurable
,Serviceable
public class VolumeHoraireReport extends AbstractReport
Class to generate the volume horaire report.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.plugins.odfpilotage.report.AbstractPilotageReport
AbstractPilotageReport.PilotageFile, AbstractPilotageReport.PilotageReportStatus
-
Nested classes/interfaces inherited from interface org.ametys.plugins.odfpilotage.report.PilotageReport
PilotageReport.PilotageReportTarget
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.ametys.plugins.odfpilotage.report.AbstractPilotageReport
_currentFormattedDate, _i18nUtils, _odfHelper, _pilotageHelper, _refTableHelper, _reportHelper, _resolver, _sourceResolver, _tmpFolder, _userManager, MANIFEST_FILENAME
-
Fields inherited from interface org.ametys.plugins.odfpilotage.report.PilotageReport
OUTPUT_FORMAT_DOC, OUTPUT_FORMAT_XLS, PARAMETER_CATALOG, PARAMETER_LANG, PARAMETER_ORGUNIT, PARAMETER_OUTPUT_FORMAT, PARAMETER_PROGRAM
-
-
Constructor Summary
Constructors Constructor Description VolumeHoraireReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 String
_getStepCode(Container container)
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 Set<String>
getSupportedOutputFormats()
Get the list of supported output formatsprotected String
getType()
Get the name of the report-
Methods inherited from class org.ametys.plugins.odfpilotage.report.impl.AbstractReport
_getReportFileName, isSupportedTarget, launchByOrgUnit, launchByProgram
-
Methods inherited from class org.ametys.plugins.odfpilotage.report.AbstractPilotageReport
_buildZipName, addManifest, configure, convertReport, createZipFile, getId, getLabel, getMailBody, getMailSubject, getOutputFormat, getPipeline, getPluginName, getReportName, initialize, isCompatibleSchedulable, isGeneric, isSupportedFormat, launch, sendMail, service, setPluginInfo, supports
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__COURSELIST_TYPE_2_LABEL
private static final Map<CourseList.ChoiceType,String> __COURSELIST_TYPE_2_LABEL
-
_natureSemester
private String _natureSemester
-
_natureYear
private String _natureYear
-
-
Constructor Detail
-
VolumeHoraireReport
public VolumeHoraireReport()
-
-
Method Detail
-
getType
protected String getType()
Description copied from class:AbstractPilotageReport
Get the name of the report- Specified by:
getType
in classAbstractPilotageReport
- Returns:
- The report name
-
getSupportedOutputFormats
protected Set<String> getSupportedOutputFormats()
Description copied from class:AbstractPilotageReport
Get the list of supported output formats- Overrides:
getSupportedOutputFormats
in classAbstractPilotageReport
- Returns:
- A
Set
of supported output formats
-
_launchByOrgUnit
protected void _launchByOrgUnit(String uaiCode, String catalog, String lang) throws Exception
Description copied from class:AbstractReport
Launch a report generation on an orgunit.- Specified by:
_launchByOrgUnit
in classAbstractReport
- Parameters:
uaiCode
- The UAI code of theOrgUnit
catalog
- The cataloglang
- The language- Throws:
Exception
- if an exception occurs
-
_volumeHoraire
private void _volumeHoraire(List<Program> selectedPrograms)
Processing of the hourly volume for each UE.- Parameters:
selectedPrograms
- The programs to explore
-
_getStepCode
private String _getStepCode(Container container)
-
_getUEsFromPrograms
private Set<Course> _getUEsFromPrograms(List<Program> selectedPrograms)
-
_getCoursesForProgramItem
private List<Course> _getCoursesForProgramItem(ProgramItem programItem)
-
_calculVolumeByEnseignement
private Map<String,Pair<Double,Double>> _calculVolumeByEnseignement(CourseList courseList, float initialWeight, Map<String,Pair<Double,Double>> volumesByNature)
-
_calculVolumeByEnseignement
private Map<String,Pair<Double,Double>> _calculVolumeByEnseignement(Course course, float weight)
-
_writeReportsVolumeHoraire
private void _writeReportsVolumeHoraire(String uaiCode, String catalog, String lang, List<Program> selectedPrograms)
Write the report.- Parameters:
uaiCode
- The UAI code of the orgunitcatalog
- The cataloglang
- The languageselectedPrograms
- The programs
-
_saxUEsForProgram
private void _saxUEsForProgram(TransformerHandler handler, Program program) throws SAXException
- Throws:
SAXException
-
_saxUEsWithStructure
private void _saxUEsWithStructure(TransformerHandler handler, ProgramItem programItem, Map<String,String> structureData) throws SAXException
- Throws:
SAXException
-
_saxUE
private void _saxUE(TransformerHandler handler, Map<String,String> structureData, Map<String,String> ueData) throws SAXException
- Throws:
SAXException
-
-