org.apache.derby.impl.sql.execute
Class GenericPrivilegeInfo

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.PrivilegeInfo
      extended by org.apache.derby.impl.sql.execute.GenericPrivilegeInfo

public class GenericPrivilegeInfo
extends PrivilegeInfo


Field Summary
private  java.lang.String _privilege
           
private  boolean _restrict
           
private  PrivilegedSQLObject _tupleDescriptor
           
 
Constructor Summary
GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor, java.lang.String privilege, boolean restrict)
          Construct from the object which is protected by privileges.
 
Method Summary
 void executeGrantRevoke(Activation activation, boolean grant, java.util.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tupleDescriptor

private PrivilegedSQLObject _tupleDescriptor

_privilege

private java.lang.String _privilege

_restrict

private boolean _restrict
Constructor Detail

GenericPrivilegeInfo

public GenericPrivilegeInfo(PrivilegedSQLObject tupleDescriptor,
                            java.lang.String privilege,
                            boolean restrict)
Construct from the object which is protected by privileges.

Parameters:
tupleDescriptor - The object which is being protected
privilege - Kind of privilege (e.g., PermDescriptor.USAGE_PRIV)
restrict - True if this is a REVOKE RESTRICT action
Method Detail

executeGrantRevoke

public void executeGrantRevoke(Activation activation,
                               boolean grant,
                               java.util.List grantees)
                        throws StandardException
This is the guts of the Execution-time logic for GRANT/REVOKE generic privileges.

Specified by:
executeGrantRevoke in class PrivilegeInfo
Parameters:
activation -
grant - true if grant, false if revoke
grantees - a list of authorization ids (strings)
Throws:
StandardException - Thrown on failure

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.