public class StatementTablePermission extends StatementPermission
Modifier and Type | Field and Description |
---|---|
(package private) int |
privType |
(package private) UUID |
tableUUID |
Constructor and Description |
---|
StatementTablePermission(UUID tableUUID,
int privType)
Constructor for StatementTablePermission.
|
Modifier and Type | Method and Description |
---|---|
void |
check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation) |
boolean |
equals(java.lang.Object obj)
Routine to check if another instance of access descriptor matches this.
|
PermissionsDescriptor |
getPermissionDescriptor(java.lang.String authid,
DataDictionary dd)
Get the PermissionsDescriptor for the passed authorization id for this
object.
|
java.lang.String |
getPrivName()
Return privilege needed for this access as string
|
int |
getPrivType()
Return privilege access requested for this access descriptor
|
protected TableDescriptor |
getTableDescriptor(DataDictionary dd) |
UUID |
getTableUUID()
Return table UUID for this access descriptor
|
int |
hashCode()
Return hash code for this instance
|
protected boolean |
hasPermissionOnTable(LanguageConnectionContext lcc,
Activation activation,
boolean forGrant,
ExecPreparedStatement ps)
Check if current session has permission on the table (current user,
PUBLIC or role) and, if applicable, register a dependency of ps on the
current role.
|
protected boolean |
oneAuthHasPermissionOnTable(DataDictionary dd,
java.lang.String authorizationId,
boolean forGrant) |
java.lang.String |
toString() |
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
UUID tableUUID
int privType
public StatementTablePermission(UUID tableUUID, int privType)
tableUUID
- UUID of the tableprivType
- Access privilege requestedpublic int getPrivType()
public UUID getTableUUID()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Another instance of StatementPermissionpublic int hashCode()
hashCode
in class java.lang.Object
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)
protected TableDescriptor getTableDescriptor(DataDictionary dd) throws StandardException
StandardException
protected boolean hasPermissionOnTable(LanguageConnectionContext lcc, Activation activation, boolean forGrant, ExecPreparedStatement ps) throws StandardException
lcc
- the current language connection contextactivation
- the activation of psforGrant
- true if FOR GRANT is requiredps
- the prepared statement for which we are checking necessary
privilegesStandardException
protected boolean oneAuthHasPermissionOnTable(DataDictionary dd, java.lang.String authorizationId, boolean forGrant) throws StandardException
StandardException
public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
StatementPermission
getPermissionDescriptor
in class StatementPermission
authid
- AuthorizationIddd
- DataDictionaryStandardException
StatementPermission.getPermissionDescriptor(java.lang.String, org.apache.derby.iapi.sql.dictionary.DataDictionary)
public 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.