org.broadleafcommerce.common.locale.service
Class LocaleServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.common.locale.service.LocaleServiceImpl
All Implemented Interfaces:
LocaleService

@Service(value="blLocaleService")
public class LocaleServiceImpl
extends Object
implements LocaleService

Created by bpolster.


Field Summary
protected  LocaleDao localeDao
           
 
Constructor Summary
LocaleServiceImpl()
           
 
Method Summary
 List<Locale> findAllLocales()
           
 Locale findDefaultLocale()
           
 Locale findLocaleByCode(String localeCode)
           
 Locale save(Locale locale)
          Persists the given locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localeDao

protected LocaleDao localeDao
Constructor Detail

LocaleServiceImpl

public LocaleServiceImpl()
Method Detail

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.