Rafael Kitover > Catalyst-Plugin-Authorization-ACL > Catalyst::Plugin::Authorization::ACL::Engine

Download:
Catalyst-Plugin-Authorization-ACL-0.16.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.16   Source  

NAME ^

Catalyst::Plugin::Authorization::ACL::Engine - The backend that computes ACL checks for Catalyst::Plugin::Authorization::ACL.

SYNOPSIS ^

        # internal

METHODS ^

new $app

Create a new rule engine for $app

add_allow $cond
add_deny $cond

fudge $cond, make cond into a rule, and add_rule

add_rule $path, $rule

Add rule to all actions under $path

append_rule_to_action $action, $index, $rule, $cxt

Append $rule to $action in slot $index, and store context info $cxt for error reporting.

check_action_rules $action

Evaluate the rules for an action

fudge_condition $thingy

Converts a $thingy into a subref, for DWIM goodness. See the main ACL docs.

get_action_data $action
get_cxt_for_rule $rule
get_rules

DESCRIPTION ^

This is the engine which executes the access control checks for Catalyst::Plugin::Authorization::ACL. Please use that module directly.

TODO ^

    * external uris -> private paths
syntax highlighting: