The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ETLp::Audit::Browser::Model::Job - Model Class for interacting with Runtime Process Audit Records

SYNOPSIS

    use ETLp::Audit::Browser::Model::Job;
    
    my $model = ETLp::Audit::Browser::Model::Job->new();
    my $jobs = $model->get_jobs(page => 3);
    

METHODS

get_jobs

Returns a resultset on the etlpp_job table. It will a page at a time, and is ordered by date_updated descending

Parameters

All of the following parameters are optional:

    * page. Integer. The page you wish to return. Defaults to one
    * section_name. The section the job belongs to
    * config_id. The configuration file that the section belongs to
    * status_id. The status to filter the results by
    * minimum_date. The earliest date that the job ran
    * maximum_date. The latest data that the job ran
    

Returns

    * A DBIx::Class resultset
    

get_config_list

Return a list of all configuration files

Parameters

    * section_name. Optional. Will filter the configuration file to those
      that have the section name    
    

Returns

    * DBIx::Class resultset
    

get_section_list

Get an alphabetical list of all sections.

Parameters

    * config_id. Optional. The requests\ will filter on config_id if one
      is supplied

Returns

    * DBIx::Class resultset
    

get_config_section_options

Given a config id, construct an HTML option list comprisng of sections that belong to the config

Parameters

    * A config_id. 
    

Returns

    * A list of all sections that belong to the config_id as a string of
      HTML <option> tags
    

get_section_config_options

Given a section, construct an HTML option list comprisng of sections that belong to the config

Parameters

    * A section name. 
    

Returns

    * A list of all configurations that have a section with the supplied
      name as a string consisting of HTML <option> tages

LICENSE AND COPYRIGHT

Copyright 2010 Redbone Systems Ltd

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

The terms are in the LICENSE file that accompanies this application