Class StatementRolePermission
java.lang.Object
org.apache.derby.iapi.sql.dictionary.StatementPermission
org.apache.derby.iapi.sql.dictionary.StatementRolePermission
This class describes a role permission required by a statement.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(LanguageConnectionContext lcc, boolean forGrant, Activation activation) getPermissionDescriptor(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 nullprivate StringtoString()Methods inherited from class StatementPermission
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
-
Field Details
-
roleName
-
privType
private int privType
-
-
Constructor Details
-
StatementRolePermission
Constructor- Parameters:
roleName- The role name involved in the operationprivType- One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.
-
-
Method Details
-
check
public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException - Specified by:
checkin classStatementPermission- Parameters:
lcc- LanguageConnectionContextforGrant-activation- activation for statement needing check- Throws:
StandardException- if the permission has not been granted- See Also:
-
getPermissionDescriptor
public PermissionsDescriptor getPermissionDescriptor(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:
getPermissionDescriptorin classStatementPermission- Parameters:
authid- AuthorizationIddd- DataDictionary- Returns:
- PermissionsDescriptor The PermissionsDescriptor for the passed authorization id on this object
- Throws:
StandardException- See Also:
-
getPrivName
-
toString
-