diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-10-11 22:46:04 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-10-11 22:46:04 +0200 |
commit | 21cc701e6c2540d37fcff33cc850e0a814b28554 (patch) | |
tree | ad15cdfd35b8ab7804fa4a6c7b09ed1bfdfc08e3 /lib/AdminPanel/Shared | |
parent | f3a2a6151cc1161fe39ae5bd23c63728100c087b (diff) | |
download | manatools-21cc701e6c2540d37fcff33cc850e0a814b28554.tar manatools-21cc701e6c2540d37fcff33cc850e0a814b28554.tar.gz manatools-21cc701e6c2540d37fcff33cc850e0a814b28554.tar.bz2 manatools-21cc701e6c2540d37fcff33cc850e0a814b28554.tar.xz manatools-21cc701e6c2540d37fcff33cc850e0a814b28554.zip |
added getGroups and getUsers to Shared
Diffstat (limited to 'lib/AdminPanel/Shared')
-rw-r--r-- | lib/AdminPanel/Shared/Users.pm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/AdminPanel/Shared/Users.pm b/lib/AdminPanel/Shared/Users.pm index ea2d0fdb..74ad553b 100644 --- a/lib/AdminPanel/Shared/Users.pm +++ b/lib/AdminPanel/Shared/Users.pm @@ -471,6 +471,48 @@ sub updateOrDelUserInGroup { #============================================================= +=head2 getGoups + +=head3 OUTPUT + + $groups: ARRAY reference containing all the groups + +=head3 DESCRIPTION + + This method return the configured groups + +=cut + +#============================================================= +sub getGoups { + my $self = shelf; + + return $self->GroupsEnumerate; +} + +#============================================================= + +=head2 getUsers + +=head3 OUTPUT + + $users: ARRAY reference containing all the users + +=head3 DESCRIPTION + + This method return the configured users + +=cut + +#============================================================= +sub getUsers { + my $self = shelf; + + return $self->ctx->UsersEnumerate; +} + +#============================================================= + =head2 groupNameExists =head3 INPUT |