Class AbstractSessionArtefactHandler<ARTEFACT extends AbstractArtefact,​REPORT_NODE extends ReportNode>

    • Constructor Detail

      • AbstractSessionArtefactHandler

        public AbstractSessionArtefactHandler()
    • Method Detail

      • createReportNodeSkeletonInSession

        protected void createReportNodeSkeletonInSession​(AbstractArtefact artefact,
                                                         ReportNode node,
                                                         java.util.function.BiConsumer<AbstractArtefact,​ReportNode> consumer,
                                                         java.lang.String artefactName,
                                                         java.util.Map<java.lang.String,​java.lang.Object> newVariables)
      • createReportNodeSkeletonInSession

        protected void createReportNodeSkeletonInSession​(AbstractArtefact artefact,
                                                         ReportNode node,
                                                         java.util.function.BiConsumer<AbstractArtefact,​ReportNode> consumer,
                                                         java.util.Map<java.lang.String,​java.lang.Object> newVariables)
      • executeInSession

        protected ReportNode executeInSession​(AbstractArtefact artefact,
                                              ReportNode node,
                                              java.util.function.BiConsumer<AbstractArtefact,​ReportNode> consumer,
                                              java.lang.String sessionArtefactName,
                                              java.util.Map<java.lang.String,​java.lang.Object> newVariables)
        Wraps the child artefacts of the provided artefact into a Session and delegates the execution of the Session with the provided BiConsumer (See FunctionGroup.getConsumer())
        Parameters:
        artefact - the parent artefact
        node - the report node corresponding to the provided artefact
        consumer - the BiConsumer representing the action to be performed inside the Session
        sessionArtefactName - the name of the Session artefact to be created
        newVariables - additional variables to be added in the scope of the Session node
        Returns:
        the ReportNode corresponding to the Session