public static SitePreference getCurrentSitePreference ( RequestAttributes attributes ) { return ( SitePreference ) attributes . getAttribute ( CURRENT_SITE_PREFERENCE_ATTRIBUTE , RequestAttributes . SCOPE_REQUEST ) ; }
Get the current site preference for the user from the request attributes map .