Class ReglementEtudesExtract
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.odfpilotage.report.AbstractPilotageReport
-
- org.ametys.plugins.odfpilotage.report.impl.AbstractExtract
-
- org.ametys.plugins.odfpilotage.report.impl.ReglementEtudesExtract
-
- All Implemented Interfaces:
PilotageReport
,LogEnabled
,PluginAware
,Initializable
,Configurable
,Serviceable
public class ReglementEtudesExtract extends AbstractExtract
Class to generate "règlement des études" extract as DOC.
-
-
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 protected PilotageStatusHelper
_pilotageStatusHelper
The pilotage status helper-
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 ReglementEtudesExtract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_getReportFileName(Program program)
Get the report filename for a given programprivate void
_saxProgram(TransformerHandler handler, Program program)
protected void
_saxProgram(Program program)
Sax a program for the extraction.private void
_saxProgramsTree(Set<SubProgram> subPrograms, Program program)
private void
_saxReport(TransformerHandler handler, Program program, Set<SubProgram> subPrograms)
private void
_saxSubProgram(TransformerHandler handler, SubProgram subprogram)
protected String
getType()
Get the name of the reportvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.plugins.odfpilotage.report.impl.AbstractExtract
getSupportedOutputFormats, 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, setPluginInfo, supports
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_pilotageStatusHelper
protected PilotageStatusHelper _pilotageStatusHelper
The pilotage status helper
-
-
Constructor Detail
-
ReglementEtudesExtract
public ReglementEtudesExtract()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPilotageReport
- Throws:
ServiceException
-
getType
protected String getType()
Description copied from class:AbstractPilotageReport
Get the name of the report- Specified by:
getType
in classAbstractPilotageReport
- Returns:
- The report name
-
_saxProgram
protected void _saxProgram(Program program)
Description copied from class:AbstractExtract
Sax a program for the extraction.- Specified by:
_saxProgram
in classAbstractExtract
- Parameters:
program
- Program to sax
-
_getReportFileName
private String _getReportFileName(Program program)
Get the report filename for a given program- Parameters:
program
- The program- Returns:
- the file name
-
_saxProgramsTree
private void _saxProgramsTree(Set<SubProgram> subPrograms, Program program)
-
_saxReport
private void _saxReport(TransformerHandler handler, Program program, Set<SubProgram> subPrograms) throws SAXException
- Throws:
SAXException
-
_saxProgram
private void _saxProgram(TransformerHandler handler, Program program) throws SAXException
- Throws:
SAXException
-
_saxSubProgram
private void _saxSubProgram(TransformerHandler handler, SubProgram subprogram) throws SAXException
- Throws:
SAXException
-
-