/** * Find matching enum * * @param privTypeStr * privilege type string * @param isGrant * @return * @throws HiveAuthzPluginException */ public static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr, boolean isGrant) throws HiveAuthzPluginException { SQLPrivilegeType ptype = SQLPrivilegeType.getRequirePrivilege(privTypeStr); return getSQLPrivTypeGrant(ptype, isGrant); }
/** * Find matching enum * * @param privTypeStr * privilege type string * @param isGrant * @return * @throws HiveAuthzPluginException */ public static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr, boolean isGrant) throws HiveAuthzPluginException { SQLPrivilegeType ptype = SQLPrivilegeType.getRequirePrivilege(privTypeStr); return getSQLPrivTypeGrant(ptype, isGrant); }
public void addPrivilege(String priv, boolean withGrant) throws HiveAuthzPluginException { SQLPrivTypeGrant privType = SQLPrivTypeGrant.getSQLPrivTypeGrant(priv, withGrant); addPrivilege(privType); privilegeGrantSet.add(privType); if(withGrant){ //as with grant also implies without grant privilege, add without privilege as well addPrivilege(priv, false); } }
public void addPrivilege(String priv, boolean withGrant) throws HiveAuthzPluginException { SQLPrivTypeGrant privType = SQLPrivTypeGrant.getSQLPrivTypeGrant(priv, withGrant); addPrivilege(privType); privilegeGrantSet.add(privType); if(withGrant){ //as with grant also implies without grant privilege, add without privilege as well addPrivilege(priv, false); } }
/** * Find matching enum * * @param privTypeStr * privilege type string * @param isGrant * @return * @throws HiveAuthzPluginException */ public static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr, boolean isGrant) throws HiveAuthzPluginException { SQLPrivilegeType ptype = SQLPrivilegeType.getRequirePrivilege(privTypeStr); return getSQLPrivTypeGrant(ptype, isGrant); }
public void addPrivilege(String priv, boolean withGrant) throws HiveAuthzPluginException { SQLPrivTypeGrant privType = SQLPrivTypeGrant.getSQLPrivTypeGrant(priv, withGrant); addPrivilege(privType); privilegeGrantSet.add(privType); if(withGrant){ //as with grant also implies without grant privilege, add without privilege as well addPrivilege(priv, false); } }