|
|||||||||
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
org.apache.derby.iapi.sql.dictionary.StatementTablePermission
public class StatementTablePermission
This class describes a table permission required by a statement.
Field Summary | |
---|---|
(package private) int |
privType
|
(package private) UUID |
tableUUID
|
Constructor Summary | |
---|---|
StatementTablePermission(UUID tableUUID,
int privType)
Constructor for StatementTablePermission. |
Method Summary | |
---|---|
void |
check(LanguageConnectionContext lcc,
java.lang.String authorizationId,
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,
java.lang.String authorizationId,
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()
|
Methods inherited from class org.apache.derby.iapi.sql.dictionary.StatementPermission |
---|
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
UUID tableUUID
int privType
Constructor Detail |
---|
public StatementTablePermission(UUID tableUUID, int privType)
tableUUID
- UUID of the tableprivType
- Access privilege requestedMethod Detail |
---|
public int getPrivType()
public UUID getTableUUID()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Another instance of StatementPermission
public int hashCode()
hashCode
in class java.lang.Object
public void check(LanguageConnectionContext lcc, java.lang.String authorizationId, boolean forGrant, Activation activation) throws StandardException
check
in class StatementPermission
lcc
- LanguageConnectionContextauthorizationId
- AuthorizationIdactivation
- activation for statement needing check
StandardException
- if the permission has not been grantedStatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, java.lang.String, boolean, org.apache.derby.iapi.sql.Activation)
protected TableDescriptor getTableDescriptor(DataDictionary dd) throws StandardException
StandardException
protected boolean hasPermissionOnTable(LanguageConnectionContext lcc, Activation activation, java.lang.String authorizationId, boolean forGrant, ExecPreparedStatement ps) throws StandardException
lcc
- the current language connection contextactivation
- the activation of psauthorizationId
- the id of the current userforGrant
- true if FOR GRANT is requiredps
- the prepared statement for which we are checking necessary
privileges
StandardException
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
- DataDictionary
StandardException
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
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |