public final class StatementGenericPermission extends StatementPermission
| Modifier and Type | Field and Description |
|---|---|
private UUID |
_objectID |
private java.lang.String |
_objectType |
private java.lang.String |
_privilege |
| Constructor and Description |
|---|
StatementGenericPermission(UUID objectID,
java.lang.String objectType,
java.lang.String privilege) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation) |
UUID |
getObjectID() |
java.lang.String |
getObjectType()
Get the type of the privileged object.
|
PermissionsDescriptor |
getPermissionDescriptor(java.lang.String authid,
DataDictionary dd)
Get the PermissionsDescriptor for the passed authorization id for this
object.
|
java.lang.String |
getPrivilege() |
PrivilegedSQLObject |
getPrivilegedObject(DataDictionary dd)
Get the privileged object associated with this permission.
|
boolean |
isCorrectPermission(PermissionsDescriptor raw)
Return true if the passed in permission matches the one required by this
StatementPermission.
|
java.lang.String |
toString() |
genericCheckprivate UUID _objectID
private java.lang.String _objectType
private java.lang.String _privilege
public StatementGenericPermission(UUID objectID, java.lang.String objectType, java.lang.String privilege)
public UUID getObjectID()
public java.lang.String getPrivilege()
public java.lang.String getObjectType()
StatementPermissiongetObjectType in class StatementPermissionStatementPermission.getObjectType()public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException
check in class StatementPermissionlcc - 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 boolean isCorrectPermission(PermissionsDescriptor raw)
StatementPermissionpublic PrivilegedSQLObject getPrivilegedObject(DataDictionary dd) throws StandardException
StatementPermissiongetPrivilegedObject in class StatementPermissionStandardExceptionStatementPermission.getPrivilegedObject(org.apache.derby.iapi.sql.dictionary.DataDictionary)public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
StatementPermissiongetPermissionDescriptor in class StatementPermissionauthid - AuthorizationIddd - DataDictionaryStandardExceptionStatementPermission.getPermissionDescriptor(java.lang.String, org.apache.derby.iapi.sql.dictionary.DataDictionary)public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.