Singleton object that handles mapping of users to wikinames and
vice versa, and user authentication checking.
Construct the user management object
Complete processing after the client's HTTP request has been responded
- breaking circular references to allow garbage collection in persistent environments
ObjectMethod findUser ($name[,$wikiname][,$nocreate]) -> $userObject
$name - login name or wiki name
$wikiname - optional, wikiname for created user
$nocreate - optional, disable creation of user object for user not found
Find the user object corresponding to
, which may be either a
login name or a wiki name. If
is found (either in the list
of login names or the list of wiki names) the corresponding
user object is returned. In this case
If they are not found, and
is true, then return undef.
is false, then a user object is returned even if
the user is not known.
is false, and no
is given, then the
is used for both login name and wiki name.
If nocreate is off, then a default user will be created with their wikiname
set the same as their login name. This user/wiki name pair can be overridden
by a later createUser call when the correct wikiname is known, if necessary.
ObjectMethod findUserByEmail ($email) -> \@users
$email - email address to look up
Return a list of user objects for the users that have this email registered
with the password manager.
ObjectMethod createUser ($login,$wikiname) -> $userobject
Create a user, and insert them in the maps (overwriting any current entry).
Use this instead of findUser when you want to be sure you are not going to
pick up any default user created by findUser. All parameters are required.
ObjectMethod addUserToMapping ($user) -> $topicName
Add a user to the persistant mapping that maps from usernames to wikinames