| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private final boolean[] | |
| private static final String[][] | |
| private final FormatableBitSet[] | |
| public static final int | |
| private final List | |
| public static final int | |
| private static final String | |
| public static final int | |
| public static final int | |
| private final TableDescriptor | |
| public static final int | |
| public static final int | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | TablePrivilegeInfo(TableDescriptor td, boolean[]
actionAllowed[action] is true if action is in the privilege set. actionAllowed, FormatableBitSet[] columnBitSets, List<E> descriptorList)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkOwnership(String
authorizationId of current user user, TableDescriptor table descriptor being checked against td, SchemaDescriptor SchemaDescriptor sd, DataDictionary DataDictionary dd, LanguageConnectionContext LanguageConnectionContext lcc, boolean grant if true; revoke if false grant)Determines whether a user is the owner of an object (table, function, or procedure). |
| private void | checkPrivileges(String
authorizationId of current user user, TableDescriptor TableDescriptor to be checked against td, SchemaDescriptor SchemaDescriptor sd, DataDictionary DataDictionary dd, LanguageConnectionContext LanguageConnectionContext lcc)Determines if the privilege is grantable by this grantor for the given view. |
| public void | executeGrantRevoke(Activation activation, boolean
true if grant, false if revoke grant, List<E> a list of authorization ids (strings) grantees)Implements abstract org. This is the guts of the Execution-time logic for GRANT/REVOKE of a table privilege |
| private String | |
| private String | |
| private boolean |
| ACTION_COUNT | back to summary |
|---|---|
| public static final int ACTION_COUNT | |
| actionAllowed | back to summary |
|---|---|
| private final boolean[] actionAllowed | |
| actionString | back to summary |
|---|---|
| private static final String[][] actionString | |
| columnBitSets | back to summary |
|---|---|
| private final FormatableBitSet[] columnBitSets | |
| DELETE_ACTION | back to summary |
|---|---|
| public static final int DELETE_ACTION | |
| descriptorList | back to summary |
|---|---|
| private final List<E> descriptorList | |
| INSERT_ACTION | back to summary |
|---|---|
| public static final int INSERT_ACTION | |
| NO | back to summary |
|---|---|
| private static final String NO | |
| REFERENCES_ACTION | back to summary |
|---|---|
| public static final int REFERENCES_ACTION | |
| SELECT_ACTION | back to summary |
|---|---|
| public static final int SELECT_ACTION | |
| td | back to summary |
|---|---|
| private final TableDescriptor td | |
| TRIGGER_ACTION | back to summary |
|---|---|
| public static final int TRIGGER_ACTION | |
| UPDATE_ACTION | back to summary |
|---|---|
| public static final int UPDATE_ACTION | |
| YES_WITH_GRANT_OPTION | back to summary |
|---|---|
| private static final String YES_WITH_GRANT_OPTION | |
| YES_WITHOUT_GRANT_OPTION | back to summary |
|---|---|
| private static final String YES_WITHOUT_GRANT_OPTION | |
| TablePrivilegeInfo | back to summary |
|---|---|
public TablePrivilegeInfo(TableDescriptor td, boolean[] actionAllowed, FormatableBitSet[] columnBitSets, List<E> descriptorList)
| |
| checkOwnership | back to summary |
|---|---|
| protected void checkOwnership(String user, TableDescriptor td, SchemaDescriptor sd, DataDictionary dd, LanguageConnectionContext lcc, boolean grant) throws StandardException Determines whether a user is the owner of an object (table, function, or procedure). Note that the database creator can access database objects without needing to be their owner.
| |
| checkPrivileges | back to summary |
|---|---|
| private void checkPrivileges(String user, TableDescriptor td, SchemaDescriptor sd, DataDictionary dd, LanguageConnectionContext lcc) throws StandardException Determines if the privilege is grantable by this grantor for the given view. Note that the database owner can access database objects without needing to be their owner. This method should only be called if it is a GRANT.
| |
| executeGrantRevoke | back to summary |
|---|---|
| public void executeGrantRevoke(Activation activation, boolean grant, List<E> grantees) throws StandardException Implements abstract org. This is the guts of the Execution-time logic for GRANT/REVOKE of a table privilege
| |
| getActionString | back to summary |
|---|---|
| private String getActionString(int action, boolean forGrantOption) | |
| getPermString | back to summary |
|---|---|
| private String getPermString(int action, boolean forGrantOption) | |
| hasColumnPermissions | back to summary |
|---|---|
| private boolean hasColumnPermissions(int action) | |