Class ThemeBuilderImpl
java.lang.Object
com.flowable.platform.engine.impl.configuration.ThemeBuilderImpl
- All Implemented Interfaces:
ThemeBuilder
public class ThemeBuilderImpl extends java.lang.Object implements ThemeBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationService
configurationService
protected java.lang.String
name
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected java.util.Map<java.lang.String,java.lang.String>
options
protected java.lang.String
tenantId
-
Constructor Summary
Constructors Constructor Description ThemeBuilderImpl(java.lang.String name, ConfigurationService configurationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
convertToThemeOptions(java.util.Map<java.lang.String,java.lang.String> themeOptions)
ThemeBuilder
option(java.lang.String name, java.lang.String value)
Add an option for the themeTheme
save()
Save the theme.ThemeBuilder
tenantId(java.lang.String tenantId)
The tenant for the teheme
-
Field Details
-
configurationService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
name
protected java.lang.String name -
tenantId
protected java.lang.String tenantId -
options
protected java.util.Map<java.lang.String,java.lang.String> options
-
-
Constructor Details
-
ThemeBuilderImpl
public ThemeBuilderImpl(java.lang.String name, ConfigurationService configurationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
tenantId
Description copied from interface:ThemeBuilder
The tenant for the teheme- Specified by:
tenantId
in interfaceThemeBuilder
-
option
Description copied from interface:ThemeBuilder
Add an option for the theme- Specified by:
option
in interfaceThemeBuilder
- Parameters:
name
- the option namevalue
- the option value
-
save
Description copied from interface:ThemeBuilder
Save the theme. It would either create a new one or update an existing one.- Specified by:
save
in interfaceThemeBuilder
-
convertToThemeOptions
protected java.lang.String convertToThemeOptions(java.util.Map<java.lang.String,java.lang.String> themeOptions)
-