| Net-FluidDB documentation | view source | Contained in the Net-FluidDB distribution. |
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 is a subclass of Net::FluidDB::ACL.
Retrieves the policy on action $action, for the category $category of
user $user_or_username.
Net::FluidDB provides a convenience shortcut for this method.
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
Xavier Noria (FXN), <fxn@cpan.org>
Copyright (C) 2009-2011 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.
| Net-FluidDB documentation | view source | Contained in the Net-FluidDB distribution. |