Constants.pm 2.22 KB
Newer Older
1
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand
2
package Lemonldap::NG::Common::Conf::Constants;
Yadd's avatar
Yadd committed
3 4 5

use strict;
use Exporter 'import';
6
use base qw(Exporter);
7 8

our $VERSION = '1.9.0';
Yadd's avatar
Yadd committed
9 10 11 12

# CONSTANTS

use constant CONFIG_WAS_CHANGED => -1;
13 14 15
use constant UNKNOWN_ERROR      => -2;
use constant DATABASE_LOCKED    => -3;
use constant UPLOAD_DENIED      => -4;
16
use constant SYNTAX_ERROR       => -5;
Yadd's avatar
Yadd committed
17 18 19 20 21 22 23
use constant DEPRECATED         => -6;
use constant DEFAULTCONFFILE => "/usr/local/lemonldap-ng/etc/lemonldap-ng.ini";
use constant DEFAULTSECTION  => "all";
use constant CONFSECTION     => "configuration";
use constant PORTALSECTION   => "portal";
use constant HANDLERSECTION  => "handler";
use constant MANAGERSECTION  => "manager";
24
use constant SESSIONSEXPLORERSECTION => "sessionsExplorer";
Clément OUDOT's avatar
Clément OUDOT committed
25
use constant APPLYSECTION            => "apply";
26
our $hashParameters = qr/^(?:(?:l(?:o(?:ca(?:lSessionStorageOption|tionRule)|goutService)|dapExportedVar)|(?:(?:d(?:emo|bi)|facebook|webID)ExportedVa|exported(?:Heade|Va))r|g(?:r(?:antSessionRule|oup)|lobalStorageOption|oogleExportedVar)|ca(?:s(?:StorageOption|Attribute)|ptchaStorageOption)|re(?:moteGlobalStorageOption|loadUrl)|notificationStorageOption|CAS_proxiedService|macro)s|o(?:idc(?:OPMetaData(?:(?:ExportedVar|Option)s|J(?:SON|WKS)|Node)|S(?:erviceMetaDataAuthnContext|torageOptions)|RPMetaData(?:(?:ExportedVar|Option)s|Node))|penIdExportedVars)|s(?:aml(?:S(?:PMetaData(?:(?:ExportedAttribute|Option)s|Node|XML)|torageOptions)|IDPMetaData(?:(?:ExportedAttribute|Option)s|Node|XML))|essionDataToRemember|laveExportedVars)|p(?:ersistentStorageOptions|o(?:rtalSkinRules|st))|a(?:uthChoiceModules|pplicationList)|v(?:hostOptions|irtualHost))$/;
27

Yadd's avatar
Yadd committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

our %EXPORT_TAGS = (
    'all' => [
        qw(
          CONFIG_WAS_CHANGED
          UNKNOWN_ERROR
          DATABASE_LOCKED
          UPLOAD_DENIED
          SYNTAX_ERROR
          DEPRECATED
          DEFAULTCONFFILE
          DEFAULTSECTION
          CONFSECTION
          PORTALSECTION
          HANDLERSECTION
          MANAGERSECTION
44
          SESSIONSEXPLORERSECTION
Yadd's avatar
Yadd committed
45
          APPLYSECTION
46
          $hashParameters
Yadd's avatar
Yadd committed
47 48 49
          )
    ]
);
50 51
our @EXPORT_OK   = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT      = ( @{ $EXPORT_TAGS{'all'} } );
Yadd's avatar
Yadd committed
52 53

1;