Bric::Biz::Person

Name

Bric::Biz::Person - Interface to Bricolage Person Objects

Synopsis

use Bric::Biz::Person;
# Constructors.
my $p = Bric::Biz::Person->new($init);
my $p = Bric::Biz::Person->lookup({ id => $id });
my @p = Bric::Biz::Person->list($params);

# Class Methods.
my @pids = Bric::Biz::Person->list_ids($params);
my $methds = Bric::Biz::Person->my_meths;

# Instance Methods.
my $id = $p->get_id;
my $lname = $p->get_lname;
$p = $p->set_lname($lname);
my $fname = $p->get_fname;
$p = $p->set_fname($fname);
my $mname = $p->get_mname;
$p = $p->set_mname($mname);
my $prefix = $p->get_prefix;
$p = $p->set_prefix($prefix);
my $suffix = $p->get_suffix;
$p = $p->set_suffix($suffix);
my $name = $p->format_name($format);

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

my @contacts = $p->get_contacts;
my $contact = $p->new_contact;
$p->add_new_contacts(@contacts);
$p = $p->del_contacts;

my @gids = $p->get_grp_ids;
my @groups = $p->get_grps;

my @oids = $p->get_org_ids;
my @orgs = $p->get_orgs;

$p = $p->save;

Description

This Class provides the basic interface to all people in Bricolage. A Bric::Biz::Person object may be thought of as a person who plays any kind of role in the application. A person may be a user, a writer, a producer, an editor, or act in any number of interactive and non-interactive roles. Only those people who are added to the Bric::Biz::Person::User subclass, however, may actually interact with the application.

Bric::Biz::Person objects can do little other than be associated with organizations or store contact information unless they are associated with groups. The interface for managing groups of Bric::Biz::Person objects is Bric::Util::Grp::Person. Attributes on persons will be associated with Bric::Biz::Person objects by reference to their membership in certain groups. The Bric::Util::Grp::Person class documents how these groups may be created, associated with other objects (e.g., associate members of group "Writers" with Bric::Biz::Asset::Business::Story objects), and attributes assigned. If a Bric::Biz::Person object is a member of a Bric::Util::Grp::Person group that defines attributes for its individual members, those attributes can be accessed from the Bric::Biz::Person object.

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