15 package com.cloudera.impala.authorization;
17 import java.util.List;
19 import org.apache.sentry.core.model.db.DBModelAuthorizable;
21 import com.google.common.base.Preconditions;
22 import com.google.common.collect.Lists;
28 private final org.apache.sentry.core.model.db.Database
database_;
31 Preconditions.checkState(dbName != null && !dbName.isEmpty());
32 database_ =
new org.apache.sentry.core.model.db.Database(dbName);
37 return Lists.newArrayList((DBModelAuthorizable)
database_);
41 public String
getName() {
return database_.getName(); }
List< DBModelAuthorizable > getHiveAuthorizeableHierarchy()
final org.apache.sentry.core.model.db.Database database_
AuthorizeableDb(String dbName)