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 net.ontopia.topicmaps.nav2.core.UserIF createUserSession(javax.servlet.jsp.PageContext pageContext)
          INTERNAL: Create new user object in session scope.
static net.ontopia.topicmaps.nav2.core.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 net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag getContextTag(javax.servlet.jsp.PageContext pageContext)
          INTERNAL: Gets the context tag from the request scope.
static net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag getContextTag(javax.servlet.ServletRequest request)
          INTERNAL: Gets the context tag from the request.
static net.ontopia.topicmaps.nav2.core.UserIF getUser(javax.servlet.jsp.PageContext pageContext)
          INTERNAL: Gets user object out of session scope.
static net.ontopia.topicmaps.nav2.core.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkUtils

public FrameworkUtils()
Method Detail

getContextTag

public static net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag getContextTag(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets the context tag from the request scope.


getContextTag

public static net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag getContextTag(javax.servlet.ServletRequest request)
INTERNAL: Gets the context tag from the request.


getUser

public static net.ontopia.topicmaps.nav2.core.UserIF getUser(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Gets user object out of session scope.


getUser

public static net.ontopia.topicmaps.nav2.core.UserIF getUser(javax.servlet.jsp.PageContext pageContext,
                                                             boolean create)
INTERNAL: Gets user object out of session scope.


createUserSession

public static net.ontopia.topicmaps.nav2.core.UserIF createUserSession(javax.servlet.jsp.PageContext pageContext)
INTERNAL: Create new user object in session scope.


createUserSession

public static net.ontopia.topicmaps.nav2.core.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-2010 Ontopia.