res://addons/w4gd/w4rm/w4rm_security.gd:W4RMSecurityPolicyBuilder
Inherits: RefCounted
A utility class for creating a security policy for a database table.
Properties
Variant |
Methods
void |
can_delete ( ) |
void |
can_delete_if ( String p_sql_expression ) |
void |
can_do_anything ( ) |
void |
can_do_anything_if ( String p_sql_expression ) |
void |
can_insert ( ) |
void |
can_insert_if ( String p_sql_expression ) |
void |
can_select ( ) |
void |
can_select_if ( String p_sql_expression ) |
void |
can_update ( ) |
void |
can_update_if ( String p_sql_expression ) |
void |
owner_can_delete ( String p_owner_field ) |
void |
owner_can_delete_if ( String p_owner_field, String p_sql_expression ) |
void |
owner_can_do_anything ( String p_owner_field ) |
void |
owner_can_do_anything_if ( String p_owner_field, String p_sql_expression ) |
void |
owner_can_insert ( String p_owner_field ) |
void |
owner_can_insert_if ( String p_owner_field, String p_sql_expression ) |
void |
owner_can_select ( String p_owner_field ) |
void |
owner_can_select_if ( String p_owner_field, String p_sql_expression ) |
void |
owner_can_update ( String p_owner_field ) |
void |
owner_can_update_if ( String p_owner_field, String p_sql_expression ) |
String |
sql_identifier ( String p_identifier ) |
Property Descriptions
Variant roles
There is currently no description for this property.
Method Descriptions
void can_delete ( )
Creates a security policy that allows deleting rows from the table.
void can_delete_if ( String p_sql_expression )
Creates a security policy that allows deleting rows in the table if the SQL expression evaluates to true.
void can_do_anything ( )
Creates a security policy that allows selecting, inserting, updating or deleting rows in the table.
void can_do_anything_if ( String p_sql_expression )
Creates a security policy that allows selecting, inserting, updating or deleting rows in the table if the SQL expression evaluates to true.
void can_insert ( )
Creates a security policy that allows inserting rows into the table.
void can_insert_if ( String p_sql_expression )
Creates a security policy that allows inserting rows into the table if the SQL expression evaluates to true.
void can_select ( )
Creates a security policy that allows selecting rows from the table.
void can_select_if ( String p_sql_expression )
Creates a security policy that allows selecting rows from the table if the SQL expression evaluates to true.
void can_update ( )
Creates a security policy that allows updating rows in the table.
void can_update_if ( String p_sql_expression )
Creates a security policy that allows updating rows in the table if the SQL expression evaluates to true.
void owner_can_delete ( String p_owner_field )
Creates a security policy that allows deleting rows from the table, if the current user is the owner (as identified by the given field on the table).
void owner_can_delete_if ( String p_owner_field, String p_sql_expression )
Creates a security policy that allows deleting rows from the table, if the current user is the owner (as identified by the given field on the table), and the given SQL expression evaluates to true.
void owner_can_do_anything ( String p_owner_field )
Creates a security policy that allows selecting, inserting, updating or deleting rows in the table, if the current user is the owner (as identified by the given field on the table).
void owner_can_do_anything_if ( String p_owner_field, String p_sql_expression )
Creates a security policy that allows selecting, inserting, updating or deleting rows in the table, if the current user is the owner (as identified by the given field on the table), and the given SQL expression evaluates to true.
void owner_can_insert ( String p_owner_field )
Creates a security policy that allows inserting rows into the table, if the current user is the owner (as identified by the given field on the table).
void owner_can_insert_if ( String p_owner_field, String p_sql_expression )
Creates a security policy that allows inserting rows into the table, if the current user is the owner (as identified by the given field on the table), and the given SQL expression evaluates to true.
void owner_can_select ( String p_owner_field )
Creates a security policy that allows selecting rows from the table, if the current user is the owner (as identified by the given field on the table).
void owner_can_select_if ( String p_owner_field, String p_sql_expression )
Creates a security policy that allows selecting rows from the table, if the current user is the owner (as identified by the given field on the table), and the given SQL expression evaluates to true.
void owner_can_update ( String p_owner_field )
Creates a security policy that allows updating rows in the table, if the current user is the owner (as identified by the given field on the table).
void owner_can_update_if ( String p_owner_field, String p_sql_expression )
Creates a security policy that allows updating rows in the table, if the current user is the owner (as identified by the given field on the table), and the given SQL expression evaluates to true.
String sql_identifier ( String p_identifier )
Escapes the given string as a SQL identifier.