Bric::Dist::ActionType

NAME

Bric::Dist::ActionType - Interface to types of actions supported by Bricolage distribution.

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

use Bric::Dist::ActionType;

# Constructors.
# Create a new object.
my $at = Bric::Dist::ActionType->new;
# Look up an existing object.
$at = Bric::Dist::ActionType->lookup({ id => 1 });
# Get a list of action type objects.
my @servers = Bric::Dist::ActionType->list({ description => 'File%' });

# Class methods.
# Get a list of object IDs.
my @st_ids = Bric::Dist::ActionType->list_ids({ description => 'File%' });
# Get an introspection hashref.
my $int = Bric::Dist::ActionType->my_meths;

# Instance Methods.
my $id = $at->get_id;
my $name = $at->get_name;
my $description = $at->get_description;
my @medias = $at->get_media_types;
my $medias = $at->get_medias_href;
print "AT is ", $at->is_active ? '' : 'not ', "active\n";

DESCRIPTION

This class defines types of actions that can be performed on resources. Types of actions include "Akamaize," "Gzip," "Put," "Delete," etc. All actions are created at development time by Bricolage developers and cannot be created or changed by users. Users can specify what types of actions apply to jobs executed for given server types by accessing the Bric::Dist::Action class. Use Bric::Dist::ActionType objects to help define Bric::Dist::Action objects.

INTERFACE

Constructors

Destructors

Public Class Methods

Public Instance Methods

PRIVATE

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NOTES

NONE.

AUTHOR

David Wheeler

SEE ALSO

Bric