Interface SmarteditThemeFacade
- All Known Implementing Classes:
DefaultSmarteditThemeFacade
public interface SmarteditThemeFacade
Interface methods for SmarteditThemeFacade.
The implementing class will provide methods for persisting theme models.
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentUserTheme(String langIsoCode) Retrieve current login user themegetThemeByCode(String themeCode, String langIsoCode) Retrieve a theme by codeRetrieve all themes that active for smartedit.voidsetCurrentUserTheme(String themeCode) setting current login user theme
-
Method Details
-
getThemes
Retrieve all themes that active for smartedit.- Parameters:
langIsoCode- The language iso code to be used on theme search.- Returns:
- a list of
Theme
-
getThemeByCode
Retrieve a theme by code- Parameters:
themeCode- the theme's unique identifierlangIsoCode- The language iso code to be used on theme search.- Returns:
- the
Themerepresented by this code - Throws:
SmarteditThemeNotFoundException-SmarteditThemeNotFoundException
-
getCurrentUserTheme
Retrieve current login user theme- Parameters:
langIsoCode- The language iso code to be used on theme search.- Returns:
- a
Themeinstance, or null if it does not exist in the database
-
setCurrentUserTheme
setting current login user theme- Parameters:
themeCode- the theme's unique identifier- Throws:
SmarteditThemeNotFoundException-SmarteditThemeNotFoundException
-