Class TemplateDao


  • public class TemplateDao
    extends Object
    Initial load runner Launches initial load values
    Author:
    Pablo GARCIA - 20/MAR/2017
    • Constructor Detail

      • TemplateDao

        public TemplateDao​(MenuService menuService,
                           AweElementsDao aweElementsDao,
                           @Qualifier("helpTemplateGroup")
                           org.stringtemplate.v4.STGroup helpTemplateGroup)
        Autowired constructor
        Parameters:
        menuService - Menu service
        aweElementsDao - AWE Elements DAO
        helpTemplateGroup - Help templates
    • Method Detail

      • generateOptionHelpAsync

        @Async("threadHelpPoolTaskExecutor")
        public Future<org.stringtemplate.v4.ST> generateOptionHelpAsync​(Option option,
                                                                        Integer level,
                                                                        boolean developers)
                                                                 throws AWException
        Generate option template
        Parameters:
        option - Option
        level - Option level
        developers - Help for developers
        Returns:
        Screen template
        Throws:
        AWException - Error generating breadcrumbs
      • generateOptionHelp

        public org.stringtemplate.v4.ST generateOptionHelp​(Option option,
                                                           Integer level,
                                                           boolean developers)
                                                    throws AWException
        Generate option template
        Parameters:
        option - Option
        level - Option level
        developers - Help for developers
        Returns:
        Screen template
        Throws:
        AWException - Error generating breadcrumbs
      • generateTaglistXml

        public String generateTaglistXml​(List<Element> tagListElements)
        Generate taglist XML from object
        Parameters:
        tagListElements - TagList elements
        Returns:
        TagList elements XML template