public class UserAuthenticationResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
UserAuthenticationResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
doLogin(String engineName,
String appName,
String username,
String password) |
javax.ws.rs.core.Response |
doLogout(String engineName) |
protected javax.ws.rs.core.Response |
forbidden() |
javax.ws.rs.core.Response |
getAuthenticatedUser(String engineName) |
protected List<String> |
getGroupsOfUser(ProcessEngine engine,
String userId) |
protected List<String> |
getTenantsOfUser(ProcessEngine engine,
String userId) |
protected javax.ws.rs.core.Response |
notFound() |
protected javax.ws.rs.core.Response |
unauthorized() |
public static final String PATH
@Context protected javax.servlet.http.HttpServletRequest request
public javax.ws.rs.core.Response getAuthenticatedUser(String engineName)
public javax.ws.rs.core.Response doLogin(String engineName, String appName, String username, String password)
protected List<String> getGroupsOfUser(ProcessEngine engine, String userId)
protected List<String> getTenantsOfUser(ProcessEngine engine, String userId)
public javax.ws.rs.core.Response doLogout(String engineName)
protected javax.ws.rs.core.Response unauthorized()
protected javax.ws.rs.core.Response forbidden()
protected javax.ws.rs.core.Response notFound()
Copyright © 2019. All rights reserved.