Class ThemeAutoImporter

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered

    public class ThemeAutoImporter
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered, org.springframework.context.ApplicationContextAware
    Author:
    Filip Hrisafov
    • Field Detail

      • order

        protected int order
      • logger

        protected final org.slf4j.Logger logger
      • deploymentProperties

        protected final org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties
      • themeResources

        protected final java.util.Collection<org.springframework.core.io.Resource> themeResources
      • forceOverwrite

        protected final boolean forceOverwrite
      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
    • Constructor Detail

      • ThemeAutoImporter

        public ThemeAutoImporter​(PlatformEngine platformEngine,
                                 org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties,
                                 java.util.Collection<org.springframework.core.io.Resource> themeResources,
                                 boolean forceOverwrite)
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • determineLockName

        protected java.lang.String determineLockName()
      • importThemes

        protected void importThemes()
      • importThemesInTransaction

        protected void importThemesInTransaction()
      • setDefaultTheme

        protected void setDefaultTheme​(java.lang.String defaultTheme,
                                       java.lang.String tenantId,
                                       boolean overwrite)
      • importThemes

        protected java.util.List<Theme> importThemes​(java.util.Collection<ThemeAutoImporter.ThemeDocument> themeDocuments,
                                                     java.lang.String tenantId,
                                                     boolean overwrite)