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