Liferay 7.0-ce-b4

com.liferay.portal.kernel.language
Interface Language


@ProviderType
public interface Language


Method Summary
 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)
           
 

Method Detail

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              LanguageWrapper argument)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              LanguageWrapper argument,
              boolean translateArguments)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              LanguageWrapper[] arguments)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              LanguageWrapper[] arguments,
              boolean translateArguments)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              Object argument)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              Object argument,
              boolean translateArguments)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              Object[] arguments)

format

String format(javax.servlet.http.HttpServletRequest request,
              String pattern,
              Object[] arguments,
              boolean translateArguments)

format

String format(Locale locale,
              String pattern,
              List<Object> arguments)

format

String format(Locale locale,
              String pattern,
              Object argument)

format

String format(Locale locale,
              String pattern,
              Object argument,
              boolean translateArguments)

format

String format(Locale locale,
              String pattern,
              Object[] arguments)

format

String format(Locale locale,
              String pattern,
              Object[] arguments,
              boolean translateArguments)

format

String format(ResourceBundle resourceBundle,
              String pattern,
              Object argument)

format

String format(ResourceBundle resourceBundle,
              String pattern,
              Object argument,
              boolean translateArguments)

format

String format(ResourceBundle resourceBundle,
              String pattern,
              Object[] arguments)

format

String format(ResourceBundle resourceBundle,
              String pattern,
              Object[] arguments,
              boolean translateArguments)

get

String get(javax.servlet.http.HttpServletRequest request,
           ResourceBundle resourceBundle,
           String key)

get

String get(javax.servlet.http.HttpServletRequest request,
           ResourceBundle resourceBundle,
           String key,
           String defaultValue)

get

String get(javax.servlet.http.HttpServletRequest request,
           String key)

get

String get(javax.servlet.http.HttpServletRequest request,
           String key,
           String defaultValue)

get

String get(Locale locale,
           String key)

get

String get(Locale locale,
           String key,
           String defaultValue)

get

String get(ResourceBundle resourceBundle,
           String key)

get

String get(ResourceBundle resourceBundle,
           String key,
           String defaultValue)

getAvailableLocales

Set<Locale> getAvailableLocales()

getAvailableLocales

Set<Locale> getAvailableLocales(long groupId)

getBCP47LanguageId

String getBCP47LanguageId(javax.servlet.http.HttpServletRequest request)

getBCP47LanguageId

String getBCP47LanguageId(Locale locale)

getBCP47LanguageId

String getBCP47LanguageId(PortletRequest portletRequest)

getLanguageId

String getLanguageId(javax.servlet.http.HttpServletRequest request)

getLanguageId

String getLanguageId(Locale locale)

getLanguageId

String getLanguageId(PortletRequest portletRequest)

getLocale

Locale getLocale(long groupId,
                 String languageCode)

getLocale

Locale getLocale(String languageCode)

getSupportedLocales

Set<Locale> getSupportedLocales()

getTimeDescription

String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                          long milliseconds)

getTimeDescription

String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                          long milliseconds,
                          boolean approximate)

getTimeDescription

String getTimeDescription(javax.servlet.http.HttpServletRequest request,
                          Long milliseconds)

getTimeDescription

String getTimeDescription(Locale locale,
                          long milliseconds)

getTimeDescription

String getTimeDescription(Locale locale,
                          long milliseconds,
                          boolean approximate)

getTimeDescription

String getTimeDescription(Locale locale,
                          Long milliseconds)

init

void init()

isAvailableLanguageCode

boolean isAvailableLanguageCode(String languageCode)

isAvailableLocale

boolean isAvailableLocale(Locale locale)

isAvailableLocale

boolean isAvailableLocale(long groupId,
                          Locale locale)

isAvailableLocale

boolean isAvailableLocale(long groupId,
                          String languageId)

isAvailableLocale

boolean isAvailableLocale(String languageId)

isBetaLocale

boolean isBetaLocale(Locale locale)

isDuplicateLanguageCode

boolean isDuplicateLanguageCode(String languageCode)

isInheritLocales

boolean isInheritLocales(long groupId)
                         throws PortalException
Throws:
PortalException

process

String process(ResourceBundle resourceBundle,
               Locale locale,
               String content)

resetAvailableGroupLocales

void resetAvailableGroupLocales(long groupId)

resetAvailableLocales

void resetAvailableLocales(long companyId)

updateCookie

void updateCookie(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  Locale locale)

Liferay 7.0-ce-b4