Class GenericPrivilegeInfo
java.lang.Object
org.apache.derby.impl.sql.execute.PrivilegeInfo
org.apache.derby.impl.sql.execute.GenericPrivilegeInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericPrivilegeInfo
(PrivilegedSQLObject tupleDescriptor, String privilege, boolean restrict) Construct from the object which is protected by privileges. -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeGrantRevoke
(Activation activation, boolean grant, List grantees) This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.Methods inherited from class org.apache.derby.impl.sql.execute.PrivilegeInfo
addWarningIfPrivilegeNotRevoked, checkOwnership
-
Field Details
-
_tupleDescriptor
-
_privilege
-
_restrict
private boolean _restrict
-
-
Constructor Details
-
GenericPrivilegeInfo
public GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor, String privilege, boolean restrict) Construct from the object which is protected by privileges.- Parameters:
tupleDescriptor
- The object which is being protectedprivilege
- Kind of privilege (e.g., PermDescriptor.USAGE_PRIV)restrict
- True if this is a REVOKE RESTRICT action
-
-
Method Details
-
executeGrantRevoke
public void executeGrantRevoke(Activation activation, boolean grant, List grantees) throws StandardException This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.- Specified by:
executeGrantRevoke
in classPrivilegeInfo
- Parameters:
activation
-grant
- true if grant, false if revokegrantees
- a list of authorization ids (strings)- Throws:
StandardException
- Thrown on failure
-