Class TemplateConfig


  • @Configuration
    @Order(-2147483648)
    public class TemplateConfig
    extends Object
    Manage template configuration
    • Constructor Detail

      • TemplateConfig

        @Autowired
        public TemplateConfig​(BaseConfigProperties baseConfigProperties)
        Autowired constructor
        Parameters:
        baseConfigProperties - Base config properties
    • Method Detail

      • templateErrorListener

        @Bean
        public org.stringtemplate.v4.STErrorListener templateErrorListener()
        Retrieve template error listener
        Returns:
        Error listener
      • elementsTemplateGroup

        @Bean("elementsTemplateGroup")
        public org.stringtemplate.v4.STGroup elementsTemplateGroup​(org.stringtemplate.v4.STErrorListener errorListener)
        Retrieve elements template group
        Parameters:
        errorListener - Error listener
        Returns:
        Partials template group
      • helpTemplateGroup

        @Bean("helpTemplateGroup")
        public org.stringtemplate.v4.STGroup helpTemplateGroup​(org.stringtemplate.v4.STErrorListener errorListener)
        Retrieve help template group
        Returns:
        Partials template group
      • screensTemplateGroup

        @Bean("screensTemplateGroup")
        public org.stringtemplate.v4.STGroup screensTemplateGroup​(org.stringtemplate.v4.STErrorListener errorListener)
        Retrieve screens template group
        Returns:
        Partials template group
      • templateDao

        @Bean
        @ConditionalOnMissingBean
        public TemplateDao templateDao​(MenuService menuService,
                                       AweElementsDao aweElementsDao,
                                       @Qualifier("helpTemplateGroup")
                                       org.stringtemplate.v4.STGroup helpTemplateGroup)
        Template DAO
        Parameters:
        menuService - Menu service
        aweElementsDao - AWE Elements DAO
        helpTemplateGroup - Help template group
        Returns:
        Template service bean
      • templateService

        @Bean
        @ConditionalOnMissingBean
        public TemplateService templateService​(MenuService menuService,
                                               @Qualifier("elementsTemplateGroup")
                                               org.stringtemplate.v4.STGroup elementsTemplateGroup,
                                               @Qualifier("helpTemplateGroup")
                                               org.stringtemplate.v4.STGroup helpTemplateGroup,
                                               @Qualifier("screensTemplateGroup")
                                               org.stringtemplate.v4.STGroup screensTemplateGroup,
                                               QueryService queryService,
                                               TemplateDao templateDao)
        Template service
        Parameters:
        menuService - Menu service
        elementsTemplateGroup - Elements template group
        helpTemplateGroup - Help template group
        screensTemplateGroup - Screens template group
        queryService - Query service
        Returns:
        Template service bean
      • helpService

        @Bean
        @ConditionalOnMissingBean
        public HelpService helpService​(TemplateService templateService)
        Help service
        Parameters:
        templateService - Template service
        Returns:
        Help service bean