public class GroupesReport extends AbstractReport
Modifier and Type | Class and Description |
---|---|
private static class |
GroupesReport.EffectifWithVentilation |
AbstractPilotageReport.PilotageFile, AbstractPilotageReport.PilotageReportStatus
PilotageReport.PilotageReportTarget
Modifier and Type | Field and Description |
---|---|
private static NumberFormat |
__FORMAT_2_DIGITS |
private static String |
__METADATA_EFFECTIF_CALCULATED |
private static String |
__METADATA_EFFECTIF_ESTIMATED |
private static String |
__METADATA_ETAPE_PORTEUSE |
private static String |
__METADATA_VALUE_YEAR |
private Map<String,Map<String,String>> |
_calculatedCourseParts |
private Map<String,GroupesReport.EffectifWithVentilation> |
_effectifCalculeCache |
private Map<String,Map<String,Long>> |
_effectifMinMaxByNature |
private Map<String,Double> |
_effectifSaisiCache |
private Map<String,Double> |
_eqTDByNature |
private Map<String,Map<String,Map<String,Long>>> |
_normes |
private Map<String,Map<String,Double>> |
_ventilationEffectifByCoursePart |
private Map<String,Map<String,Double>> |
_ventilationEqTDByCoursePart |
private Map<String,String> |
_yearsToDisplay |
_currentFormattedDate, _i18nUtils, _odfHelper, _pilotageHelper, _refTableHelper, _reportHelper, _resolver, _sourceResolver, _tmpFolder, _userManager
PARAMETER_CATALOG, PARAMETER_LANG, PARAMETER_ORGUNIT, PARAMETER_PROGRAM
Constructor and Description |
---|
GroupesReport() |
Modifier and Type | Method and Description |
---|---|
private void |
_addYearsToDisplay(Set<Container> etapesPorteuses) |
private double |
_calculEqTD(double effectif,
double effectifTotal,
double eqTDTotal) |
private double |
_calculEqTDTotal(double duration,
long groupes,
Double eqTD) |
private long |
_calculGroupes(double effectif,
long effectifMax,
long effectifMinSup) |
private void |
_exploreProgram(Program program) |
private GroupesReport.EffectifWithVentilation |
_getEffectifCalcule(CoursePart coursePart) |
private GroupesReport.EffectifWithVentilation |
_getEffectifCalcule(ProgramItem programItem,
double initialWeight) |
private Double |
_getEffectifSaisi(CoursePart coursePart) |
private Double |
_getEffectifSaisi(ProgramItem programItem,
double initialWeight) |
private Map<String,String> |
_getEffectifsEtVentilation(CoursePart coursePart,
Map<String,Long> normeDetails) |
private List<Container> |
_getEtapes(ProgramItem programItem) |
private Set<Container> |
_getEtapesPorteuses(ProgramItem programItem) |
private String |
_getNorme(Content content,
String nature,
String prefix,
boolean isEtapePorteuse) |
private String |
_getOrgUnits(Course courseHolder) |
private double |
_getWeight(ProgramItem programItem) |
private void |
_groupes(String uaiCode,
String catalog,
String lang) |
private void |
_initializeData() |
protected void |
_launchByOrgUnit(String uaiCode,
String catalog,
String lang)
Launch a report generation on an orgunit.
|
private void |
_parcoursCourse(String coursePrefix,
Course course) |
private void |
_parcoursEnfants(String objectPrefix,
ProgramItem programItem) |
private Map<String,String> |
_populateCoursePart(CoursePart coursePart,
String coursePartPrefix) |
private Double |
_transformEqTD2Double(String eqTD) |
private void |
_writeColumn(TransformerHandler handler,
Map.Entry<String,String> entry) |
private void |
_writeColumns(TransformerHandler handler) |
private void |
_writeGroupsReport(String uaiCode,
String catalog,
String lang)
Create the groups' report for one organization unit
|
private void |
_writeLines(TransformerHandler handler) |
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 String __METADATA_VALUE_YEAR
private static final String __METADATA_ETAPE_PORTEUSE
private static final String __METADATA_EFFECTIF_ESTIMATED
private static final String __METADATA_EFFECTIF_CALCULATED
private static final NumberFormat __FORMAT_2_DIGITS
private Map<String,Double> _eqTDByNature
private Map<String,String> _yearsToDisplay
private Map<String,Map<String,Double>> _ventilationEffectifByCoursePart
private Map<String,Double> _effectifSaisiCache
private Map<String,GroupesReport.EffectifWithVentilation> _effectifCalculeCache
public GroupesReport()
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 _initializeData()
private void _exploreProgram(Program program)
private void _parcoursEnfants(String objectPrefix, ProgramItem programItem)
private void _parcoursCourse(String coursePrefix, Course course)
private Map<String,String> _populateCoursePart(CoursePart coursePart, String coursePartPrefix)
private String _getOrgUnits(Course courseHolder)
private void _addYearsToDisplay(Set<Container> etapesPorteuses)
private Map<String,String> _getEffectifsEtVentilation(CoursePart coursePart, Map<String,Long> normeDetails)
private Double _getEffectifSaisi(CoursePart coursePart)
private Double _getEffectifSaisi(ProgramItem programItem, double initialWeight)
private GroupesReport.EffectifWithVentilation _getEffectifCalcule(CoursePart coursePart)
private GroupesReport.EffectifWithVentilation _getEffectifCalcule(ProgramItem programItem, double initialWeight)
private double _getWeight(ProgramItem programItem)
private double _calculEqTD(double effectif, double effectifTotal, double eqTDTotal)
private double _calculEqTDTotal(double duration, long groupes, Double eqTD)
private long _calculGroupes(double effectif, long effectifMax, long effectifMinSup)
private Set<Container> _getEtapesPorteuses(ProgramItem programItem)
private List<Container> _getEtapes(ProgramItem programItem)
private String _getNorme(Content content, String nature, String prefix, boolean isEtapePorteuse)
private void _writeGroupsReport(String uaiCode, String catalog, String lang) throws SAXException, IOException, TransformerConfigurationException
uaiCode
- the reference to the organization unit whose formations are going to be saxedcatalog
- the cataloguelang
- The language codeSAXException
- if an error occursIOException
- if an error occursTransformerConfigurationException
- if an error occursprivate void _writeColumns(TransformerHandler handler) throws SAXException
SAXException
private void _writeColumn(TransformerHandler handler, Map.Entry<String,String> entry) throws SAXException
SAXException
private void _writeLines(TransformerHandler handler) throws SAXException
SAXException
private Double _transformEqTD2Double(String eqTD)