public class ThemeQueryImpl extends Object implements ThemeQuery
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationPropertyQuery |
configurationPropertyQuery |
protected static com.fasterxml.jackson.core.type.TypeReference<Map<String,String>> |
MAP_TYPE_REFERENCE |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
ThemeQueryImpl(ConfigurationPropertyQuery configurationPropertyQuery,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected Theme |
asTheme(ConfigurationProperty themeProperty) |
protected Map<String,String> |
convertToThemeOptions(String themeOptions) |
ThemeQuery |
id(String id)
Query for themes with the given id
|
List<Theme> |
list()
Return a list of
Theme(s) |
ThemeQuery |
name(String name)
Query for themes with the given name
|
Theme |
singleResult()
Return a single
Theme |
ThemeQuery |
tenantId(String tenantId)
Query for themes in the given tenant
|
protected static final com.fasterxml.jackson.core.type.TypeReference<Map<String,String>> MAP_TYPE_REFERENCE
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected final ConfigurationPropertyQuery configurationPropertyQuery
public ThemeQueryImpl(ConfigurationPropertyQuery configurationPropertyQuery, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public ThemeQuery id(String id)
ThemeQueryid in interface ThemeQuerypublic ThemeQuery name(String name)
ThemeQueryname in interface ThemeQuerypublic ThemeQuery tenantId(String tenantId)
ThemeQuerytenantId in interface ThemeQuerypublic Theme singleResult()
ThemeQueryThemesingleResult in interface ThemeQuerypublic List<Theme> list()
ThemeQueryTheme(s)list in interface ThemeQueryprotected Theme asTheme(ConfigurationProperty themeProperty)