Net::FluidDB::Policy - FluidDB policies
use Net::FluidDB::Policy; # get $policy = Net::FluidDB::Policy->get($fdb, $user_or_username, $category, $action); $policy->policy; $policy->exceptions; # update $policy->policy('closed'); $policy->exceptions($exceptions); $policy->update;
Net::FluidDB::Policy models FluidDB policies.
Net::FluidDB::Policy
Net::FluidDB::Policy is a subclass of Net::FluidDB::ACL.
Retrieves the policy on action $action, for the category $category of user $user_or_username.
$action
$category
$user_or_username
Net::FluidDB provides a convenience shortcut for this method.
Net::FluidDB
These are convenience methods, there's one for each defined pair action/category:
get_create_policy_for_namespaces ... get_update_policy_for_tags ... get_read_policy_for_tag_values ...
Updates the policy in FluidDB.
Returns the username of the user the policy concerns to.
Returns the category the policy is about.
Returns the action the policy is about.
http://doc.fluidinfo.com/fluidDB/permissions.html#policies-and-their-exceptions
http://api.fluidinfo.com/fluidDB/api/*/policies/*
Xavier Noria (FXN), <fxn@cpan.org>
Copyright (C) 2009-2010 Xavier Noria
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Net::FluidDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FluidDB
CPAN shell
perl -MCPAN -e shell install Net::FluidDB
For more information on module installation, please visit the detailed CPAN module installation guide.