rss_gen_report_dir (private)

 rss_gen_report_dir [ -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 directory path, relative to the pageroot, for the rss subscription with subscr_id or impl_name + summary_context_id provided. If the assert flag is set, create the directory.

Switches:
-summary_context_id (optional)
-impl_name (optional)
-subscr_id (optional)
-assert (optional, boolean)

Partial Call Graph (max 5 caller/called nodes):
%3 rss_gen_report_file rss_gen_report_file (public) rss_gen_report_dir rss_gen_report_dir rss_gen_report_file->rss_gen_report_dir rss_support::del_subscription rss_support::del_subscription (public) rss_support::del_subscription->rss_gen_report_dir acs_root_dir acs_root_dir (public) rss_gen_report_dir->acs_root_dir db_1row db_1row (public) rss_gen_report_dir->db_1row parameter::get parameter::get (public) rss_gen_report_dir->parameter::get rss_package_id rss_package_id (public) rss_gen_report_dir->rss_package_id

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_dir needs either subscr_id or impl_id+summary_context_id"
        } else {
            db_1row subscr_context_and_impl {}
        }
    }

    set report_dir [acs_root_dir]/[parameter::get  -package_id [rss_package_id]  -parameter RssGenOutputDirectory  -default rss]/$impl_name/$summary_context_id

    if {$assert_p} {
        file mkdir $report_dir
    }

    return $report_dir
Generic XQL file:
<fullquery name="rss_gen_report_dir.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: