StatementGenericPermission
, StatementRolePermission
, StatementRoutinePermission
, StatementSchemaPermission
, StatementTablePermission
public abstract class StatementPermission
extends java.lang.Object
Constructor | Description |
---|---|
StatementPermission() |
Restrict implementations to this package to reduce
risk of external code spoofing the GRANT/REVOKE system
by providing its own fake implementations.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation) |
|
void |
genericCheck(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation,
java.lang.String privilegeType) |
Generic logic called by check() for USAGE and EXECUTE privileges.
|
java.lang.String |
getObjectType() |
Get the type of the privileged object.
|
abstract 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.
|
boolean |
isCorrectPermission(PermissionsDescriptor pd) |
Return true if the passed in permission matches the one required by this
StatementPermission.
|
StatementPermission()
public abstract void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException
lcc
- LanguageConnectionContextforGrant
- activation
- activation for statement needing checkStandardException
- if the permission has not been grantedpublic abstract PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
authid
- AuthorizationIddd
- DataDictionaryStandardException
public boolean isCorrectPermission(PermissionsDescriptor pd) throws StandardException
StandardException
public PrivilegedSQLObject getPrivilegedObject(DataDictionary dd) throws StandardException
StandardException
public java.lang.String getObjectType()
public void genericCheck(LanguageConnectionContext lcc, boolean forGrant, Activation activation, java.lang.String privilegeType) throws StandardException
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.