2004.04.29


com.jdc.app.web
Class UserContext

java.lang.Object
  |
  +--com.jdc.app.web.UserContext

public class UserContext
extends Object

The UserContext object maintains various user context (run-time properties) for web application users.

Note: This class cannot be instantiated.

Version:
1.0
Author:
Jay Damon

Method Summary
static void end()
          Ends a user context for the current user.
static String getProperty(String property)
          Returns the current user property value for the specified property.
static String getThread()
          Returns the current user thread.
static String getUser()
          Returns the current user.
static void setProperty(String property, String value)
          Sets a property for the user of the current thread for this application.
static void setProperty(String user, String property, String value)
          Sets a property for this application.
static void start(String user)
          Starts a user context for the specified user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

end

public static void end()
Ends a user context for the current user.


getProperty

public static String getProperty(String property)
Returns the current user property value for the specified property.

Returns:
The current user property value.

getThread

public static String getThread()
Returns the current user thread.

Returns:
The current user thread.

getUser

public static String getUser()
Returns the current user.

Returns:
The current user.

setProperty

public static void setProperty(String property,
                               String value)
Sets a property for the user of the current thread for this application.


setProperty

public static void setProperty(String user,
                               String property,
                               String value)
Sets a property for this application.


start

public static void start(String user)
Starts a user context for the specified user.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.