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
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected ApplicationContext
static final int
protected final CommonAutoDeploymentProperties
protected final boolean
protected final org.slf4j.Logger
protected int
protected final PlatformEngine
protected final Collection<Resource>
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionBaseThemeAutoImporter
(PlatformEngine platformEngine, CommonAutoDeploymentProperties deploymentProperties, Collection<Resource> themeResources, boolean forceOverwrite) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
int
getOrder()
protected Theme
importTheme
(BaseThemeAutoImporter.ThemeDocument themeDocument, String tenantId, boolean overwrite) protected void
importThemes
(Collection<BaseThemeAutoImporter.ThemeDocument> themeDocuments, String tenantId, boolean overwrite) protected void
void
void
setApplicationContext
(ApplicationContext applicationContext) protected void
setDefaultTheme
(String defaultTheme, String tenantId, boolean overwrite)
-
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:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
getOrder
public int getOrder() -
onApplicationEvent
- Specified by:
onApplicationEvent
in 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)
-