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.
update_interval
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.
subkeys.pgp.net
Try to update user info from keyserver after this many seconds. Defaults to 3600, one hour.
keyserver
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.
Angerwhale::User
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::Users
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.
To install Angerwhale, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Angerwhale
CPAN shell
perl -MCPAN -e shell install Angerwhale
For more information on module installation, please visit the detailed CPAN module installation guide.