|
8 | 8 | /** |
9 | 9 | * Snowflake object types that can be granted on (databases, schemas, tables, agents, etc.). |
10 | 10 | * <p> |
11 | | - * Each type has a qualification level ({@link #getQualLevel()}) indicating how many name parts |
| 11 | + * Each type has a qualification level ({@link #qualLevel}) indicating how many name parts |
12 | 12 | * it has: 0 = account-level, 1 = one part (e.g. database name), 2 = two parts (e.g. db.schema), |
13 | | - * 3 = three parts (e.g. db.schema.object). The {@link #getObjectType()} and {@link |
14 | | - * #getObjectTypePlural()} strings are used in SQL (e.g. "SHOW AGENTS IN DATABASE"). Use {@link |
15 | | - * #name()} when building grant names so desired state matches what Snowflake |
16 | | - * returns for the object type in SHOW GRANTS statements. {@link #name()} is also used for matching the object name as |
17 | | - * it appears in future grant object names such as MY_DB.MY_SCHEMA.<TABLE>.. |
| 13 | + * 3 = three parts (e.g. db.schema.object). The {@link #objectType} and {@link #objectTypePlural} |
| 14 | + * strings are used in SQL (e.g. "SHOW AGENTS IN DATABASE"). Use {@link #name()} when building |
| 15 | + * grant names so desired state matches what Snowflake returns for the object type in SHOW GRANTS |
| 16 | + * statements. {@link #name()} is also used for matching the object name as it appears in future |
| 17 | + * grant object names such as {@code MY_DB.MY_SCHEMA.<TABLE>}. |
18 | 18 | * <p> |
19 | | - * {@link #getAliasFor()} is used only when building hash keys for grants (e.g. in {@code |
| 19 | + * {@link #aliasFor} is used only when building hash keys for grants (e.g. in {@code |
20 | 20 | * SnowflakeGrantBuilder.getKey()} and the revoke index). It is not user-facing and does not |
21 | 21 | * allow the user to specify a different name in the playbook. It exists to align on differences |
22 | 22 | * that come from Snowflake: the same logical object type may appear under different names in |
@@ -159,8 +159,8 @@ public static SnowflakeObjectType fromString(String objectType) { |
159 | 159 | /** |
160 | 160 | * Map of playbook (or Snowflake) input names to enum names. Used by {@link #fromString(String)} |
161 | 161 | * so that e.g. "AGENT" in a playbook resolves to {@link #CORTEX_AGENT}. This is what allows |
162 | | - * the user to specify a different name in the playbook; it is separate from {@link |
163 | | - * #getAliasFor()}, which is only for hash keys. |
| 162 | + * the user to specify a different name in the playbook; it is separate from {@link #aliasFor}, |
| 163 | + * which is only for hash keys. |
164 | 164 | */ |
165 | 165 | public static Map<String, String> overrideObjectTypes = Map.of( |
166 | 166 | "AGENT", "CORTEX_AGENT" |
|
0 commit comments