it.eng.spagobi.commons.utilities
Class UserUtilities

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.UserUtilities

public class UserUtilities
extends java.lang.Object


Constructor Summary
UserUtilities()
           
 
Method Summary
static void createUserFunctionalityRoot(it.eng.spago.security.IEngUserProfile userProfile)
          Creates the user functionality root.
static java.lang.String getUserId(javax.servlet.http.HttpServletRequest req)
           
static it.eng.spago.security.IEngUserProfile getUserProfile()
          Gets the user profile.
static it.eng.spago.security.IEngUserProfile getUserProfile(javax.servlet.http.HttpServletRequest req)
           
static it.eng.spago.security.IEngUserProfile getUserProfile(java.lang.String userId)
           
static java.lang.String[] readFunctionality(java.lang.String[] roles)
           
static boolean userFunctionalityRootExists(java.lang.String username)
          User functionality root exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserUtilities

public UserUtilities()
Method Detail

getUserProfile

public static it.eng.spago.security.IEngUserProfile getUserProfile()
                                                            throws java.lang.Exception
Gets the user profile.

Returns:
the user profile
Throws:
java.lang.Exception - the exception

getUserId

public static java.lang.String getUserId(javax.servlet.http.HttpServletRequest req)

getUserProfile

public static it.eng.spago.security.IEngUserProfile getUserProfile(javax.servlet.http.HttpServletRequest req)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

getUserProfile

public static it.eng.spago.security.IEngUserProfile getUserProfile(java.lang.String userId)
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

userFunctionalityRootExists

public static boolean userFunctionalityRootExists(java.lang.String username)
                                           throws java.lang.Exception
User functionality root exists.

Parameters:
username - the username
Returns:
true, if successful
Throws:
java.lang.Exception - the exception

createUserFunctionalityRoot

public static void createUserFunctionalityRoot(it.eng.spago.security.IEngUserProfile userProfile)
                                        throws java.lang.Exception
Creates the user functionality root.

Parameters:
userProfile - the user profile
Throws:
java.lang.Exception - the exception

readFunctionality

public static java.lang.String[] readFunctionality(java.lang.String[] roles)