net.ontopia.topicmaps.nav2.utils
Class FrameworkUtils

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.utils.FrameworkUtils

public final class FrameworkUtils
extends java.lang.Object

INTERNAL: Framework related utility class providing some helper methods needed to easier for examples access user information.


Constructor Summary
FrameworkUtils()
           
 
Method Summary
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 java.util.List evaluateParameterList(javax.servlet.jsp.PageContext pageContext, java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkUtils

public FrameworkUtils()
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 java.util.List evaluateParameterList(javax.servlet.jsp.PageContext pageContext,
                                                   java.lang.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


Copyright © 2000-2012 Ontopia.