Package org.opencastproject.themes
Interface ThemesServiceDatabase
- All Known Implementing Classes:
ThemesServiceDatabaseImpl
public interface ThemesServiceDatabase
API that defines persistent storage of themes.
-
Method Summary
Modifier and TypeMethodDescriptionintvoiddeleteTheme(long id) Delete a theme by using a unique id to find it.getTheme(long id) Return the theme by the unique given id.updateTheme(Theme theme) Crate or update a theme.
-
Method Details
-
getTheme
Return the theme by the unique given id.- Parameters:
id- The unique id of the theme.- Returns:
- A
Themethat matches the id. - Throws:
NotFoundException- if the theme could not be foundThemesServiceDatabaseException- if there is a problem communicating with the underlying data store
-
updateTheme
Crate or update a theme.- Parameters:
theme- The theme to create or update.- Returns:
- The updated
Theme. - Throws:
ThemesServiceDatabaseException- if there is a problem communicating with the underlying data store
-
deleteTheme
Delete a theme by using a unique id to find it.- Parameters:
id- The unique id of the theme.- Throws:
ThemesServiceDatabaseException- if there is a problem communicating with the underlying data storeNotFoundException
-
countThemes
- Returns:
- Count the total number of themes.
- Throws:
ThemesServiceDatabaseException- if there is a problem communicating with the underlying data store
-