public abstract class PrivilegeInfo
extends java.lang.Object
Constructor and Description |
---|
PrivilegeInfo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addWarningIfPrivilegeNotRevoked(Activation activation,
boolean grant,
boolean privileges_revoked,
java.lang.String grantee)
This method adds a warning if a revoke statement has not revoked
any privileges from a grantee.
|
protected void |
checkOwnership(java.lang.String user,
TupleDescriptor objectDescriptor,
SchemaDescriptor sd,
DataDictionary dd)
Determines whether a user is the owner of an object
(table, function, or procedure).
|
abstract void |
executeGrantRevoke(Activation activation,
boolean grant,
java.util.List grantees)
This is the guts of the Execution-time logic for GRANT/REVOKE
|
public abstract void executeGrantRevoke(Activation activation, boolean grant, java.util.List grantees) throws StandardException
activation
- grant
- true if grant, false if revokegrantees
- a list of authorization ids (strings)StandardException
- Thrown on failureprotected void checkOwnership(java.lang.String user, TupleDescriptor objectDescriptor, SchemaDescriptor sd, DataDictionary dd) throws StandardException
user
- authorizationId of current userobjectDescriptor
- object being checked againstsd
- SchemaDescriptordd
- DataDictionaryStandardException
- if user does not own the objectprotected void addWarningIfPrivilegeNotRevoked(Activation activation, boolean grant, boolean privileges_revoked, java.lang.String grantee)
activation
- grant
- true if grant, false if revokeprivileges_revoked
- true, if at least one privilege has been
revoked from a grantee, false otherwisegrantee
- authorization id of the userApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.