15 package com.cloudera.impala.authorization;
17 import java.util.EnumSet;
19 import org.apache.sentry.core.model.db.DBModelAction;
25 ALL(DBModelAction.ALL,
false),
26 ALTER(DBModelAction.ALL,
false),
27 DROP(DBModelAction.ALL,
false),
32 VIEW_METADATA(EnumSet.of(DBModelAction.INSERT, DBModelAction.SELECT),
true),
35 ANY(EnumSet.allOf(DBModelAction.class),
true),
38 private final EnumSet<DBModelAction>
actions;
45 private Privilege(EnumSet<DBModelAction> actions,
boolean anyOf) {
46 this.actions = actions;
50 private Privilege(DBModelAction action,
boolean anyOf) {
51 this(EnumSet.of(action), anyOf);
Privilege(DBModelAction action, boolean anyOf)
final EnumSet< DBModelAction > actions
EnumSet< DBModelAction > getHiveActions()
Privilege(EnumSet< DBModelAction > actions, boolean anyOf)