Top Fields Constructors Methods
org.apache.derby.impl.sql.execute

public Class GenericPrivilegeInfo

extends PrivilegeInfo
Class Inheritance
Imports
org.apache.derby.iapi.sql.Activation, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.iapi.sql.depend.DependencyManager, org.apache.derby.iapi.sql.dictionary.DataDictionary, .DataDescriptorGenerator, .PermDescriptor, .SchemaDescriptor, .PrivilegedSQLObject, .TupleDescriptor, org.apache.derby.shared.common.error.StandardException, org.apache.derby.catalog.UUID, java.util.Iterator, .List

Field Summary

Modifier and TypeField and Description
private String
private boolean
private PrivilegedSQLObject

Constructor Summary

AccessConstructor and Description
public
GenericPrivilegeInfo(PrivilegedSQLObject
The object which is being protected
tupleDescriptor
,
String
Kind of privilege (e.g., PermDescriptor.USAGE_PRIV)
privilege
,
boolean
True if this is a REVOKE RESTRICT action
restrict
)

Construct from the object which is protected by privileges.

Method Summary

Modifier and TypeMethod and Description
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.apache.derby.impl.sql.execute.PrivilegeInfo.executeGrantRevoke.

This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.

Inherited from org.apache.derby.impl.sql.execute.PrivilegeInfo:
addWarningIfPrivilegeNotRevokedcheckOwnership

Field Detail

_privilegeback to summary
private String _privilege
_restrictback to summary
private boolean _restrict
_tupleDescriptorback to summary
private PrivilegedSQLObject _tupleDescriptor

Constructor Detail

GenericPrivilegeInfoback to summary
public GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor, String privilege, boolean restrict)

Construct from the object which is protected by privileges.

Parameters
tupleDescriptor:PrivilegedSQLObject

The object which is being protected

privilege:String

Kind of privilege (e.g., PermDescriptor.USAGE_PRIV)

restrict:boolean

True if this is a REVOKE RESTRICT action

Method Detail

executeGrantRevokeback to summary
public void executeGrantRevoke(Activation activation, boolean grant, List<E> grantees) throws StandardException

Implements abstract org.apache.derby.impl.sql.execute.PrivilegeInfo.executeGrantRevoke.

This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.

Parameters
grant:boolean

true if grant, false if revoke

grantees:List<E>

a list of authorization ids (strings)

Exceptions
StandardException:
Thrown on failure