|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.sql.dictionary.StatementPermission
public abstract class StatementPermission
This class describes a permission require by a statement.
Constructor Summary | |
---|---|
StatementPermission()
Restrict implementations to this package to reduce risk of external code spoofing the GRANT/REVOKE system by providing its own fake implementations. |
Method Summary | |
---|---|
abstract void |
check(LanguageConnectionContext lcc,
java.lang.String authorizationId,
boolean forGrant,
Activation activation)
|
void |
genericCheck(LanguageConnectionContext lcc,
java.lang.String authorizationId,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
StatementPermission()
Method Detail |
---|
public abstract void check(LanguageConnectionContext lcc, java.lang.String authorizationId, boolean forGrant, Activation activation) throws StandardException
lcc
- LanguageConnectionContextauthorizationId
- AuthorizationIdforGrant
- activation
- activation for statement needing check
StandardException
- if the permission has not been grantedpublic abstract PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
authid
- AuthorizationIddd
- DataDictionary
StandardException
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, java.lang.String authorizationId, boolean forGrant, Activation activation, java.lang.String privilegeType) throws StandardException
StandardException
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |