synchro ENT

This commit is contained in:
afornerot 2019-11-28 10:37:12 +01:00
parent 15c9ec4114
commit e6c5996d07
7 changed files with 220 additions and 61 deletions

View File

@ -44,9 +44,11 @@
<variable name="activer_roundcube" type="oui/non" description="Activer Roundcube" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_sacoche" type="oui/non" description="Activer Sacoche" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_wordpress" type="oui/non" description="Activer Wordpress" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_sondepiwik_local" type="oui/non" description="Activer Sonde Piwik" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_sondepiwik_local" type="oui/non" description="Activer Sonde Piwik" hidden='True' exists='False'><value>non</value></variable>
<variable name='poshprofil_typesynchro' type='string' description='Type de synchronisation' hidden='True' exists='False'><value>Annuaire</value></variable>
<variable name='moodle_apikey' type='string' description="API Key pour accéder au webservice Moodle" hidden='True' exists='False' />
@ -151,6 +153,7 @@
<value>non</value>
</variable>
<variable type='string' name='ninegate_widbalado_url' description='URL complète de votre Balado' mandatory='True' />
<variable type='string' name='ninegate_widbalado_syncenvole' description='URL Posh-Profil pour synchronisation Balado' mandatory='True' />
<!-- DOKUWIKI -->
<variable type="oui/non" name='ninegate_activate_widdokuwiki' description='Activer Dokuwiki' mandatory='True'>
@ -175,6 +178,7 @@
<value>non</value>
</variable>
<variable type='string' name='ninegate_widgepi_url' description='URL complète de votre GEPI' mandatory='True' />
<variable type='string' name='ninegate_widgepi_syncenvole' description='URL Posh-Profil pour synchronisation GEPI' mandatory='True' />
<!-- GRR -->
<variable type="oui/non" name='ninegate_activate_widgrr' description='Activer Grr' mandatory='True'>
@ -216,6 +220,7 @@
<value>non</value>
</variable>
<variable type='string' name='ninegate_widnextcloud_url' description='URL complète de votre Nextcloud' mandatory='True' />
<variable type='string' name='ninegate_widnextcloud_syncenvole' description='URL Posh-Profil pour synchronisation Nextcloud' mandatory='True' />
<!-- ONLY OFFICE -->
<variable type="oui/non" name='ninegate_activate_widonlyoffice' description='Activer OnlyOffice' mandatory='True'>
@ -258,6 +263,7 @@
<value>non</value>
</variable>
<variable type='string' name='ninegate_widsacoche_url' description='URL complète de votre Sacoche' mandatory='True' />
<variable type='string' name='ninegate_widsacoche_syncenvole' description='URL Posh-Profil pour synchronisation Sacoche' mandatory='True' />
<!-- WORDPRESS -->
<variable type="oui/non" name='ninegate_activate_widwordpress' description='Activer Wordpress' mandatory='True'>
@ -499,13 +505,30 @@
<condition name='hidden_if_in' source='ninegate_activate_syncenvole'>
<param>non</param>
<target type='variable'>ninegate_widbalado_syncenvole</target>
<target type='variable'>ninegate_widgepi_syncenvole</target>
<target type='variable'>ninegate_widlimesurvey_syncenvole</target>
<target type='variable'>ninegate_widmoodle_syncenvole</target>
<target type='variable'>ninegate_widnextcloud_syncenvole</target>
<target type='variable'>ninegate_widpiwik_syncenvole</target>
<target type='variable'>ninegate_widsacoche_syncenvole</target>
<target type='variable'>ninegate_widwordpress_syncenvole</target>
</condition>
<condition name='hidden_if_in' source='poshprofil_typesynchro'>
<param>ENT</param>
<target type='variable'>ninegate_widpiwik_syncenvole</target>
</condition>
<condition name='hidden_if_in' source='poshprofil_typesynchro'>
<param>Annuaire</param>
<target type='variable'>ninegate_widbalado_syncenvole</target>
<target type='variable'>ninegate_widgepi_syncenvole</target>
<target type='variable'>ninegate_widnextcloud_syncenvole</target>
<target type='variable'>ninegate_widsacoche_syncenvole</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU MODULE WEBSOCKET -->
<condition name='hidden_if_in' source='ninegate_activate_websocket'>

View File

@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
(-100, 'DRAAF', '130007107');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}nr/6ZYJbDQlAIrk3ju9hauaxMsRUKzrx
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}eRflbCDVFjT1tSjEA21WvpieJT9e1Ozo
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
@ -56,7 +56,7 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f
(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'),
(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'widpiwik_activate_syncenvole'),
(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'),
(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'),

View File

@ -80,6 +80,7 @@
// App activate
$app=[];
$app["importuser_activate"] =($masteridentity=="SQL");
$app["portal_activate"] =$this->container->getParameter('portal_activate');
$app["cron_activate"] =$this->container->getParameter('cron_activate');
$app["module_activate"] =$this->container->getParameter('module_activate');
@ -96,6 +97,12 @@
$app["activate_widpiwik"] =$this->container->getParameter('activate_widpiwik');
$app["activate_widwordpress"] =$this->container->getParameter('activate_widwordpress');
$app["widbalado_activate_syncenvole"] =$this->container->getParameter('widbalado_activate_syncenvole');
$app["widgepi_activate_syncenvole"] =$this->container->getParameter('widgepi_activate_syncenvole');
$app["widnextcloud_activate_syncenvole"] =$this->container->getParameter('widnextcloud_activate_syncenvole');
$app["widpiwik_activate_syncenvole"] =$this->container->getParameter('widpiwik_activate_syncenvole');
$app["widsacoche_activate_syncenvole"] =$this->container->getParameter('widsacoche_activate_syncenvole');
// Chargement de la sidebar
$iconniveau01 =$this->container->getParameter('iconniveau01');
$labelsniveau01 =$this->container->getParameter('labelsniveau01');

View File

@ -25,6 +25,48 @@ class SyncenvoleController extends Controller
]);
}
public function baladoAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=balado&color=#color#"
]);
}
public function gepiannuAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=gepiannu&color=#color#"
]);
}
public function gepisiecleAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=gepisiecle&color=#color#"
]);
}
public function limesurveyAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
@ -53,6 +95,20 @@ class SyncenvoleController extends Controller
]);
}
public function nextcloudAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=nextcloud&color=#color#"
]);
}
public function piwikAction()
{
$url=$this->getParameter("widpiwik_syncenvole");
@ -67,6 +123,20 @@ class SyncenvoleController extends Controller
]);
}
public function sacocheAction()
{
$url=$this->getParameter("widlimesurvey_syncenvole");
$color=$this->get('session')->get('colormain');
$themename=$this->get('session')->get("theme");
return $this->render('CadolesPortalBundle:Tool:frame.html.twig', [
'useheader' => true,
'usemenu' => false,
'usesidebar' => true,
'url' => $url."/synchro.php?app=sacoche&color=#color#"
]);
}
public function wordpressAction()
{
$url=$this->getParameter("widwordpress_syncenvole");

View File

@ -5,6 +5,18 @@ cadoles_portal_config_syncdelegation:
path: /config/syncenvole/delegation
defaults: { _controller: CadolesPortalBundle:Syncenvole:delegation }
cadoles_portal_config_syncbalado:
path: /config/syncenvole/balado
defaults: { _controller: CadolesPortalBundle:Syncenvole:balado }
cadoles_portal_config_syncgepiannu:
path: /config/syncenvole/gepiannu
defaults: { _controller: CadolesPortalBundle:Syncenvole:gepiannu }
cadoles_portal_config_syncgepisiecle:
path: /config/syncenvole/gepisiecle
defaults: { _controller: CadolesPortalBundle:Syncenvole:gepisiecle }
cadoles_portal_config_synclimesurvey:
path: /config/syncenvole/limesurvey
defaults: { _controller: CadolesPortalBundle:Syncenvole:limesurvey }
@ -13,6 +25,14 @@ cadoles_portal_config_syncmoodle:
path: /config/syncenvole/moodle
defaults: { _controller: CadolesPortalBundle:Syncenvole:moodle }
cadoles_portal_config_syncnextcloud:
path: /config/syncenvole/nextcloud
defaults: { _controller: CadolesPortalBundle:Syncenvole:nextcloud }
cadoles_portal_config_syncsacoche:
path: /config/syncenvole/sacoche
defaults: { _controller: CadolesPortalBundle:Syncenvole:sacoche }
cadoles_portal_config_syncpiwik:
path: /config/syncenvole/piwik
defaults: { _controller: CadolesPortalBundle:Syncenvole:piwik }

View File

@ -65,9 +65,14 @@ INSERT IGNORE INTO `sidebar` (`id`, `parent_id`, `roworder`, `label`, `path`, `f
(3000, NULL, 3000, 'SYNCHRONISATION', NULL, 'fa-exchange', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3001, 3000, 3001, 'Délégation', 'cadoles_portal_config_syncdelegation', 'fa-balance-scale', 'ROLE_ADMIN,ROLE_MODO', 'syncenvole_activate'),
(3110, 3000, 3110, 'Balado', 'cadoles_portal_config_syncbalado', 'fa-microphone', 'ROLE_ADMIN,ROLE_MODO', 'widbalado_activate_syncenvole'),
(3115, 3000, 3115, 'GEPI via Annuaire', 'cadoles_portal_config_syncgepiannu', 'fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'),
(3116, 3000, 3116, 'GEPI via SIECLE', 'cadoles_portal_config_syncgepisiecle', 'fa-tags', 'ROLE_ADMIN,ROLE_MODO', 'widgepi_activate_syncenvole'),
(3120, 3000, 3120, 'Limesurvey', 'cadoles_portal_config_synclimesurvey', 'fa-question', 'ROLE_ADMIN,ROLE_MODO', 'activate_widlimesurvey'),
(3130, 3000, 3130, 'Moodle', 'cadoles_portal_config_syncmoodle', 'fa-graduation-cap', 'ROLE_ADMIN,ROLE_MODO', 'activate_widmoodle'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'activate_widpiwik'),
(3140, 3000, 3140, 'Nexcloud', 'cadoles_portal_config_syncnextcloud', 'fa-cloud', 'ROLE_ADMIN,ROLE_MODO', 'widnextcloud_activate_syncenvole'),
(3150, 3000, 3150, 'Sacoche via SIECLE', 'cadoles_portal_config_syncsacoche', 'fa-suitcase', 'ROLE_ADMIN,ROLE_MODO', 'widsacoche_activate_syncenvole'),
(3160, 3000, 3160, 'Piwik', 'cadoles_portal_config_syncpiwik', 'fa-signal', 'ROLE_ADMIN,ROLE_MODO', 'widpiwik_activate_syncenvole'),
(3230, 3000, 3230, 'Wordpress', 'cadoles_portal_config_syncwordpress', 'fa-wordpress', 'ROLE_ADMIN,ROLE_MODO', 'activate_widwordpress'),
(7000, NULL, 7000, 'CRON', NULL, 'fa-bolt', 'ROLE_ADMIN,ROLE_MODO', 'cron_activate'),

View File

@ -188,8 +188,15 @@ parameters:
%if %%getVar("ninegate_activate_widbalado", 'non') == "oui"
activate_widbalado: true
widbalado_url: %%ninegate_widbalado_url
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widbalado_activate_syncenvole: true
widbalado_syncenvole: %%ninegate_widbalado_syncenvole
%else
widbalado_activate_syncenvole: false
%end if
%else
activate_widbalado: false
widbalado_activate_syncenvole: false
%end if
%if %%getVar("ninegate_activate_widdokuwiki", 'non') == "oui"
@ -216,8 +223,15 @@ parameters:
%if %%getVar("ninegate_activate_widgepi", 'non') == "oui"
activate_widgepi: true
widgepi_url: %%ninegate_widgepi_url
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widgepi_activate_syncenvole: true
widgepi_syncenvole: %%ninegate_widgepi_syncenvole
%else
widgepi_activate_syncenvole: false
%end if
%else
activate_widgepi: false
widgepi_activate_syncenvole: false
%end if
%if %%getVar("ninegate_activate_widgrr", 'non') == "oui"
@ -263,8 +277,15 @@ parameters:
%if %%getVar("ninegate_activate_widnextcloud", 'non') == "oui"
activate_widnextcloud: true
widnextcloud_url: %%ninegate_widnextcloud_url
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widnextcloud_activate_syncenvole: true
widnextcloud_syncenvole: %%ninegate_widgepi_syncenvole
%else
widnextcloud_activate_syncenvole: false
%end if
%else
activate_widnextcloud: false
widnextcloud_activate_syncenvole: false
%end if
%if %%getVar("ninegate_activate_widonlyoffice", 'non') == "oui"
@ -298,9 +319,15 @@ parameters:
%if %%getVar("ninegate_activate_widpiwik", 'non') == "oui"
activate_widpiwik: true
widpiwik_url: %%ninegate_widpiwik_url
%if %%getVar("poshprofil_typesynchro", "") == "Annuaire"
widpiwik_activate_syncenvole: true
widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole
%else
widpiwik_activate_syncenvole: false
%end if
%else
activate_widpiwik: false
widpiwik_activate_syncenvole: false
%end if
%if %%getVar("ninegate_activate_widroundcube", 'non') == "oui"
@ -313,8 +340,15 @@ parameters:
%if %%getVar("ninegate_activate_widsacoche", 'non') == "oui"
activate_widsacoche: true
widsacoche_url: %%ninegate_widsacoche_url
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widsacoche_activate_syncenvole: true
widsacoche_syncenvole: %%ninegate_widgepi_syncenvole
%else
widsacoche_activate_syncenvole: false
%end if
%else
activate_widsacoche: false
widsacoche_activate_syncenvole: false
%end if
%if %%getVar("ninegate_activate_widwordpress", 'non') == "oui"