|
Apache::App::Mercury::UserManager - Sample UserManager class |
Apache::App::Mercury::UserManager - Sample UserManager class
This is a sample class which illustrates how Apache::App::Mercury uses a user manager class to interact with your application's users. You should implement your own UserManager class with the methods described below to fit your application. Set the name of your UserManager class in the Apache::App::Mercury::Config::USER_MANAGER_CLASS variable.
userprofile($param)userprofile() method to have access to that information.
Currently, userprofile() must minimally support the
following values for $param (return the appropriate user
information when called with that $param):
user Apache::App::Mercury user name user_desc long user description (e.g. "Fname Lname") e_mail user's e-mail address fname user's first name lname user's last name
Your userprofile() method can support more; which you can
then make use of in a custom Display class, for example.
You can also opt to make your userprofile() method read-write,
and then make use of it elsewhere in your application.
The only requirements of Apache::App::Mercury is it should
return valid values for the above params for the currently
logged-in user.
get_userinfo(@users)
{ user => 'userid',
fname => 'First name of user',
mname => 'Middle name or initial of user', #optional
lname => 'Last name of user',
e_mail => 'email@forward.to.addr' }
mail_trans_filter([$trans_box])Expects the calling object to know what user is logged in,
and the mail_trans_filter() method to have access to that information.
auto_forward($level)"message" => "send the entire message", "notify" => "send a notification", "none" => "do not send anything"
Expects the calling object to know what user is logged in,
and the auto_forward() method to have access to that information.
Adi Fairbank <adi@adiraj.org>
Copyright (c) 2003 - Adi Fairbank
This software (Apache::App::Mercury and all related Perl modules under the Apache::App::Mercury namespace) is copyright Adi Fairbank.
July 19, 2003
|
Apache::App::Mercury::UserManager - Sample UserManager class |