Package net.ontopia.topicmaps.nav2.utils
Class FrameworkUtils
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.utils.FrameworkUtils
-
public final class FrameworkUtils extends Object
INTERNAL: Framework related utility class providing some helper methods needed to easier for examples access user information.
-
-
Constructor Summary
Constructors Constructor Description FrameworkUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserIF
createUserSession(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Create new user object in session scope.static UserIF
createUserSession(javax.servlet.jsp.PageContext pageContext, int scope)
INTERNAL: Create new user object in given scope.static List
evaluateParameterList(javax.servlet.jsp.PageContext pageContext, String params)
INTERNAL: Evaluates a string of space-separated variable names as a list of collections, and returns it.static ContextTag
getContextTag(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets the context tag from the request scope.static ContextTag
getContextTag(javax.servlet.ServletRequest request)
INTERNAL: Gets the context tag from the request.static UserIF
getUser(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets user object out of session scope.static UserIF
getUser(javax.servlet.jsp.PageContext pageContext, boolean create)
INTERNAL: Gets user object out of session scope.static void
resetMVSsettingsInUserSession(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Reset MVS settings in user object in session scope.
-
-
-
Method Detail
-
getContextTag
public static ContextTag getContextTag(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets the context tag from the request scope.
-
getContextTag
public static ContextTag getContextTag(javax.servlet.ServletRequest request)
INTERNAL: Gets the context tag from the request.
-
getUser
public static UserIF getUser(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets user object out of session scope.
-
getUser
public static UserIF getUser(javax.servlet.jsp.PageContext pageContext, boolean create)
INTERNAL: Gets user object out of session scope.
-
createUserSession
public static UserIF createUserSession(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Create new user object in session scope.
-
createUserSession
public static UserIF createUserSession(javax.servlet.jsp.PageContext pageContext, int scope)
INTERNAL: Create new user object in given scope.
-
resetMVSsettingsInUserSession
public static void resetMVSsettingsInUserSession(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Reset MVS settings in user object in session scope.
-
evaluateParameterList
public static List evaluateParameterList(javax.servlet.jsp.PageContext pageContext, String params) throws javax.servlet.jsp.JspTagException
INTERNAL: Evaluates a string of space-separated variable names as a list of collections, and returns it.- Throws:
javax.servlet.jsp.JspTagException
-
-