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 UserIFcreateUserSession(javax.servlet.jsp.PageContext pageContext)INTERNAL: Create new user object in session scope.static UserIFcreateUserSession(javax.servlet.jsp.PageContext pageContext, int scope)INTERNAL: Create new user object in given scope.static ListevaluateParameterList(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 ContextTaggetContextTag(javax.servlet.jsp.PageContext pageContext)INTERNAL: Gets the context tag from the request scope.static ContextTaggetContextTag(javax.servlet.ServletRequest request)INTERNAL: Gets the context tag from the request.static UserIFgetUser(javax.servlet.jsp.PageContext pageContext)INTERNAL: Gets user object out of session scope.static UserIFgetUser(javax.servlet.jsp.PageContext pageContext, boolean create)INTERNAL: Gets user object out of session scope.static voidresetMVSsettingsInUserSession(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
-
-