authorize(int operation) Verify the connected user is authorized to perform the requested
operation.
This variation should only be used with operations that do not use tables
or routines.
public void
authorize(Activation activation, int operation) Verify the connected user is authorized to perform the requested
operation.
isReadOnlyConnection() Get the readOnly status for this authorizer's connection.
public void
refresh() Refresh this authorizer to reflect a change in the database
permissions.
public void
setReadOnlyConnection(boolean on, boolean authorize) Set the readOnly status for this authorizer's connection.
Parameters: on - true means set the connection to read only mode,false means set the connection to read wrte mode. Parameters: authorize - true means to verify the caller has authorityto set the connection and false means do not check.
Verify the connected user is authorized to perform the requested
operation.
This variation should only be used with operations that do not use tables
or routines. If the operation involves tables or routines then use the
variation of the authorize method that takes an Activation parameter. The
activation holds the table, column, and routine lists.
Parameters: operation - the enumeration code for the requsted operation. exception: StandardException - Thrown if the operation is not allowed
Verify the connected user is authorized to perform the requested
operation.
Parameters: activation - holds the list of tables, columns, and routines used. Parameters: operation - the enumeration code for the requsted operation. exception: StandardException - Thrown if the operation is not allowed
Refresh this authorizer to reflect a change in the database
permissions.
exception: AuthorizerSessionException - Connect permission gone. exception: StandardException - Oops.
setReadOnlyConnection
public void setReadOnlyConnection(boolean on, boolean authorize) throws StandardException(Code)
Set the readOnly status for this authorizer's connection.
Parameters: on - true means set the connection to read only mode,false means set the connection to read wrte mode. Parameters: authorize - true means to verify the caller has authorityto set the connection and false means do not check. exception: StandardException - Oops not allowed.