Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
Role (String roleName, Set< String > grantGroups) | |
boolean | addPrivilege (RolePrivilege privilege) |
List< RolePrivilege > | getPrivileges () |
Set< String > | getPrivilegeNames () |
RolePrivilege | getPrivilege (String privilegeName) |
RolePrivilege | removePrivilege (String privilegeName) |
synchronized void | addGrantGroup (String groupName) |
synchronized void | removeGrantGroup (String groupName) |
TRole | toThrift () |
Set< String > | getGrantGroups () |
TCatalogObjectType | getCatalogObjectType () |
String | getName () |
int | getId () |
synchronized long | getCatalogVersion () |
synchronized void | setCatalogVersion (long newVersion) |
boolean | isLoaded () |
Static Public Member Functions | |
static Role | fromThrift (TRole thriftRole) |
Private Member Functions | |
Role (TRole role) | |
Private Attributes | |
final TRole | role_ |
long | catalogVersion_ = Catalog.INITIAL_CATALOG_VERSION |
final CatalogObjectCache < RolePrivilege > | rolePrivileges_ |
Static Private Attributes | |
static AtomicInteger | roleId_ = new AtomicInteger(0) |
Represents a role in an authorization policy. This class is thread safe.
|
inline |
Definition at line 39 of file Role.java.
References com.cloudera.impala.catalog.Role.role_.
Referenced by com.cloudera.impala.catalog.Role.fromThrift().
|
inlineprivate |
Definition at line 46 of file Role.java.
References com.cloudera.impala.catalog.Role.role_.
|
inline |
Adds a new grant group to this role.
Definition at line 93 of file Role.java.
References com.cloudera.impala.catalog.Role.role_.
|
inline |
|
inlinestatic |
Creates a Role from a TRole thrift struct.
Definition at line 117 of file Role.java.
References com.cloudera.impala.catalog.Role.Role().
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 134 of file Role.java.
References com.cloudera.impala.catalog.Role.catalogVersion_.
Referenced by com.cloudera.impala.catalog.AuthorizationPolicy.addRole(), and com.cloudera.impala.catalog.ImpaladCatalog.removeRole().
|
inline |
Gets the set of group names that have been granted this role or an empty Set if no groups have been granted the role.
Definition at line 125 of file Role.java.
Referenced by com.cloudera.impala.catalog.AuthorizationPolicy.addRole(), com.cloudera.impala.catalog.AuthorizationPolicy.removeRole(), and com.cloudera.impala.util.SentryProxy.PolicyReader.run().
|
inline |
Definition at line 132 of file Role.java.
Referenced by com.cloudera.impala.catalog.AuthorizationPolicy.addRole(), and com.cloudera.impala.analysis.ShowGrantRoleStmt.toThrift().
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 131 of file Role.java.
Referenced by com.cloudera.impala.catalog.AuthorizationPolicy.addRole(), and com.cloudera.impala.catalog.Catalog.getTCatalogObject().
|
inline |
|
inline |
|
inline |
Returns all privileges for this role. If no privileges have been added to the role an empty list will be returned.
Definition at line 62 of file Role.java.
Referenced by com.cloudera.impala.catalog.AuthorizationPolicy.addRole(), and com.cloudera.impala.catalog.Catalog.getTCatalogObject().
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
|
inline |
|
inline |
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 136 of file Role.java.
References com.cloudera.impala.catalog.Role.catalogVersion_.
|
inline |
Returns the Thrift representation of the role.
Definition at line 110 of file Role.java.
References com.cloudera.impala.catalog.Role.role_.
|
private |
Definition at line 34 of file Role.java.
Referenced by com.cloudera.impala.catalog.Role.getCatalogVersion(), and com.cloudera.impala.catalog.Role.setCatalogVersion().
|
private |
Definition at line 31 of file Role.java.
Referenced by com.cloudera.impala.catalog.Role.addGrantGroup(), com.cloudera.impala.catalog.Role.Role(), and com.cloudera.impala.catalog.Role.toThrift().
|
staticprivate |
|
private |