public class GrantDesc extends DDLDesc implements Serializable, Cloneable
Constructor and Description |
---|
GrantDesc(PrivilegeObjectDesc privilegeSubject,
List<PrivilegeDesc> privilegeDesc,
List<PrincipalDesc> principalDesc,
String grantor,
PrincipalType grantorType,
boolean grantOption) |
Modifier and Type | Method and Description |
---|---|
String |
getGrantor() |
PrincipalType |
getGrantorType() |
List<PrincipalDesc> |
getPrincipals() |
List<PrivilegeDesc> |
getPrivileges() |
PrivilegeObjectDesc |
getPrivilegeSubjectDesc() |
boolean |
isGrantOption() |
void |
setGrantOption(boolean grantOption) |
void |
setGrantor(String grantor) |
void |
setGrantorType(PrincipalType grantorType) |
void |
setPrincipals(List<PrincipalDesc> principals) |
void |
setPrivileges(List<PrivilegeDesc> privileges) |
void |
setPrivilegeSubjectDesc(PrivilegeObjectDesc privilegeSubjectDesc) |
public GrantDesc(PrivilegeObjectDesc privilegeSubject, List<PrivilegeDesc> privilegeDesc, List<PrincipalDesc> principalDesc, String grantor, PrincipalType grantorType, boolean grantOption)
public List<PrivilegeDesc> getPrivileges()
public void setPrivileges(List<PrivilegeDesc> privileges)
privileges
- public List<PrincipalDesc> getPrincipals()
public void setPrincipals(List<PrincipalDesc> principals)
principals
- public boolean isGrantOption()
public void setGrantOption(boolean grantOption)
grantOption
- public PrivilegeObjectDesc getPrivilegeSubjectDesc()
public void setPrivilegeSubjectDesc(PrivilegeObjectDesc privilegeSubjectDesc)
privilegeSubjectDesc
- public String getGrantor()
public void setGrantor(String grantor)
public PrincipalType getGrantorType()
public void setGrantorType(PrincipalType grantorType)
Copyright © 2017 The Apache Software Foundation. All rights reserved.