application_group::delete (public)

 application_group::delete -group_id group_id

Defined in packages/acs-subsite/tcl/application-group-procs.tcl

Delete the given application group and all relational segments and constraints dependent on it (handled by the PL/[pg]SQL API

Switches:
-group_id
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_application_group_new acs_subsite_application_group_new (test acs-subsite) application_group::delete application_group::delete test_acs_subsite_application_group_new->application_group::delete db_dml db_dml (public) application_group::delete->db_dml db_exec_plsql db_exec_plsql (public) application_group::delete->db_exec_plsql db_flush_cache db_flush_cache (public) application_group::delete->db_flush_cache subsite::default::delete_app_group subsite::default::delete_app_group (public) subsite::default::delete_app_group->application_group::delete

Testcases:
acs_subsite_application_group_new
Source code:
    # LARS HACK:
    # Delete permissions on:
    # - the application group
    # - any relational segment of this group
    # - any relation with this group
    # We really ought to have cascading deletes on acs_permissions.grantee_id (and object_id)
    db_dml delete_perms {
        delete from acs_permissions
        where  grantee_id = :group_id
        or     grantee_id in (select segment_id from rel_segments where group_id = :group_id)
        or     grantee_id in (select rel_id from acs_rels where object_id_one = :group_id or object_id_two = :group_id)
    }

    db_exec_plsql delete {}

    db_flush_cache -cache_key_pattern application_group_*
XQL Not present:
Generic
PostgreSQL XQL file:
<fullquery name="application_group::delete.delete">
    <querytext>

		select application_group__delete (
	            :group_id
		)
	    
      </querytext>
</fullquery>
packages/acs-subsite/tcl/application-group-procs-postgresql.xql

Oracle XQL file:
<fullquery name="application_group::delete.delete">
    <querytext>
      
		begin
		application_group.del (
	                group_id      => :group_id
		);
		end;
	    
      </querytext>
</fullquery>
packages/acs-subsite/tcl/application-group-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: