public class GenericPrivilegeInfo extends PrivilegeInfo
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
_privilege |
|
private boolean |
_restrict |
|
private PrivilegedSQLObject |
_tupleDescriptor |
Constructor | Description |
---|---|
GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor,
java.lang.String privilege,
boolean restrict) |
Construct from the object which is protected by privileges.
|
Modifier and Type | Method | Description |
---|---|---|
void |
executeGrantRevoke(Activation activation,
boolean grant,
java.util.List grantees) |
This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addWarningIfPrivilegeNotRevoked, checkOwnership
private PrivilegedSQLObject _tupleDescriptor
private java.lang.String _privilege
private boolean _restrict
public GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor, java.lang.String privilege, boolean restrict)
tupleDescriptor
- The object which is being protectedprivilege
- Kind of privilege (e.g., PermDescriptor.USAGE_PRIV)restrict
- True if this is a REVOKE RESTRICT actionpublic void executeGrantRevoke(Activation activation, boolean grant, java.util.List grantees) throws StandardException
executeGrantRevoke
in class PrivilegeInfo
activation
- grant
- true if grant, false if revokegrantees
- a list of authorization ids (strings)StandardException
- Thrown on failureApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.