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
public class StepExporter extends AbstractLogEnabled implements Component, Serviceable
Exporter of steps
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementRetriever
_elementRetriever
The retriever of elements from ODFprotected PilotageHelper
_pilotageHelper
The pilotage helperprotected AmetysObjectResolver
_resolver
The Ametys object resolverstatic String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description StepExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParameterizableQuery>
getQueries(Container step, Long oseCatalog)
Get queries to export the given step.AmetysObjectIterable<Container>
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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_elementRetriever
protected ElementRetriever _elementRetriever
The retriever of elements from ODF
-
_pilotageHelper
protected PilotageHelper _pilotageHelper
The pilotage helper
-
-
Constructor Detail
-
StepExporter
public StepExporter()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getStepsToExport
public AmetysObjectIterable<Container> getStepsToExport(String ametysCatalog)
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
public List<ParameterizableQuery> getQueries(Container step, Long oseCatalog)
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)
-
-