org.apache.derby.iapi.sql.dictionary
Class StatementRolePermission

java.lang.Object
  extended by org.apache.derby.iapi.sql.dictionary.StatementPermission
      extended by org.apache.derby.iapi.sql.dictionary.StatementRolePermission

public class StatementRolePermission
extends StatementPermission

This class describes a role permission required by a statement.


Field Summary
private  int privType
           
private  java.lang.String roleName
           
 
Constructor Summary
StatementRolePermission(java.lang.String roleName, int privType)
          Constructor
 
Method Summary
 void check(LanguageConnectionContext lcc, java.lang.String authid, boolean forGrant, Activation activation)
           
 PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd)
          Role level permission is never required as list of privileges required for triggers/constraints/views and hence we don't do any work here, but simply return null
private  java.lang.String getPrivName()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.iapi.sql.dictionary.StatementPermission
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roleName

private java.lang.String roleName

privType

private int privType
Constructor Detail

StatementRolePermission

public StatementRolePermission(java.lang.String roleName,
                               int privType)
Constructor

Parameters:
roleName - The role name involved in the operation
privType - One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.
Method Detail

check

public void check(LanguageConnectionContext lcc,
                  java.lang.String authid,
                  boolean forGrant,
                  Activation activation)
           throws StandardException
Specified by:
check in class StatementPermission
Parameters:
lcc - LanguageConnectionContext
authid - AuthorizationId
activation - activation for statement needing check
Throws:
StandardException - if the permission has not been granted
See Also:
StatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, java.lang.String, boolean, org.apache.derby.iapi.sql.Activation)

getPermissionDescriptor

public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid,
                                                     DataDictionary dd)
                                              throws StandardException
Role level permission is never required as list of privileges required for triggers/constraints/views and hence we don't do any work here, but simply return null

Specified by:
getPermissionDescriptor in class StatementPermission
Parameters:
authid - AuthorizationId
dd - DataDictionary
Returns:
PermissionsDescriptor The PermissionsDescriptor for the passed authorization id on this object
Throws:
StandardException
See Also:
StatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, java.lang.String, boolean, org.apache.derby.iapi.sql.Activation)

getPrivName

private java.lang.String getPrivName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

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