public class MDBPrivilege extends Object
Constructor and Description |
---|
MDBPrivilege() |
MDBPrivilege(String principalName,
String principalType,
MDatabase database,
String dbPrivileges,
int createTime,
String grantor,
String grantorType,
boolean grantOption) |
Modifier and Type | Method and Description |
---|---|
int |
getCreateTime() |
MDatabase |
getDatabase() |
boolean |
getGrantOption() |
String |
getGrantor() |
String |
getGrantorType() |
String |
getPrincipalName() |
String |
getPrincipalType() |
String |
getPrivilege() |
void |
setCreateTime(int createTime) |
void |
setDatabase(MDatabase database) |
void |
setGrantOption(boolean grantOption) |
void |
setGrantor(String grantor) |
void |
setGrantorType(String grantorType) |
void |
setPrincipalName(String userName) |
void |
setPrincipalType(String principalType) |
void |
setPrivilege(String dbPrivilege) |
public String getPrincipalName()
public void setPrincipalName(String userName)
userName
- user/role/group namepublic String getPrivilege()
public void setPrivilege(String dbPrivilege)
dbPrivilege
- a set of privileges this user/role/group haspublic MDatabase getDatabase()
public void setDatabase(MDatabase database)
public int getCreateTime()
public void setCreateTime(int createTime)
public String getGrantor()
public void setGrantor(String grantor)
public String getGrantorType()
public void setGrantorType(String grantorType)
public boolean getGrantOption()
public void setGrantOption(boolean grantOption)
public String getPrincipalType()
public void setPrincipalType(String principalType)
Copyright © 2017 The Apache Software Foundation. All rights reserved.