CatalystX::Usul::Roles::Simple - Role management file storage
Describes v0.17.$Rev: 1 $
use CatalystX::Usul::Roles::Simple; my $class = CatalystX::Usul::Roles::Simple; my $role_obj = $class->new( $attr );
Methods to manipulate user roles in the simple user store. This class implements the methods required by it's base class CatalystX::Usul::Roles
Defines the following list of attributes
filename
A string which defaults to roles-simple.json
path
A path to a file which contains the roles database
schema
A File::DataClass::Schema object
$role_obj->add_user_to_role( $role, $user );
Adds the specified user to the specified role
$role_obj->create( $role );
Creates a new role with the given name
$role_obj->delete( $role );
Deletes the specified role
$role_obj->remove_user_to_role( $role, $user );
Removes the specified user to the specified role
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.