com.sun.faban.harness.webclient
Class UserEnv

java.lang.Object
  extended by com.sun.faban.harness.webclient.UserEnv

public class UserEnv
extends Object

The user environemnt is kept in the user's session at all times. It contains many of Faban's necessary states.


Constructor Summary
UserEnv()
           
 
Method Summary
 Authenticator getAuthenticator()
          Obtains the authenticator used for user authentication.
 String[] getProfiles()
          Obtains a list of current profiles set up on this Faban harness instance.
 Subject getSubject()
          Obtains the subject of the current user.
 String getUser()
          Obtains the login name or id of the current user.
 void saveParamRepository(String profile, BenchmarkDescription desc, char[] buf)
          Saves the config file to the given profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserEnv

public UserEnv()
Method Detail

getAuthenticator

public Authenticator getAuthenticator()
Obtains the authenticator used for user authentication. This call returns null only if security is disabled.

Returns:
The active authenticator for this session

getUser

public String getUser()
Obtains the login name or id of the current user.

Returns:
The login name or id, or null if not logged in.

getSubject

public Subject getSubject()
Obtains the subject of the current user.

Returns:
The user's subject, or null if not logged in.

getProfiles

public String[] getProfiles()
Obtains a list of current profiles set up on this Faban harness instance.

Returns:
The list of profiles.

saveParamRepository

public void saveParamRepository(String profile,
                                BenchmarkDescription desc,
                                char[] buf)
Saves the config file to the given profile.

Parameters:
profile - The profile to save to
desc - The benchmark description
buf - The buffer containing the run config file