Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.authorization.PrivilegeRequestBuilder Class Reference
Collaboration diagram for com.cloudera.impala.authorization.PrivilegeRequestBuilder:

Public Member Functions

PrivilegeRequestBuilder onTable (String dbName, String tableName)
 
PrivilegeRequestBuilder onDb (String dbName)
 
PrivilegeRequestBuilder onURI (String uriName)
 
PrivilegeRequestBuilder onAnyTable (String dbName)
 
PrivilegeRequestBuilder allOf (Privilege privilege)
 
PrivilegeRequestBuilder all ()
 
PrivilegeRequestBuilder any ()
 
PrivilegeRequest toRequest ()
 

Package Attributes

Authorizeable authorizeable_
 
Privilege privilege_
 

Detailed Description

Class that helps build PrivilegeRequest objects. For example: PrivilegeRequestBuilder builder = new PrivilegeRequestBuilder(); PrivilegeRequest = builder.allOf(Privilege.SELECT).onTable("db", "tbl").toRequest();

TODO: In the future, this class could be extended to provide the option to specify multiple permissions. For example: builder.allOf(SELECT, INSERT).onTable(..); It could also be extended to support an "anyOf" to check if the user has any of the permissions specified: builder.anyOf(SELECT, INSERT).onTable(...);

Definition at line 32 of file PrivilegeRequestBuilder.java.

Member Function Documentation

PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.all ( )
inline
PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.allOf ( Privilege  privilege)
inline

Specifies the privilege the user needs to have.

Definition at line 70 of file PrivilegeRequestBuilder.java.

References com.cloudera.impala.authorization.PrivilegeRequestBuilder.privilege_.

Referenced by com.cloudera.impala.analysis.Analyzer.getDb().

PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.any ( )
inline
PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.onAnyTable ( String  dbName)
inline

Specifies that permissions on any table in the given database.

Definition at line 63 of file PrivilegeRequestBuilder.java.

References com.cloudera.impala.authorization.AuthorizeableTable.ANY_TABLE_NAME, and com.cloudera.impala.authorization.PrivilegeRequestBuilder.onTable().

PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.onDb ( String  dbName)
inline

Sets the authorizeable object to be a database.

Definition at line 47 of file PrivilegeRequestBuilder.java.

References com.cloudera.impala.authorization.PrivilegeRequestBuilder.authorizeable_.

PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.onTable ( String  dbName,
String  tableName 
)
inline
PrivilegeRequestBuilder com.cloudera.impala.authorization.PrivilegeRequestBuilder.onURI ( String  uriName)
inline

Sets the authorizeable object to be a URI.

Definition at line 55 of file PrivilegeRequestBuilder.java.

References com.cloudera.impala.authorization.PrivilegeRequestBuilder.authorizeable_.

PrivilegeRequest com.cloudera.impala.authorization.PrivilegeRequestBuilder.toRequest ( )
inline

Member Data Documentation


The documentation for this class was generated from the following file: