#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
#------------------------------------------------------------
package Support::LoadHistory::Command::List;
use strict;
use warnings;

use lib '/app/tools/support/lib';
use base 'Support::Command';
use Support::LoadHistory::List;

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;

use lib '/app/tools/support/lib';

sub cmd  { return 'list' }
sub area { return 'load' }

use constant kTemplate => "/app/tools/support/templates/load_history/list.xsl";

sub execute {
    my ($self) = @_;

    my $response = $self->SUPER::execute();
    return $response if $response;

    # Get the list of reports we have to display
    #
    $self->{xml}{LoadHistory} = Support::LoadHistory::List->new();

    # Just shows the starting page.
    #

    $response = RSApache::Response::XSLT->new( $self->{xml}, kTemplate );
    return $response;
}

1;
