
Angerwhale::Model::UserStore - Manages Blog users.

Keeps track of the blog's users.
my $pgp_id = "cafebabe";
my $user = $c->model('UserStore')->get_user_by_nice_id($pgp_id);
print "$pgp_id is ". $user->fullname;
See also Angerwhale::User. Note that users are cached; they are refreshed from the keyserver according to the config's update_interval in seconds. Defaults to one hour.
If a user exists, but a keyserver can't be contacted, the old data will still be used.

The keyserver to fetch PGP keys from. Defaults to subkeys.pgp.net, since other keyservers can't manage to properly store and retieve the author's key.
Try to update user info from keyserver after this many seconds. Defaults to 3600, one hour.

Called by Catalyst to create and initialize userstore.
Creates a new user in the user store (by the OpenPGP keyid "cafebabe" [nice] or the Crypt::OpenPGP representation of that number [real]). Returns the Angerwhale::User on success, exception on failure.
Retrieves the user, creating it if necessary.
Refresh the user's details from the keyserver
Write the user's data to disk, so that attributes can be changed and so that the blog will work if the keyserver goes offline.
Returns the time of the most recent refresh of all users.
Returns a list of all the users (Angerwhale::Userss) the system knows about. The users are refreshed if they've expired.

Angerwhale::Model::UserStore - Catalyst Model

See Angerwhale

Catalyst Model.

Jonathan Rockway

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.