org.apache.hadoop.hive.ql.plan
Class GrantRevokeRoleDDL

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.GrantRevokeRoleDDL

public class GrantRevokeRoleDDL
extends Object


Constructor Summary
GrantRevokeRoleDDL()
           
GrantRevokeRoleDDL(boolean grant, List<String> roles, List<PrincipalDesc> principalDesc, String grantor, org.apache.hadoop.hive.metastore.api.PrincipalType grantorType, boolean grantOption)
           
 
Method Summary
 boolean getGrant()
           
 String getGrantor()
           
 org.apache.hadoop.hive.metastore.api.PrincipalType getGrantorType()
           
 List<PrincipalDesc> getPrincipalDesc()
           
 List<String> getRoles()
           
 boolean isGrantOption()
           
 void setGrant(boolean grant)
           
 void setGrantOption(boolean grantOption)
           
 void setGrantor(String grantor)
           
 void setGrantorType(org.apache.hadoop.hive.metastore.api.PrincipalType grantorType)
           
 void setPrincipalDesc(List<PrincipalDesc> principalDesc)
           
 void setRoles(List<String> roles)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrantRevokeRoleDDL

public GrantRevokeRoleDDL()

GrantRevokeRoleDDL

public GrantRevokeRoleDDL(boolean grant,
                          List<String> roles,
                          List<PrincipalDesc> principalDesc,
                          String grantor,
                          org.apache.hadoop.hive.metastore.api.PrincipalType grantorType,
                          boolean grantOption)
Method Detail

getGrant

public boolean getGrant()
Returns:
grant or revoke privileges

setGrant

public void setGrant(boolean grant)

getPrincipalDesc

public List<PrincipalDesc> getPrincipalDesc()
Returns:
a list of principals

setPrincipalDesc

public void setPrincipalDesc(List<PrincipalDesc> principalDesc)

getRoles

public List<String> getRoles()
Returns:
a list of roles

setRoles

public void setRoles(List<String> roles)

getGrantor

public String getGrantor()

setGrantor

public void setGrantor(String grantor)

getGrantorType

public org.apache.hadoop.hive.metastore.api.PrincipalType getGrantorType()

setGrantorType

public void setGrantorType(org.apache.hadoop.hive.metastore.api.PrincipalType grantorType)

isGrantOption

public boolean isGrantOption()

setGrantOption

public void setGrantOption(boolean grantOption)


Copyright © 2014 The Apache Software Foundation. All rights reserved.