The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

Repository::Simple::Permission - Defines the permission constants

SYNOPSIS

# Automatically imports all permission constants
$repository->check_permission('/foo/bar', $READ);
$repository->check_permission('/foo/bar', $ADD_NODE);
$repository->check_permission('/foo/bar', $SET_PROPERTY);
$repository->check_permission('/foo/bar', $REMOVE);
# Just import some of them
use Repository::Simple::Permission qw( $READ $SET_PROPERTY );
$repository->check_permission('/foo/bar', $READ);
$repository->check_permission('/foo/bar', $SET_PROPERTY);
# Or use constants by full name
$repository->check_permission('/foo/bar',
$Repository::Simple::Permission::READ);
$repository->check_permission('/foo/bar',
$Repository::Simple::Permission::ADD_NODE);
$repository->check_permission('/foo/bar',
$Repository::Simple::Permission::$SET_PROPERTY);
$repository->check_permission('/foo/bar',
$Repository::Simple::Permission::REMOVE);

DESCRIPTION

This class defines the permission constants.

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2006 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.