NAME

Net::Fluidinfo::Permission - Fluidinfo permissions

SYNOPSIS

use Net::Fluidinfo::Permission;

# get
$permission = Net::Fluidinfo::Permission->get($fin, $category, $path, $action);
$permission->policy;
$permission->exceptions;

# update
$permission->policy('closed');
$permission->exceptions($exceptions);
$permission->update;

DESCRIPTION

Net::Fluidinfo::Permission models Fluidinfo permissions.

USAGE

Class methods

Net::Fluidinfo::Permission->get($fin, $category, $path_or_has_path, $action)

Retrieves the permission on action $action, for the category $category and path extracted from $path, which can be either a string with the very path, a namespace, or a tag.

Net::Fluidinfo provides a convenience shortcut for this method.

Instance Methods

$tag->update

Updates the permission in Fluidinfo.

$tag->category

Returns the category the permission is about.

$tag->path

Returns the path of the category the permission is about.

$tag->action

Returns the action the permission is about.

FLUIDINFO DOCUMENTATION

Fluidinfo high-level description

http://doc.fluidinfo.com/fluidDB/permissions.html

Fluidinfo API documentation

http://doc.fluidinfo.com/fluidDB/api/http.html#authentication-and-authorization

Fluidinfo API specification

http://api.fluidinfo.com/fluidDB/api/*/permissions/*

AUTHOR

Xavier Noria (FXN), <fxn@cpan.org>

COPYRIGHT AND LICENSE

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.