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) |
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 boolean |
isAuthorizedForApp(AuthorizationService authorizationService,
String username,
List<String> groupIds,
String application) |
protected ProcessEngine |
lookupProcessEngine(String engineName) |
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 ProcessEngine lookupProcessEngine(String engineName)
protected boolean isAuthorizedForApp(AuthorizationService authorizationService, String username, List<String> groupIds, String application)
Copyright © 2017. All rights reserved.