Bric::Biz::Org

NAME

Bric::Biz::Org - Bricolage Interface to Organizations

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

# Constructors.
my $org = Bric::Biz::Org->new;
my $org = Bric::Biz::Org->lookup({ id => $id });
my @orgs = Bric::Biz::Org->list($search_href);

# Class Methods.
my @org_ids = Bric::Biz::Org->list_ids($search_href);

# Instance Methods.
my $id = $org->get_id;
my $name = $org->get_name($name);
$org = $org->set_name($name);
my $long_name = $org->get_long_name($long_name);
$org = $org->set_long_name($long_name);

$org = $org->activate;
$org = $org->deactivate;
$org = $org->is_active;

my $porg = $org->add_object($person);

my @addr = $org->get_addr;
my $addr = $org->new_addr;
$org = $org->del_addr;

$org->save;

DESCRIPTION

This class represents organizations in Bricolage. Organizations may be the companies for whom a person represented by a Bric::Biz::Person object works, or an organization that owns the rights to a given asset, or with whom a product is associated (this last use will be included in a future version).

The primary use for Bric::Biz::Org as of this writing, however, is to associate people (Bric::Biz::Person objects) with companies and their addresses. These associations are created by the Bric::Biz::Org add_object() method, and by the Bric::Biz::Org::Person subclass it returns. See Bric::Biz::Org::Person for its additions to the Bric::Biz::Org API.

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, Bric::Biz::Person