use of org.apereo.portal.utils.ArrayEnumerator in project uPortal by Jasig.
the class PortalHttpServletRequestWrapper method getLocales.
/* (non-Javadoc)
* @see org.apereo.portal.url.AbstractHttpServletRequestWrapper#getLocales()
*/
@Override
public Enumeration<Locale> getLocales() {
if (super.getSession(false) == null) {
return super.getLocales();
}
final IUserInstance userInstance = this.userInstanceManager.getUserInstance(this.getWrappedRequest());
final LocaleManager localeManager = userInstance.getLocaleManager();
final Locale[] locales = localeManager.getLocales();
return new ArrayEnumerator<Locale>(locales);
}
Aggregations