#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package Support::JobQueue::RunRuleForm;

use strict;
use warnings;
use Carp;

use lib '/app/tools/common/lib';
use Common::Assert;

use lib '/app/tools/job/lib';
use Job::JobRuleSet;

use Common::FormObject;
use base 'Common::FormObject';

sub _init {
    my ( $self, %args ) = @_;

    $self->SUPER::_init(%args);

    my $hostname = $args{hostname};

    $self->{JobRules} = Job::JobRuleSet->new( hostname => $hostname );

    return $self;
}

sub validate {
    my ( $self, %args ) = @_;
    my $valid = $self->SUPER::validate(%args);

    return $valid;
}

sub save {
    my $self = shift;

    $self->{JobRules}->save();
}

1;
