Class StepExporter
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.ose.export.impl.odf.StepExporter
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
Exporter of steps
-
Field Summary
Modifier and TypeFieldDescriptionprotected ElementRetriever
The retriever of elements from ODFprotected PilotageHelper
The pilotage helperprotected AmetysObjectResolver
The Ametys object resolverstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetQueries
(Container step, Long oseCatalog) Get queries to export the given step.getStepsToExport
(String ametysCatalog) Get all theContainer
that are steps (nature is "annee") and are exportable (attribute "noOseExport" is nottrue
)void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role -
_resolver
The Ametys object resolver -
_elementRetriever
The retriever of elements from ODF -
_pilotageHelper
The pilotage helper
-
-
Constructor Details
-
StepExporter
public StepExporter()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getStepsToExport
Get all theContainer
that are steps (nature is "annee") and are exportable (attribute "noOseExport" is nottrue
)- Parameters:
ametysCatalog
- The Ametys catalog- Returns:
- The list of exportable steps
-
getQueries
Get queries to export the given step.- Parameters:
step
- The step to exportoseCatalog
- The OSE catalog- Returns:
- A
List
ofParameterizableQuery
to export theContainer
, it can be empty if there is a problem (see logs)
-