CatalystX::Usul::Users::DBIC - Database user storage
Describes v0.16.$Rev: 1 $
use CatalystX::Usul::Users::DBIC; my $class = CatalystX::Usul::Users::DBIC; my $user = $class->new( $attr );
User storage model for relational databases. This model makes use of DBIx::Class. It inherits from CatalystX::Usul::Users and implements the required list of factory methods
Defines the following list of attributes
Required schema object which represents roles
Required schema object which represents users
Required schema object which represents the user / roles join table
A hash ref which maps the field names used by the user model onto the field names used by this data store
A hash ref which details the features supported by the DBIC user data store
Searches the user store for the supplied user name and if it exists sets the active column to true
Returns a DBIC user object for the specified user or throws an exception if the user does not exist
Calls update_password in CatalystX::Usul::Identity::Users with the authenticate flag set to false, thereby forcing the user to authenticate. Passes the supplied arguments through
update_password
Calls authenticate in CatalystX::Usul::Identity::Users. Returns true if the authentication succeeded, false otherwise
authenticate
Creates a new user object on the user model. Adds the user to the list of roles appropriate to the user profile
Deletes a user object from the user model
Returns undef as primary role ids are not supported by this storage backend
Returns a hash ref of fields for the request user
Returns an empty list as primary role ids are not supported by this storage backend
Returns true if the supplied user exists, false otherwise
Returns a list reference of users in the database
Calls update_password in CatalystX::Usul::Identity::Users with the authenticate flag set to true, which bypasses user authentication. Passes the supplied arguments through
Updates columns on the user object for the supplied user
Updates the users password in the database
Generate a report from the data in the user database
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.