The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Solstice::Factory::Person

SYNOPSIS

my $person_factory = Solstice::Factory::Person->new();

my $person = $person_factory->createById($person_id);

my $person_list = $person_factory->createByIds(\@people_ids);

# This method has the potential to create new entries in the data store. my $person_list = $person_factory->createByLogins(['pmichaud', 'mcrawfor@washington.edu', 'jlaney@u.washington.edu']);

my $person = $person_factory->createLoggedInUser();

DESCRIPTION

Thiss object has the ability to create people. This turns out to be rather useful, as a given person could have for it's package any number of possible classes.

In addition to keeping programmers out of the sausage factory of person creation, this also allows you to create a large list of people very quickly.

Export

None by default.

Methods

createByIDs(\@list)
createByLogin($login_name)

Returns a Person object. If they don't already exist, they will be created.

getByLogin($login_name)

Returns a person object for the login name, if it already exists in our database.

createByLogin(\@login_names)
getAllLoginNamesByDate(\%params)

Returns a list of Person objects, one for each member of the login realm.

AUTHOR

Educational Technology Development Group <catalyst@u.washington.edu>

VERSION

$Revision: 597 $

SEE ALSO

Solstice::List.

COPYRIGHT

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.