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()
          Returns list of supported locales.
 Locale findDefaultLocale()
          Returns the page template with the passed in id.
 Locale findLocaleByCode(String localeCode)
           
 Locale save(Locale 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()
Returns the page template with the passed in id.

Specified by:
findDefaultLocale in interface LocaleService
Parameters:
id - - the id of the page template
Returns:
The default locale

findAllLocales

public List<Locale> findAllLocales()
Returns list of supported locales.

Specified by:
findAllLocales in interface LocaleService
Returns:
The default locale

save

public Locale save(Locale locale)
Specified by:
save in interface LocaleService


Copyright © 2012. All Rights Reserved.