public class DrillUserPrincipal extends Object implements Principal
| Modifier and Type | Class and Description |
|---|---|
static class |
DrillUserPrincipal.AnonDrillUserPrincipal
DrillUserPrincipal for anonymous (auth disabled) mode. |
| Modifier and Type | Field and Description |
|---|---|
static List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> |
ADMIN_PRINCIPALS |
static String |
ADMIN_ROLE |
static String[] |
ADMIN_USER_ROLES |
static String |
ANONYMOUS_USER |
static String |
AUTHENTICATED_ROLE |
static List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> |
NON_ADMIN_PRINCIPALS |
static String[] |
NON_ADMIN_USER_ROLES |
| Constructor and Description |
|---|
DrillUserPrincipal(String userName,
boolean isAdmin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManageProfileOf(String profileOwner)
Is the user identified by this user principal can manage (read) the profile owned by the given user?
|
boolean |
canManageQueryOf(String queryUser)
Is the user identified by this user principal can manage (cancel) the query issued by the given user?
|
String |
getName() |
boolean |
isAdminUser() |
public static final String ANONYMOUS_USER
public static final String AUTHENTICATED_ROLE
public static final String ADMIN_ROLE
public static final String[] ADMIN_USER_ROLES
public static final String[] NON_ADMIN_USER_ROLES
public static final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> ADMIN_PRINCIPALS
public static final List<org.eclipse.jetty.security.AbstractLoginService.RolePrincipal> NON_ADMIN_PRINCIPALS
public DrillUserPrincipal(String userName, boolean isAdmin)
public boolean isAdminUser()
public boolean canManageProfileOf(String profileOwner)
profileOwner - Owner of the profile.public boolean canManageQueryOf(String queryUser)
queryUser - User who launched the query.Copyright © 2021 The Apache Software Foundation. All rights reserved.