Bric::Biz::Person::User

NAME

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

VERSION

$LastChangedRevision$

DATE

$LastChangedDate$

SYNOPSIS

use Bric::Biz::Person::User;

# Constructors.
my $u = Bric::Biz::Person::User->new;
my $u = Bric::Biz::Person::User->lookup({ id => $id })
my $u = Bric::Biz::Person::User->lookup({ login => $login })
my @users = Bric::Biz::Person::User->list($search_href)

# Class Methods.
my @uids = Bric::Biz::Person::User->list_ids($search_href)

# Instance Methods - in addition to those inherited from Bric::Biz::Person.
my $login = $u->get_login;
$u = $login->set_login($login);
$u = $u->set_password($password);
$u = $u->chk_password($password);

$u = $u->can_do($obj, READ);
$u = $u->no_can_do($obj, CREATE);

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

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

$u = $u->save;

DESCRIPTION

This Class provides the basic interface to all Bricolage and users. Bric::Biz::Person::User objects are special Bric::Biz::Person objects that represent members of the Bric::Util::Group::Person group "User". Only members of this group can actually use the application. All other Bric::Biz::Person objects cannot use Bricolage, although they can be associated with Bricolage objects (e.g., writers can be associated with stories).

Bric::Biz::Person::User extends the Bric::Biz::Person interface to allow the setting and checking of passwords, the setting of login names, and the activation or deactivation of the person as a user. It also offers methods by which to set permissions for individual users, although these permissions really should be assigned via membership in other groups. (For example, put editors in an editors group, and allow members of that group to edit stories. See Bric::Util::Group::Person for more information.)

INTERFACE

Constructors

Destructors

Public Class Methods

Public Instance Methods

Bric::Biz::Person::User inherits from Bric::Biz::Person and makes available all Bric::Biz::Person instance methods. See the Bric::Biz::Person documentation for a description of those methods. Additional methods available for Bric::Biz::Person::User objects only are documented here.

PRIVATE

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NOTES

NONE.

AUTHOR

David Wheeler

SEE ALSO

Bric, Bric::Biz::Person