Class BaseThemeAutoImporter
java.lang.Object
com.flowable.platform.engine.impl.configuration.BaseThemeAutoImporter
- All Implemented Interfaces:
EventListener,Aware,ApplicationContextAware,ApplicationListener<ContextRefreshedEvent>,Ordered
- Direct Known Subclasses:
CustomThemeAutoImporter,DefaultThemeAutoImporter
public abstract class BaseThemeAutoImporter
extends Object
implements ApplicationListener<ContextRefreshedEvent>, Ordered, ApplicationContextAware
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContextstatic final intprotected final CommonAutoDeploymentPropertiesprotected final booleanprotected final org.slf4j.Loggerprotected intprotected final PlatformEngineprotected final Collection<Resource>Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionBaseThemeAutoImporter(PlatformEngine platformEngine, CommonAutoDeploymentProperties deploymentProperties, Collection<Resource> themeResources, boolean forceOverwrite) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringintgetOrder()protected ThemeimportTheme(BaseThemeAutoImporter.ThemeDocument themeDocument, String tenantId, boolean overwrite) protected voidimportThemes(Collection<BaseThemeAutoImporter.ThemeDocument> themeDocuments, String tenantId, boolean overwrite) protected voidvoidvoidsetApplicationContext(ApplicationContext applicationContext) protected voidsetDefaultTheme(String defaultTheme, String tenantId, boolean overwrite) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
order
protected int order -
logger
protected final org.slf4j.Logger logger -
platformEngine
-
deploymentProperties
-
themeResources
-
forceOverwrite
protected final boolean forceOverwrite -
applicationContext
-
-
Constructor Details
-
BaseThemeAutoImporter
public BaseThemeAutoImporter(PlatformEngine platformEngine, CommonAutoDeploymentProperties deploymentProperties, Collection<Resource> themeResources, boolean forceOverwrite)
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
getOrder
public int getOrder() -
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-
determineLockName
-
importThemes
protected void importThemes() -
importThemesInTransaction
protected void importThemesInTransaction() -
importDocument
-
setDefaultTheme
-
importThemes
protected List<Theme> importThemes(Collection<BaseThemeAutoImporter.ThemeDocument> themeDocuments, String tenantId, boolean overwrite) -
importTheme
protected Theme importTheme(BaseThemeAutoImporter.ThemeDocument themeDocument, String tenantId, boolean overwrite)
-