public class GenericPrivilegeInfo extends PrivilegeInfo
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_privilege |
private boolean |
_restrict |
private PrivilegedSQLObject |
_tupleDescriptor |
Constructor and Description |
---|
GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor,
java.lang.String privilege,
boolean restrict)
Construct from the object which is protected by privileges.
|
Modifier and Type | Method and 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.
|
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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.