rss_gen_report_file (public)

 rss_gen_report_file [ -summary_context_id summary_context_id ] \
    [ -impl_name impl_name ] [ -subscr_id subscr_id ] [ -assert ]

Defined in packages/rss-support/tcl/rss-generation-service-procs.tcl

Return a file path for the rss subscription with subscr_id or impl_name + summary_context_id provided. If the -assert flag is set, the parent directory is created if it doesn't exist

Switches:
-summary_context_id (optional)
-impl_name (optional)
-subscr_id (optional)
-assert (optional, boolean)
Returns:
a Unix file path.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/file-storage/www/admin/rss-subscr-del.tcl packages/file-storage/ www/admin/rss-subscr-del.tcl rss_gen_report_file rss_gen_report_file packages/file-storage/www/admin/rss-subscr-del.tcl->rss_gen_report_file packages/rss-support/www/delete-2.tcl packages/rss-support/ www/delete-2.tcl packages/rss-support/www/delete-2.tcl->rss_gen_report_file packages/rss-support/www/delete.tcl packages/rss-support/ www/delete.tcl packages/rss-support/www/delete.tcl->rss_gen_report_file rss_gen_report rss_gen_report (public) rss_gen_report->rss_gen_report_file db_1row db_1row (public) rss_gen_report_file->db_1row rss_gen_report_dir rss_gen_report_dir (private) rss_gen_report_file->rss_gen_report_dir

Testcases:
No testcase defined.
Source code:
    if {!([info exists summary_context_id] && [info exists impl_name])} {
        if {![info exists subscr_id]} {
            error "rss_gen_report_file needs either subscr_id or impl_id+summary_context_id"
        } else {
            db_1row subscr_context_and_impl {}
        }
    }

    set report_dir [rss_gen_report_dir  -summary_context_id $summary_context_id  -impl_name $impl_name  -assert=$assert_p]

    set report_file $report_dir/rss.xml

    return $report_file
Generic XQL file:
<fullquery name="rss_gen_report_file.subscr_context_and_impl">
    <querytext>
                select s.summary_context_id,
                       i.impl_name
                from rss_gen_subscrs s,
                     acs_sc_impls i
                where i.impl_id = s.impl_id
                  and s.subscr_id = :subscr_id
    </querytext>
</fullquery>
packages/rss-support/tcl/rss-generation-service-procs.xql

PostgreSQL XQL file:
packages/rss-support/tcl/rss-generation-service-procs-postgresql.xql

Oracle XQL file:
packages/rss-support/tcl/rss-generation-service-procs-oracle.xql

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