Class MCCReport
-
- All Implemented Interfaces:
PilotageReport
,LogEnabled
,PluginAware
,Initializable
,Configurable
,Serviceable
public class MCCReport extends AbstractMCCReport
Class to generate the MCC 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 inherited from class org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport
FIRST_SESSION_NAME, SECOND_SESSION_NAME, SESSION_NAME_PREFIX
-
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 MCCReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_saxSession(TransformerHandler handler, Course course, String sessionName)
private void
_saxSessionEntry(TransformerHandler handler, ModelAwareRepeaterEntry sessionEntry)
Sax a MCC session entry.protected String
getType()
Get the name of the reportprotected void
populateMCCAmetysObjectTree(MCCAmetysObjectTree tree)
Populate the MCC tree.protected void
saxGlobalInformations(TransformerHandler handler, Program program)
Sax the additional global informations of the report.protected void
saxMCCs(TransformerHandler handler, Course course, MCCAmetysObjectTree tree)
Sax the MCC sessions.-
Methods inherited from class org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport
_getReportFileName, _launchByOrgUnit, _processMCC, _writeReportsMcc, addProgram2MCCAmetysObjectTree, extractMCCAmetysObjectTree, saxContainer, saxCourse, saxCourseList, saxCourseParts, saxOrgUnit, saxProgram, saxSessionEntryDetails, saxSubProgram, saxTree, saxTreeChildren
-
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, getSupportedOutputFormats, initialize, isCompatibleSchedulable, isGeneric, isSupportedFormat, launch, sendMail, service, setPluginInfo, supports
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
MCCReport
public MCCReport()
-
-
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
-
saxMCCs
protected void saxMCCs(TransformerHandler handler, Course course, MCCAmetysObjectTree tree) throws SAXException
Description copied from class:AbstractMCCReport
Sax the MCC sessions.- Specified by:
saxMCCs
in classAbstractMCCReport
- Parameters:
handler
- The transformer handlercourse
- The concernedCourse
to sax the MCCs ontree
- The MCC tree- Throws:
SAXException
- If an error occurs
-
_saxSession
private void _saxSession(TransformerHandler handler, Course course, String sessionName) throws SAXException
- Throws:
SAXException
-
_saxSessionEntry
private void _saxSessionEntry(TransformerHandler handler, ModelAwareRepeaterEntry sessionEntry) throws SAXException
Sax a MCC session entry.- Parameters:
handler
- The transformer handlersessionEntry
- The session entry name- Throws:
SAXException
- If an error occurs
-
populateMCCAmetysObjectTree
protected void populateMCCAmetysObjectTree(MCCAmetysObjectTree tree)
Description copied from class:AbstractMCCReport
Populate the MCC tree.- Specified by:
populateMCCAmetysObjectTree
in classAbstractMCCReport
- Parameters:
tree
- The MCC tree
-
saxGlobalInformations
protected void saxGlobalInformations(TransformerHandler handler, Program program) throws SAXException
Description copied from class:AbstractMCCReport
Sax the additional global informations of the report.- Specified by:
saxGlobalInformations
in classAbstractMCCReport
- Parameters:
handler
- The transformer handlerprogram
- The program on which the report is launched- Throws:
SAXException
- If an error occurs
-
-