public interface ThemeService extends TenantLifecycleService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
THEME |
| Modifier and Type | Method and Description |
|---|---|
STheme |
createTheme(STheme theme)
Add a new theme
|
void |
deleteTheme(long id)
Delete theme by its id
|
void |
deleteTheme(STheme theme)
Delete theme by the given theme
|
STheme |
getLastModifiedTheme(SThemeType type)
Get the last modified theme for the specific type.
|
long |
getLastUpdateDate(SThemeType type) |
long |
getNumberOfThemes(QueryOptions queryOptions)
Get the number of the themes corresponding to criteria
|
STheme |
getTheme(long id)
Get theme by its id
|
STheme |
getTheme(SThemeType type,
boolean isDefault)
Get the default or current theme for the specific type.
|
void |
restoreDefaultTheme(SThemeType type)
Restore default theme by the given type
|
java.util.List<STheme> |
searchThemes(QueryOptions queryOptions)
Search the themes corresponding to criteria
|
STheme |
updateTheme(STheme theme,
EntityUpdateDescriptor descriptor)
Update a theme by the given theme and the new content
|
pause, resume, start, stopstatic final java.lang.String THEME
STheme createTheme(STheme theme) throws SThemeCreationException
theme - The theme to createSThemeCreationException - If an exception is thrown during sTheme creationlong getLastUpdateDate(SThemeType type) throws SBonitaReadException
SBonitaReadExceptionSTheme updateTheme(STheme theme, EntityUpdateDescriptor descriptor) throws SThemeUpdateException
theme - The theme to updatedescriptor - All attributes to updateSThemeUpdateException - If an exception is thrown during sTheme updatevoid deleteTheme(STheme theme) throws SThemeNotFoundException, SThemeDeletionException
theme - The theme to deleteSThemeNotFoundException - If the identifier does not refer to an existing sThemeSThemeDeletionException - If an exception is thrown during sTheme deletionvoid deleteTheme(long id)
throws SThemeNotFoundException,
SThemeDeletionException
id - The identifier of the theme to deleteSThemeNotFoundException - If the identifier does not refer to an existing sThemeSThemeDeletionException - If an exception is thrown during sTheme deletionvoid restoreDefaultTheme(SThemeType type) throws SRestoreThemeException
type - The type of the theme to restoreSRestoreThemeException - If an exception is thrown when the default theme is restoredSTheme getTheme(long id) throws SThemeNotFoundException, SThemeReadException
id - The identifier of the themeSThemeNotFoundException - If the identifier does not refer to an existing sThemeSThemeReadExceptionSTheme getTheme(SThemeType type, boolean isDefault) throws SThemeNotFoundException, SThemeReadException
type - The type of the themeisDefault - Theme is default or notSThemeNotFoundException - If the type does not refer to an existing sThemeSThemeReadExceptionSTheme getLastModifiedTheme(SThemeType type) throws SThemeNotFoundException, SThemeReadException
type - The type of the themeSThemeNotFoundException - If the type does not refer to an existing sThemeSThemeReadExceptionlong getNumberOfThemes(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - A map of specific parameters of a querySBonitaReadExceptionjava.util.List<STheme> searchThemes(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - A map of specific parameters of a querySBonitaReadException