org.broadleafcommerce.common.locale.service
Class LocaleServiceImpl
java.lang.Object
org.broadleafcommerce.common.locale.service.LocaleServiceImpl
- All Implemented Interfaces:
- LocaleService
@Service(value="blLocaleService")
public class LocaleServiceImpl
- extends Object
- implements LocaleService
Created by bpolster.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localeDao
protected LocaleDao localeDao
LocaleServiceImpl
public LocaleServiceImpl()
findLocaleByCode
public Locale findLocaleByCode(String localeCode)
- Specified by:
findLocaleByCode in interface LocaleService
- Returns:
- the locale for the passed in code
findDefaultLocale
public Locale findDefaultLocale()
- Specified by:
findDefaultLocale in interface LocaleService
- Returns:
- the default locale
findAllLocales
public List<Locale> findAllLocales()
- Specified by:
findAllLocales in interface LocaleService
- Returns:
- a list of all known locales
save
@Transactional(value="blTransactionManager")
public Locale save(Locale locale)
- Description copied from interface:
LocaleService
- Persists the given locale
- Specified by:
save in interface LocaleService
- Returns:
- the persisted locale
Copyright © 2013. All Rights Reserved.