|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlets.localization.UserLocaleHelper
public class UserLocaleHelper
UserLocaleHelper contains helper methods for the user locales webflow.
| Constructor Summary | |
|---|---|
UserLocaleHelper()
|
|
| Method Summary | |
|---|---|
Locale |
getCurrentUserLocale(HttpServletRequest request)
Return the current user's locale. |
List<LocaleBean> |
getLocales(Locale currentLocale)
Return a list of LocaleBeans matching the currently available locales for the portal. |
protected Locale[] |
getPortalLocales()
Get the available portal locales. |
protected Locale |
parseLocale(String localeString)
Parse a string representation of a locale and return the matching Locale. |
void |
setUserInstanceManager(IUserInstanceManager userInstanceManager)
Set the UserInstanceManager |
void |
updateUserLocale(HttpServletRequest request,
String localeString)
Update the current user's locale to match the selected locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserLocaleHelper()
| Method Detail |
|---|
public void setUserInstanceManager(IUserInstanceManager userInstanceManager)
userInstanceManager - public List<LocaleBean> getLocales(Locale currentLocale)
currentLocale -
public Locale getCurrentUserLocale(HttpServletRequest request)
request -
public void updateUserLocale(HttpServletRequest request,
String localeString)
request - localeString - protected Locale[] getPortalLocales()
protected Locale parseLocale(String localeString)
localeString -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||