NAME
Lemonldap::NG::Manager::Conf::Parser - Perl extension for parsing new uploaded configurations.
SYNOPSIS
require Lemonldap::NG::Manager::Conf::Parser;
my $parser = Lemonldap::NG::Manager::Conf::Parser->new(
{ tree => $new, refConf => $self->currentConf }
);
my $res = { result => $parser->check };
$res->{message} = $parser->{message};
foreach my $t (qw(errors warnings changes)) {
push @{ $res->{details} }, { message => $t, items => $parser->$t }
if ( @{$parser->$t} );
}
DESCRIPTION
Lemonldap::NG::Manager::Conf::Parser checks new configuration
This package is used by Manager to examine uploaded configuration. It is currently called using check() which return a boolean. check() looks if a newConf is available. If not, it builds it from uploaded JSON (using scanTree() subroutine)
Messages are stored in errors(), warnings() and changes() as arrays.
This interface uses Plack to be compatible with CGI, FastCGI,...
SEE ALSO
Lemonldap::NG::Manager, http://lemonldap-ng.org/
AUTHORS
BUG REPORT
Use OW2 system to report bug or ask for features: http://jira.ow2.org
DOWNLOAD
Lemonldap::NG is available at http://forge.objectweb.org/project/showfiles.php?group_id=274
COPYRIGHT AND LICENSE
- Copyright (C) 2015-2016 by Xavier Guimard, <x.guimard@free.fr>
- Copyright (C) 2015-2016 by Clément Oudot, <clem.oudot@gmail.com>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
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. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.