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)
ThemeQuery
id
in interface ThemeQuery
public ThemeQuery name(String name)
ThemeQuery
name
in interface ThemeQuery
public ThemeQuery tenantId(String tenantId)
ThemeQuery
tenantId
in interface ThemeQuery
public Theme singleResult()
ThemeQuery
Theme
singleResult
in interface ThemeQuery
public List<Theme> list()
ThemeQuery
Theme
(s)list
in interface ThemeQuery
protected Theme asTheme(ConfigurationProperty themeProperty)