Class DefaultSmarteditThemeFacade
java.lang.Object
de.hybris.platform.smarteditwebservices.theme.facade.impl.DefaultSmarteditThemeFacade
- All Implemented Interfaces:
SmarteditThemeFacade
Default implementation of the
SmarteditThemeFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonI18NServicegetCurrentUserTheme(String langIsoCode) Retrieve current login user themeprotected I18NServiceprotected ModelServiceprotected SearchRestrictionServiceprotected SessionServiceprotected SmarteditThemeServicegetThemeByCode(String themeCode, String langIsoCode) Retrieve a theme by codeprotected AbstractPopulatingConverter<ThemeModel,Theme> Retrieve all themes that active for smartedit.protected UserServicevoidsetCommonI18NService(CommonI18NService commonI18NService) protected voidsetCurrentLocale(String langIsoCode) Sets current locale by language iso code.voidsetCurrentUserTheme(String themeCode) setting current login user themevoidsetI18NService(I18NService i18NService) voidsetModelService(ModelService modelService) voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService) voidsetSmarteditThemeService(SmarteditThemeService smarteditThemeService) voidsetThemeModelToDataConverter(AbstractPopulatingConverter<ThemeModel, Theme> themeModelToDataConverter) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultSmarteditThemeFacade
public DefaultSmarteditThemeFacade()
-
-
Method Details
-
getThemes
Description copied from interface:SmarteditThemeFacadeRetrieve all themes that active for smartedit.- Specified by:
getThemesin interfaceSmarteditThemeFacade- Parameters:
langIsoCode- The language iso code to be used on theme search.- Returns:
- a list of
Theme
-
getThemeByCode
public Theme getThemeByCode(String themeCode, String langIsoCode) throws SmarteditThemeNotFoundException Description copied from interface:SmarteditThemeFacadeRetrieve a theme by code- Specified by:
getThemeByCodein interfaceSmarteditThemeFacade- 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
Description copied from interface:SmarteditThemeFacadeRetrieve current login user theme- Specified by:
getCurrentUserThemein interfaceSmarteditThemeFacade- 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
Description copied from interface:SmarteditThemeFacadesetting current login user theme- Specified by:
setCurrentUserThemein interfaceSmarteditThemeFacade- Parameters:
themeCode- the theme's unique identifier- Throws:
SmarteditThemeNotFoundException-SmarteditThemeNotFoundException
-
setCurrentLocale
Sets current locale by language iso code.- Parameters:
langIsoCode- the language iso code.
-
getSmarteditThemeService
-
setSmarteditThemeService
-
getUserService
-
setUserService
-
getThemeModelToDataConverter
-
setThemeModelToDataConverter
public void setThemeModelToDataConverter(AbstractPopulatingConverter<ThemeModel, Theme> themeModelToDataConverter) -
getModelService
-
setModelService
-
getSessionService
-
setSessionService
-
getSearchRestrictionService
-
setSearchRestrictionService
-
getI18NService
-
setI18NService
-
getCommonI18NService
-
setCommonI18NService
-