party::update (public)
party::update -party_id party_id [ -email email ] [ -url url ]
Defined in packages/acs-tcl/tcl/community-core-procs.tcl
Update information about a party.
- Switches:
- -party_id (required)
- The ID of the party to edit
- -email (optional)
- The new email for the party
- -url (optional)
- The new URL for the party
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- auth_authentication_implementations, party_procs_test
Source code: set cols [list] foreach var { email url } { if { [info exists $var] } { lappend cols "$var = :$var" } } if {[info exists email]} { set email [string tolower $email] db_dml object_title_update {} } db_dml party_update {} party::flush_cache -party_id $party_idGeneric XQL file: <fullquery name="party::update.party_update"> <querytext> update parties set [join $cols ", "] where party_id = :party_id </querytext> </fullquery> <fullquery name="party::update.object_title_update"> <querytext> update acs_objects set title = :email where object_id = :party_id and object_type = 'party' </querytext> </fullquery>packages/acs-tcl/tcl/community-core-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/community-core-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/community-core-procs-oracle.xql