public class ThemeBuilderImpl extends Object implements ThemeBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected String |
name |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected Map<String,String> |
options |
protected String |
tenantId |
Constructor and Description |
---|
ThemeBuilderImpl(String name,
CommandExecutor commandExecutor,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected String |
convertToThemeOptions(Map<String,String> themeOptions) |
ThemeBuilder |
option(String name,
String value)
Add an option for the theme
|
Theme |
save()
Save the theme.
|
ThemeBuilder |
tenantId(String tenantId)
The tenant for the teheme
|
protected final CommandExecutor commandExecutor
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected String name
protected String tenantId
public ThemeBuilderImpl(String name, CommandExecutor commandExecutor, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public ThemeBuilder tenantId(String tenantId)
ThemeBuilder
tenantId
in interface ThemeBuilder
public ThemeBuilder option(String name, String value)
ThemeBuilder
option
in interface ThemeBuilder
name
- the option namevalue
- the option valuepublic Theme save()
ThemeBuilder
save
in interface ThemeBuilder