2016-06-06 22:49:59 +02:00
|
|
|
package Lemonldap::NG::Portal::UserDB::Proxy;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use Mouse;
|
|
|
|
use Lemonldap::NG::Portal::Main::Constants 'PE_OK';
|
|
|
|
|
2017-01-09 07:11:30 +01:00
|
|
|
extends 'Lemonldap::NG::Common::Module';
|
2016-06-06 22:49:59 +02:00
|
|
|
|
|
|
|
our $VERSION = '2.0.0';
|
|
|
|
|
2017-01-09 07:11:30 +01:00
|
|
|
# INITIALIZATION
|
|
|
|
|
|
|
|
sub init {
|
|
|
|
my ($self) = @_;
|
|
|
|
if ( $self->conf->{proxyUseSoap} ) {
|
|
|
|
extends 'Lemonldap::NG::Common::Module',
|
|
|
|
'Lemonldap::NG::Portal::Lib::SOAPProxy';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
extends 'Lemonldap::NG::Common::Module',
|
|
|
|
'Lemonldap::NG::Portal::Lib::RESTProxy';
|
|
|
|
}
|
|
|
|
return $self->SUPER::init();
|
|
|
|
}
|
|
|
|
|
2016-06-09 20:40:20 +02:00
|
|
|
# RUNNING METHODS
|
|
|
|
|
2016-06-06 22:49:59 +02:00
|
|
|
sub setGroups {
|
|
|
|
PE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|