| java.lang.Object org.apache.derby.impl.sql.execute.PrivilegeInfo
All known Subclasses: org.apache.derby.impl.sql.execute.RoutinePrivilegeInfo, org.apache.derby.impl.sql.execute.TablePrivilegeInfo,
PrivilegeInfo | abstract public class PrivilegeInfo (Code) | | |
Method Summary | |
protected void | addWarningIfPrivilegeNotRevoked(Activation activation, boolean grant, boolean privileges_revoked, String grantee) This method adds a warning if a revoke statement has not revoked
any privileges from a grantee. | protected void | checkOwnership(String user, TupleDescriptor objectDescriptor, SchemaDescriptor sd, DataDictionary dd) Determines whether a user is the owner of an object
(table, function, or procedure). | abstract public void | executeGrantRevoke(Activation activation, boolean grant, List grantees) |
addWarningIfPrivilegeNotRevoked | protected void addWarningIfPrivilegeNotRevoked(Activation activation, boolean grant, boolean privileges_revoked, String grantee)(Code) | | This method adds a warning if a revoke statement has not revoked
any privileges from a grantee.
Parameters: activation - Parameters: grant - true if grant, false if revoke Parameters: privileges_revoked - true, if at least one privilege has been revoked from a grantee, false otherwise Parameters: grantee - authorization id of the user |
checkOwnership | protected void checkOwnership(String user, TupleDescriptor objectDescriptor, SchemaDescriptor sd, DataDictionary dd) throws StandardException(Code) | | Determines whether a user is the owner of an object
(table, function, or procedure). Note that Database Owner can access
database objects without needing to be their owner
Parameters: user - authorizationId of current user Parameters: objectDescriptor - object being checked against Parameters: sd - SchemaDescriptor Parameters: dd - DataDictionary exception: StandardException - if user does not own the object |
executeGrantRevoke | abstract public void executeGrantRevoke(Activation activation, boolean grant, List grantees) throws StandardException(Code) | | This is the guts of the Execution-time logic for GRANT/REVOKE
Parameters: activation - Parameters: grant - true if grant, false if revoke Parameters: grantees - a list of authorization ids (strings) exception: StandardException - Thrown on failure |
|
|