org.apache.derby.iapi.sql.dictionary
Class StatementRolePermission
java.lang.Object
org.apache.derby.iapi.sql.dictionary.StatementPermission
org.apache.derby.iapi.sql.dictionary.StatementRolePermission
public class StatementRolePermission
- extends StatementPermission
This class describes a role permission required by a statement.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
roleName
private java.lang.String roleName
privType
private int privType
StatementRolePermission
public StatementRolePermission(java.lang.String roleName,
int privType)
- Constructor
- Parameters:
roleName - The role name involved in the operationprivType - One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.
check
public void check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation)
throws StandardException
- Specified by:
check in class StatementPermission
- Parameters:
lcc - LanguageConnectionContextactivation - 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, 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 - AuthorizationIddd - 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, 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
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.