# BIinfo.def: Collects Oracle Business Intelligence Repositories
# $Id: BIinfo.def,v 1.1 2009/04/30 12:55:13 mschenke Exp $
# ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/BIinfo.def,v 1.1 2009/04/30 12:55:13 mschenke Exp $
#
# Change History
# 20090305  KRA  Initial version.

=head1 NAME

BIinfo - Collects Oracle Business Intelligence Repositories Information

=head1 DESCRIPTION

This module collects Oracle Business Intelligence Repositories information.

=cut

# Initialization
var ($lvl,@fil) = @arg

=head2 repository - Repositories

Gathers repositories.

=cut

debug ' Inside BI module, getting repositories'
report repository
prefix
{write '---+ Collected Repositories'
 write '|*Repository Name*| *Size*|*Last Modification*|'
}
suspend report
loop $fil (@fil)
{data concat('rep_',basename($fil))
 if writeData($fil)
 {var $rpt = getFile('.')
  resume report
  write '|[[',$rpt,'][_blank][',encode($fil),']]| ',getSize($fil),'|',\
        getLastModify($fil,'%d-%b-%Y&nbsp;%H:%M:%S'),' |'
  suspend report
 }
}
resume report
if isCreated(true)
{write '   * Links point to files that have been collected in their original \
             format. Opening them directly in your browser can present \
             security risks. To prevent them, access the file outside the \
             browser or use the link to save them and use an adequate viewer.'
 toc $lvl,':[[',getFile(),'][rda_report][Repositories]]'
}

=begin credits

=over 10

=item RDA 4.11: Ravindrasinh Parmar.

=item RDA 4.15: John Whitaker.

=item RDA 4.16: Greg Cook, Andrew Salt.

=back

=end credits

=head1 COPYRIGHT NOTICE

Copyright (c) 2002-2009, Oracle. All rights reserved.

=head1 TRADEMARK NOTICE

Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle
Corporation and/or its affiliates. Other names may be trademarks of their
respective owners.

=cut
