Catalyst-Authentication-Store-DBIx-Class
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Store/DBIx/Class/User.pm view on Meta::CPAN
=head2 supported_features
Indicates the features supported by this class. These are currently Roles and Session.
=head2 roles
Returns an array of roles associated with this user, if roles are configured for this user class.
=head2 for_session
Returns a serialized user for storage in the session.
=head2 from_session
Revives a serialized user from storage in the session.
=head2 get ( $fieldname )
Returns the value of $fieldname for the user in question. Roughly translates to a call to
the DBIx::Class::Row's get_column( $fieldname ) routine.
=head2 get_object
Retrieves the DBIx::Class object that corresponds to this user
=head2 obj (method)
Synonym for get_object
=head2 auto_create
This is called when the auto_create_user option is turned on in
Catalyst::Plugin::Authentication and a user matching the authinfo provided is not found.
By default, this will call the C<auto_create()> method of the resultset associated
with this object. It is up to you to implement that method.
=head2 auto_update
This is called when the auto_update_user option is turned on in
Catalyst::Plugin::Authentication. Note that by default the DBIx::Class store
uses every field in the authinfo hash to match the user. This means any
information you provide with the intent to update must be ignored during the
user search process. Otherwise the information will most likely cause the user
record to not be found. To ignore fields in the search process, you
have to add the fields you wish to update to the 'ignore_fields_in_find'
authinfo element. Alternately, you can use one of the advanced row retrieval
methods (searchargs or resultset).
By default, auto_update will call the C<auto_update()> method of the
DBIx::Class::Row object associated with the user. It is up to you to implement
that method (probably in your schema file)
=head2 AUTOLOAD
Delegates method calls to the underlying user row.
=head2 can
Delegates handling of the C<< can >> method to the underlying user row.
=head1 BUGS AND LIMITATIONS
None known currently, please email the author if you find any.
=head1 AUTHOR
Jason Kuri (jayk@cpan.org)
=head1 CONTRIBUTORS
Matt S Trout (mst) <mst@shadowcat.co.uk>
(fixes wrt can/AUTOLOAD sponsored by L<http://reask.com/>)
=head1 LICENSE
Copyright (c) 2007-2010 the aforementioned authors. All rights
reserved. This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
=cut
( run in 2.618 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )