public class UserFacade extends Object implements IScriptingFacade
| Constructor and Description |
|---|
UserFacade() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getName()
Gets the user name.
|
static String |
getName(javax.servlet.http.HttpServletRequest request)
Gets the user name by a given request as parameter.
|
static String |
getName(javax.websocket.Session session)
Gets the user name by a given request as parameter.
|
static boolean |
isInRole(String role)
Checks if the user is in role.
|
static void |
setName(String userName)
Sets the user name.
|
public static final String getName()
public static final boolean isInRole(String role)
role - the rolepublic static final void setName(String userName) throws ContextException
userName - the user nameContextException - in case of not initialized ThreadContextpublic static final String getName(javax.servlet.http.HttpServletRequest request)
public static final String getName(javax.websocket.Session session)
Copyright © 2010–2018 Eclipse Foundation. All rights reserved.