Liferay 7.0-ce-b4

com.liferay.portal.language
Class LanguageImpl

java.lang.Object
  extended by com.liferay.portal.language.LanguageImpl
All Implemented Interfaces:
Language, Serializable

public class LanguageImpl
extends Object
implements Language, Serializable

See Also:
Serialized Form

Constructor Summary
LanguageImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper argument)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper[] arguments)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper[] arguments, boolean translateArguments)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, LanguageWrapper argument, boolean translateArguments)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, Object argument)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, Object[] arguments)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, Object[] arguments, boolean translateArguments)
           
 String format(javax.servlet.http.HttpServletRequest request, String pattern, Object argument, boolean translateArguments)
           
 String format(Locale locale, String pattern, List<Object> arguments)
           
 String format(Locale locale, String pattern, Object argument)
           
 String format(Locale locale, String pattern, Object[] arguments)
           
 String format(Locale locale, String pattern, Object[] arguments, boolean translateArguments)
           
 String format(Locale locale, String pattern, Object argument, boolean translateArguments)
           
 String format(ResourceBundle resourceBundle, String pattern, Object argument)
           
 String format(ResourceBundle resourceBundle, String pattern, Object[] arguments)
           
 String format(ResourceBundle resourceBundle, String pattern, Object[] arguments, boolean translateArguments)
           
 String format(ResourceBundle resourceBundle, String pattern, Object argument, boolean translateArguments)
           
 String get(javax.servlet.http.HttpServletRequest request, ResourceBundle resourceBundle, String key)
           
 String get(javax.servlet.http.HttpServletRequest request, ResourceBundle resourceBundle, String key, String defaultValue)
           
 String get(javax.servlet.http.HttpServletRequest request, String key)
           
 String get(javax.servlet.http.HttpServletRequest request, String key, String defaultValue)
           
 String get(Locale locale, String key)
           
 String get(Locale locale, String key, String defaultValue)
           
 String get(ResourceBundle resourceBundle, String key)
           
 String get(ResourceBundle resourceBundle, String key, String defaultValue)
           
 Set<Locale> getAvailableLocales()
           
 Set<Locale> getAvailableLocales(long groupId)
           
 String getBCP47LanguageId(javax.servlet.http.HttpServletRequest request)
           
 String getBCP47LanguageId(Locale locale)
           
 String getBCP47LanguageId(PortletRequest portletRequest)
           
 String getLanguageId(javax.servlet.http.HttpServletRequest request)
           
 String getLanguageId(Locale locale)
           
 String getLanguageId(PortletRequest portletRequest)
           
 Locale getLocale(long groupId, String languageCode)
           
 Locale getLocale(String languageCode)
           
 Set<Locale> getSupportedLocales()
           
 String getTimeDescription(javax.servlet.http.HttpServletRequest request, long milliseconds)
           
 String getTimeDescription(javax.servlet.http.HttpServletRequest request, Long milliseconds)
           
 String getTimeDescription(javax.servlet.http.HttpServletRequest request, long milliseconds, boolean approximate)
           
 String getTimeDescription(Locale locale, long milliseconds)
           
 String getTimeDescription(Locale locale, Long milliseconds)
           
 String getTimeDescription(Locale locale, long milliseconds, boolean approximate)
           
 void init()
           
 boolean isAvailableLanguageCode(String languageCode)
           
 boolean isAvailableLocale(Locale locale)
           
 boolean isAvailableLocale(long groupId, Locale locale)
           
 boolean isAvailableLocale(long groupId, String languageId)
           
 boolean isAvailableLocale(String languageId)
           
 boolean isBetaLocale(Locale locale)
           
 boolean isDuplicateLanguageCode(String languageCode)
           
 boolean isInheritLocales(long groupId)
           
 String process(ResourceBundle resourceBundle, Locale locale, String content)
           
 void resetAvailableGroupLocales(long groupId)
           
 void resetAvailableLocales(long companyId)
           
 void updateCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageImpl

public LanguageImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     LanguageWrapper argument)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     LanguageWrapper argument,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     LanguageWrapper[] arguments)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     LanguageWrapper[] arguments,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     Object argument)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     Object argument,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     Object[] arguments)
Specified by:
format in interface Language

format

public String format(javax.servlet.http.HttpServletRequest request,
                     String pattern,
                     Object[] arguments,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(Locale locale,
                     String pattern,
                     List<Object> arguments)
Specified by:
format in interface Language

format

public String format(Locale locale,
                     String pattern,
                     Object argument)
Specified by:
format in interface Language

format

public String format(Locale locale,
                     String pattern,
                     Object argument,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(Locale locale,
                     String pattern,
                     Object[] arguments)
Specified by:
format in interface Language

format

public String format(Locale locale,
                     String pattern,
                     Object[] arguments,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(ResourceBundle resourceBundle,
                     String pattern,
                     Object argument)
Specified by:
format in interface Language

format

public String format(ResourceBundle resourceBundle,
                     String pattern,
                     Object argument,
                     boolean translateArguments)
Specified by:
format in interface Language

format

public String format(ResourceBundle resourceBundle,
                     String pattern,
                     Object[] arguments)
Specified by:
format in interface Language

format

public String format(ResourceBundle resourceBundle,
                     String pattern,
                     Object[] arguments,
                     boolean translateArguments)
Specified by:
format in interface Language

get

public String get(javax.servlet.http.HttpServletRequest request,
                  ResourceBundle resourceBundle,
                  String key)
Specified by:
get in interface Language

get

public String get(javax.servlet.http.HttpServletRequest request,
                  ResourceBundle resourceBundle,
                  String key,
                  String defaultValue)
Specified by:
get in interface Language

get

public String get(javax.servlet.http.HttpServletRequest request,
                  String key)
Specified by:
get in interface Language

get

public String get(javax.servlet.http.HttpServletRequest request,
                  String key,
                  String defaultValue)
Specified by:
get in interface Language

get

public String get(Locale locale,
                  String key)
Specified by:
get in interface Language

get

public String get(Locale locale,
                  String key,
                  String defaultValue)
Specified by:
get in interface Language

get

public String get(ResourceBundle resourceBundle,
                  String key)
Specified by:
get in interface Language

get

public String get(ResourceBundle resourceBundle,
                  String key,
                  String defaultValue)
Specified by:
get in interface Language

getAvailableLocales

public Set<Locale> getAvailableLocales()
Specified by:
getAvailableLocales in interface Language

getAvailableLocales

public Set<Locale> getAvailableLocales(long groupId)
Specified by:
getAvailableLocales in interface Language

getBCP47LanguageId

public String getBCP47LanguageId(javax.servlet.http.HttpServletRequest request)
Specified by:
getBCP47LanguageId in interface Language

getBCP47LanguageId

public String getBCP47LanguageId(Locale locale)
Specified by:
getBCP47LanguageId in interface Language

getBCP47LanguageId

public String getBCP47LanguageId(PortletRequest portletRequest)
Specified by:
getBCP47LanguageId in interface Language

getLanguageId

public String getLanguageId(javax.servlet.http.HttpServletRequest request)
Specified by:
getLanguageId in interface Language

getLanguageId

public String getLanguageId(Locale locale)
Specified by:
getLanguageId in interface Language

getLanguageId

public String getLanguageId(PortletRequest portletRequest)
Specified by:
getLanguageId in interface Language

getLocale

public Locale getLocale(long groupId,
                        String languageCode)
Specified by:
getLocale in interface Language

getLocale

public Locale getLocale(String languageCode)
Specified by:
getLocale in interface Language

getSupportedLocales

public Set<Locale> getSupportedLocales()
Specified by:
getSupportedLocales in interface Language

getTimeDescription

public String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                                 long milliseconds)
Specified by:
getTimeDescription in interface Language

getTimeDescription

public String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                                 long milliseconds,
                                 boolean approximate)
Specified by:
getTimeDescription in interface Language

getTimeDescription

public String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                                 Long milliseconds)
Specified by:
getTimeDescription in interface Language

getTimeDescription

public String getTimeDescription(Locale locale,
                                 long milliseconds)
Specified by:
getTimeDescription in interface Language

getTimeDescription

public String getTimeDescription(Locale locale,
                                 long milliseconds,
                                 boolean approximate)
Specified by:
getTimeDescription in interface Language

getTimeDescription

public String getTimeDescription(Locale locale,
                                 Long milliseconds)
Specified by:
getTimeDescription in interface Language

init

public void init()
Specified by:
init in interface Language

isAvailableLanguageCode

public boolean isAvailableLanguageCode(String languageCode)
Specified by:
isAvailableLanguageCode in interface Language

isAvailableLocale

public boolean isAvailableLocale(Locale locale)
Specified by:
isAvailableLocale in interface Language

isAvailableLocale

public boolean isAvailableLocale(long groupId,
                                 Locale locale)
Specified by:
isAvailableLocale in interface Language

isAvailableLocale

public boolean isAvailableLocale(long groupId,
                                 String languageId)
Specified by:
isAvailableLocale in interface Language

isAvailableLocale

public boolean isAvailableLocale(String languageId)
Specified by:
isAvailableLocale in interface Language

isBetaLocale

public boolean isBetaLocale(Locale locale)
Specified by:
isBetaLocale in interface Language

isDuplicateLanguageCode

public boolean isDuplicateLanguageCode(String languageCode)
Specified by:
isDuplicateLanguageCode in interface Language

isInheritLocales

public boolean isInheritLocales(long groupId)
                         throws PortalException
Specified by:
isInheritLocales in interface Language
Throws:
PortalException

process

public String process(ResourceBundle resourceBundle,
                      Locale locale,
                      String content)
Specified by:
process in interface Language

resetAvailableGroupLocales

public void resetAvailableGroupLocales(long groupId)
Specified by:
resetAvailableGroupLocales in interface Language

resetAvailableLocales

public void resetAvailableLocales(long companyId)
Specified by:
resetAvailableLocales in interface Language

updateCookie

public void updateCookie(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         Locale locale)
Specified by:
updateCookie in interface Language

Liferay 7.0-ce-b4