public class StatementRolePermission extends StatementPermission
Modifier and Type | Field and Description |
---|---|
private int |
privType |
private java.lang.String |
roleName |
Constructor and Description |
---|
StatementRolePermission(java.lang.String roleName,
int privType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(LanguageConnectionContext lcc,
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() |
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
public StatementRolePermission(java.lang.String roleName, int privType)
roleName
- The role name involved in the operationprivType
- One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException
check
in class StatementPermission
lcc
- LanguageConnectionContextactivation
- activation for statement needing checkStandardException
- if the permission has not been grantedStatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, org.apache.derby.iapi.sql.Activation)
public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
getPermissionDescriptor
in class StatementPermission
authid
- AuthorizationIddd
- DataDictionaryStandardException
StatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, org.apache.derby.iapi.sql.Activation)
private java.lang.String getPrivName()
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.