| 1 | package Apache2::SiteControl::Rule; | ||
| 2 | |||
| 3 | use 5.008; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | use Carp; | ||
| 7 | |||
| 8 | sub new { | ||
| 9 | my $proto = shift; | ||
| 10 | my $class = ref($proto) || $proto; | ||
| 11 | my $this = { }; | ||
| 12 | bless ($this, $class); | ||
| 13 | return $this; | ||
| 14 | } | ||
| 15 | |||
| 16 | sub grants($$$$) | ||
| 17 | { | ||
| 18 | my $this = shift; | ||
| 19 | my $user = shift; | ||
| 20 | my $action = shift; | ||
| 21 | my $resource = shift; | ||
| 22 | |||
| 23 | return 0; | ||
| 24 | } | ||
| 25 | |||
| 26 | sub denies($$$$) | ||
| 27 | { | ||
| 28 | my $this = shift; | ||
| 29 | my $user = shift; | ||
| 30 | my $action = shift; | ||
| 31 | my $resource = shift; | ||
| 32 | |||
| 33 | return "Abstract rule denies everything. Do not use."; | ||
| 34 | } | ||
| 35 | |||
| 36 | 1; | ||
| 37 | |||
| 38 | __END__ |