|
|||||||||
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
org.apache.derby.iapi.sql.dictionary.StatementColumnPermission
public class StatementColumnPermission
This class describes a column permission used (required) by a statement.
Field Summary | |
---|---|
private FormatableBitSet |
columns
|
Fields inherited from class org.apache.derby.iapi.sql.dictionary.StatementTablePermission |
---|
privType, tableUUID |
Constructor Summary | |
---|---|
StatementColumnPermission(UUID tableUUID,
int privType,
FormatableBitSet columns)
Constructor for StatementColumnPermission. |
Method Summary | |
---|---|
private FormatableBitSet |
addPermittedColumns(DataDictionary dd,
boolean forGrant,
java.lang.String authorizationId,
FormatableBitSet permittedColumns)
Add one user's set of permitted columns to a list of permitted columns. |
boolean |
allColumnsCoveredByUserOrPUBLIC(java.lang.String authid,
DataDictionary dd)
Returns false if the current role is necessary to cover the necessary permission(s). |
void |
check(LanguageConnectionContext lcc,
java.lang.String authorizationId,
boolean forGrant,
Activation activation)
|
boolean |
equals(java.lang.Object obj)
Method to check if another instance of column access descriptor matches this. |
FormatableBitSet |
getColumns()
Return list of columns that need access |
PermissionsDescriptor |
getPermissionDescriptor(java.lang.String authid,
DataDictionary dd)
Get the PermissionsDescriptor for the passed authorization id for this object. |
PermissionsDescriptor |
getPUBLIClevelColPermsDescriptor(java.lang.String authid,
DataDictionary dd)
This method gets called in execution phase after it is established that all the required privileges exist for the given sql. |
java.lang.String |
toString()
|
private FormatableBitSet |
tryRole(LanguageConnectionContext lcc,
DataDictionary dd,
boolean forGrant,
java.lang.String r)
Try to use the supplied role r to see what column privileges are we entitled to. |
Methods inherited from class org.apache.derby.iapi.sql.dictionary.StatementTablePermission |
---|
getPrivName, getPrivType, getTableDescriptor, getTableUUID, hashCode, hasPermissionOnTable, oneAuthHasPermissionOnTable |
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 |
---|
private FormatableBitSet columns
Constructor Detail |
---|
public StatementColumnPermission(UUID tableUUID, int privType, FormatableBitSet columns)
tableUUID
- UUID of the tableprivType
- Access privilege requestedcolumns
- List of columnsMethod Detail |
---|
public FormatableBitSet getColumns()
public boolean equals(java.lang.Object obj)
equals
in class StatementTablePermission
obj
- Another instance of StatementPermission
public void check(LanguageConnectionContext lcc, java.lang.String authorizationId, boolean forGrant, Activation activation) throws StandardException
check
in class StatementTablePermission
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)
private FormatableBitSet addPermittedColumns(DataDictionary dd, boolean forGrant, java.lang.String authorizationId, FormatableBitSet permittedColumns) throws StandardException
StandardException
public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
StatementPermission
getPermissionDescriptor
in class StatementTablePermission
authid
- AuthorizationIddd
- DataDictionary
StandardException
StatementPermission.getPermissionDescriptor(java.lang.String, org.apache.derby.iapi.sql.dictionary.DataDictionary)
public PermissionsDescriptor getPUBLIClevelColPermsDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
StandardException
public boolean allColumnsCoveredByUserOrPUBLIC(java.lang.String authid, DataDictionary dd) throws StandardException
authid
- authentication id of the current userdd
- data dictionary
StandardException
private FormatableBitSet tryRole(LanguageConnectionContext lcc, DataDictionary dd, boolean forGrant, java.lang.String r) throws StandardException
lcc
- language connection contextdd
- data dictionaryforGrant
- true of a GRANTable permission is soughtr
- the role to inspect to see if it can supply the required
privileges
return the set of columns on which we have privileges through this role
StandardException
public java.lang.String toString()
toString
in class StatementTablePermission
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |