it.eng.spagobi.commons.utilities
Class UserUtilities
java.lang.Object
it.eng.spagobi.commons.utilities.UserUtilities
public class UserUtilities
- extends java.lang.Object
Method Summary |
static void |
createUserFunctionalityRoot(it.eng.spago.security.IEngUserProfile userProfile)
Creates the user functionality root. |
static java.lang.String |
getSchema(java.lang.String ente,
it.eng.spago.security.IEngUserProfile userProfile)
|
static java.lang.String |
getSchema(java.lang.String ente,
it.eng.spago.base.RequestContainer aRequestContainer)
|
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 |
UserUtilities
public UserUtilities()
getSchema
public static java.lang.String getSchema(java.lang.String ente,
it.eng.spago.base.RequestContainer aRequestContainer)
getSchema
public static java.lang.String getSchema(java.lang.String ente,
it.eng.spago.security.IEngUserProfile userProfile)
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
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)
getUserId
public static java.lang.String getUserId(javax.servlet.http.HttpServletRequest req)