public class AdminTools extends Object
| Constructor and Description |
|---|
AdminTools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAdminPermission(int userId,
String workspace)
Check if user has admin permissions for the workspace.
|
static void |
checkCanCreateWorkspace(int userId) |
public static void checkAdminPermission(int userId,
String workspace)
throws javax.ws.rs.ForbiddenException
javax.ws.rs.ForbiddenException - in case of missing admin permission for the workspacepublic static void checkCanCreateWorkspace(int userId)
throws javax.ws.rs.ForbiddenException
javax.ws.rs.ForbiddenExceptionCopyright © 2020. All rights reserved.