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

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

public final class StatementRoutinePermission
extends StatementPermission

This class describes a routine execute permission required by a statement.


Field Summary
private  UUID routineUUID
           
 
Constructor Summary
StatementRoutinePermission(UUID routineUUID)
           
 
Method Summary
 void check(LanguageConnectionContext lcc, java.lang.String authorizationId, boolean forGrant, Activation activation)
           
 java.lang.String getObjectType()
          Get the type of the privileged object.
 PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd)
          Get the PermissionsDescriptor for the passed authorization id for this object.
 PrivilegedSQLObject getPrivilegedObject(DataDictionary dd)
          Get the privileged object associated with this permission.
 UUID getRoutineUUID()
          Return routine UUID for this access descriptor
 boolean isCorrectPermission(PermissionsDescriptor raw)
          Return true if the passed in permission matches the one required by this StatementPermission.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.iapi.sql.dictionary.StatementPermission
genericCheck
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

routineUUID

private UUID routineUUID
Constructor Detail

StatementRoutinePermission

public StatementRoutinePermission(UUID routineUUID)
Method Detail

getRoutineUUID

public UUID getRoutineUUID()
Return routine UUID for this access descriptor

Returns:
Routine UUID

check

public void check(LanguageConnectionContext lcc,
                  java.lang.String authorizationId,
                  boolean forGrant,
                  Activation activation)
           throws StandardException
Specified by:
check in class StatementPermission
Parameters:
lcc - LanguageConnectionContext
authorizationId - 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)

isCorrectPermission

public boolean isCorrectPermission(PermissionsDescriptor raw)
Description copied from class: StatementPermission
Return true if the passed in permission matches the one required by this StatementPermission.

Overrides:
isCorrectPermission in class StatementPermission
See Also:
StatementPermission.isCorrectPermission(org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor)

getPrivilegedObject

public PrivilegedSQLObject getPrivilegedObject(DataDictionary dd)
                                        throws StandardException
Description copied from class: StatementPermission
Get the privileged object associated with this permission.

Overrides:
getPrivilegedObject in class StatementPermission
Throws:
StandardException
See Also:
StatementPermission.getPrivilegedObject(org.apache.derby.iapi.sql.dictionary.DataDictionary)

getPermissionDescriptor

public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid,
                                                     DataDictionary dd)
                                              throws StandardException
Description copied from class: StatementPermission
Get the PermissionsDescriptor for the passed authorization id for this object. This method gets called during the execution phase of create view/constraint/trigger. The return value of this method is saved in dependency system to keep track of views/constraints/triggers dependencies on required permissions. This happens in execution phase after it has been established that passed authorization id has all the permissions it needs to create that view/constraint/trigger. Which means that we can only get to writing into dependency system once all the required privileges are confirmed.

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.getPermissionDescriptor(java.lang.String, org.apache.derby.iapi.sql.dictionary.DataDictionary)

getObjectType

public java.lang.String getObjectType()
Description copied from class: StatementPermission
Get the type of the privileged object.

Overrides:
getObjectType in class StatementPermission
See Also:
StatementPermission.getObjectType()

toString

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

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.