VERSION
version 3.4.0.0SYNOPSIS
use CipUX::RBAC::Simple;
DESCRIPTION
Provides functions for Role Based Access Control.ABSTRACT
The CipUX RBAC Simple class provides services to CipUX XML-RPC (CipUX::RPC) server.CONFIGURATION AND ENVIRONMENT
Not needed.DEPENDENCIES
Carp CipUX CipUX::Task Class::Std Data::Dumper English Graph Graph::Directed Log::Log4perl Readonly version
SUBROUTINES/METHODS
The following functions will be exported by CipUX::RBAC::Simple.DEMOLISH
destructoraccess_to_rpc_intern( { user=>$user, role=>$role } )
Return 1 on access 0 otherwise.access_to_task( { user=>$user, task=>$task } )
Return 1 on access 0 otherwise.access_to_cat_module( { user=>$user, cat_module=>$cat_module } )
Return 1 on access 0 otherwise.query( $task, $attr, $object )
Queries the storage layer and returns a Perl list as the answer from the task command.flush
Flush the cat_module, rpc_intern, task cache. Returns 1 on success 0 if flushing of one cache fails.cat_module_cache_size
Returns number of cache entries.rpc_intern_cache_size
Returns number of cache entries.task_cache_size
Returns number of cache entries.DIAGNOSTICS
Do not have specific messages. It uses perr() from CipUX. See Perl Module CipUX for more information about perr().perr():
access_to_rpc_intern: user, roleaccess_to_task: user, task
access_to_cat_module: user, cat_module
INCOMPATIBILITIES
Not known.BUGS AND LIMITATIONS
No bugs have been reported.AUTHOR
Christian Kuelker <[email protected]>LICENSE AND COPYRIGHT
Copyright (C) 2009 by Christian KuelkerThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.