|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ui.SessionInitialiser
public class SessionInitialiser
Initialises HttpSession after login.
Should probably make an interface and allow site specific initialisation
Field Summary | |
---|---|
static String |
RESOURCE_BUNDLE_KEY
|
Constructor Summary | |
---|---|
SessionInitialiser()
|
Method Summary | |
---|---|
static Locale |
createLocale(String localeStr)
|
static String |
getAuthUser(HttpSession session)
Proper way of getting the underlying HttpSession attribute value for the currently logged in user. |
static GrouperSession |
getGrouperSession(HttpSession session)
Proper way to get GrouperSession from HttpSession |
static Set |
getMenuFilters(HttpSession session)
Proper way to get MenuFilters from HttpSession |
static UiPermissions |
getUiPermissions(HttpSession session)
Proper way to get UiPermissions from HttpSession |
static void |
init(HttpServletRequest request)
Sets locale and calls any module specific initialisation |
static void |
init(String module,
HttpSession session)
Module specific initialisation with no locale specified |
static void |
init(String module,
String locale,
HttpSession session)
Module and locale specific initialisation |
static void |
initThread(HttpSession session)
|
static BundleBean |
resourceBundles(org.apache.commons.collections.keyvalue.MultiKey multiKey)
get the resource bundle by name and local |
static javax.servlet.jsp.jstl.fmt.LocalizationContext |
retrieveLocalizationContext(org.apache.commons.collections.keyvalue.MultiKey multiKey,
boolean isNav)
get a resource bundle based on multikey |
static MapBundleWrapper |
retrieveMapBundleWrapper(org.apache.commons.collections.keyvalue.MultiKey multiKey,
boolean isNav,
boolean returnNullsIfNotFound)
get a resource bundle based on multikey |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RESOURCE_BUNDLE_KEY
Constructor Detail |
---|
public SessionInitialiser()
Method Detail |
---|
public static javax.servlet.jsp.jstl.fmt.LocalizationContext retrieveLocalizationContext(org.apache.commons.collections.keyvalue.MultiKey multiKey, boolean isNav)
multiKey
- isNav
- true for nav, false for media
public static MapBundleWrapper retrieveMapBundleWrapper(org.apache.commons.collections.keyvalue.MultiKey multiKey, boolean isNav, boolean returnNullsIfNotFound)
multiKey
- isNav
- true for nav, false for mediareturnNullsIfNotFound
- false if normal, true, is nulls if not found (e.g. mediaNullMap)
public static BundleBean resourceBundles(org.apache.commons.collections.keyvalue.MultiKey multiKey)
multiKey
- is the module, name (nav or media), and locale
public static void init(HttpServletRequest request)
request
- current HttpServletRequestpublic static void init(String module, HttpSession session) throws Exception
module
- Struts's modulesession
- current HttpSession
Exception
public static void init(String module, String locale, HttpSession session) throws Exception
module
- Strut's modulelocale
- selected localesession
- current HttpSession
Exception
public static GrouperSession getGrouperSession(HttpSession session)
session
- current HttpSession
public static UiPermissions getUiPermissions(HttpSession session)
session
- current HttpSession
public static Set getMenuFilters(HttpSession session)
session
- current HttpSession
public static String getAuthUser(HttpSession session)
session
-
public static Locale createLocale(String localeStr)
public static void initThread(HttpSession session)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |