Loading config/autoload/unicaen-evenement.global.php +0 −5 Changes for config/autoload/unicaen-evenement.global.php: 0 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ use Formation\Event\SessionCloture\SessionClotureEvent; use Formation\Provider\Event\EvenementProvider as FormationEvenementProvider; use Formation\Service\Evenement\NotificationFormationsOuvertesService; use Formation\Service\Evenement\RappelAgentAvantFormationService; use Structure\Event\InfoStructure\InfoStructureEvent; use Structure\Provider\Event\EvenementProvider as StructureEvenementProvider; use UnicaenEvenement\Entity\Db\Type; use UnicaenEvenement\Service\EvenementCollection\EvenementCollectionService; Loading @@ -41,9 +39,6 @@ return [ EntretienProfessionnelEvenementProvider::RAPPEL_CAMPAGNE_AVANCEMENT_SUPERIEUR => RappelCampagneAvancementSuperieurService::class, EntretienProfessionnelEvenementProvider::RAPPEL_ENTRETIEN_PROFESSIONNEL => RappelEntretienProfessionnelService::class, EntretienProfessionnelEvenementProvider::RAPPEL_PAS_OBSERVATION_ENTRETIEN_PROFESSIONNEL => RappelPasObservationService::class, StructureEvenementProvider::INFO_STRUCTURE => InfoStructureEvent::class, ], 'icone' => [ Loading documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql +4 −4 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -1040,10 +1040,10 @@ INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('evenementetat', 'Gestion des événements - État', 99991, 'UnicaenEvenement\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'etat_consultation', 'état - consultation', 10 UNION SELECT 'etat_ajout', 'état - ajout', 20 UNION SELECT 'etat_edition', 'état - édition', 30 UNION SELECT 'etat_suppression', 'état - suppression', 40 SELECT 'etat_voir', 'état - consultation', 10 UNION SELECT 'etat_ajouter', 'état - ajout', 20 UNION SELECT 'etat_modifier', 'état - édition', 30 UNION SELECT 'etat_supprimer', 'état - suppression', 40 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d Loading documentation/SQL/005_MISSION.sql +28 −1 Changes for documentation/SQL/005_MISSION.sql: 28 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -281,7 +281,7 @@ VALUES ('missionspecifiquetype', 'Gestion des types de mission spécifique', 670 INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'missionspecifiquetype_index', 'Gestion - Affichage de l''index des types de mission specifique', 100 UNION SELECT 'missionspecifiquetypee_afficher', 'Gestion - Afficher un type de mission spécifique', 110 UNION SELECT 'missionspecifiquetype_afficher', 'Gestion - Afficher un type de mission spécifique', 110 UNION SELECT 'missionspecifiquetype_ajouter', 'Gestion - Ajouter un type de mission spécifique', 120 UNION SELECT 'missionspecifiquetype_modifier', 'Gestion - Modifier un type de mission spécifique', 130 UNION SELECT 'missionspecifiquetype_historiser', 'Gestion - Historiser/restaurer un type de mission spécifique', 140 UNION Loading @@ -290,3 +290,30 @@ WITH d(code, lib, ordre) AS ( SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'missionspecifiquetype'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('activite', 'Gestion des missions principales', 625, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'activite_index', 'Accéder à l''index des missions principales', 0 UNION SELECT 'activite_afficher', 'Afficher une mission principale', 10 UNION SELECT 'activite_ajouter', 'Ajouter une mission principale', 20 UNION SELECT 'activite_modifier', 'Modifier une mission principale ', 30 UNION SELECT 'activite_historiser', 'Historiser/restaurer une mission principale', 40 UNION SELECT 'activite_detruire', 'Détruire une activité', 50 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'activite'; -- --------------------------------------------------------------------------------------------------------------------- -- MACRO --------------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- -- MACRO des missions spécifiques INSERT INTO unicaen_renderer_macro (code, description, variable_name, methode_name) VALUES ('MISSIONSPECIFIQUE#Type', '<p>Retourne le type de la mission spécifique</p>', 'missionspecifique', 'toStringType'), ('MISSIONSPECIFIQUE#Theme', '<p>Retourne le thème d''une mission spécifique</p>', 'missionspecifique', 'toStringTheme'), ('MISSIONSPECIFIQUE#Description', '<p>Retourne le descriptif d''une mission spécifique</p>', 'missionspecifique', 'toStringDescription'), ('MISSIONSPECIFIQUE#Libelle', '<p>Retourne le libellé d''une mission spécifique</p>', 'missionspecifique', 'toStringLibelle'); documentation/SQL/008_STRUCTURE.sql +1 −2 Changes for documentation/SQL/008_STRUCTURE.sql: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -186,7 +186,6 @@ INSERT INTO unicaen_utilisateur_role (role_id, libelle, is_default, is_auto, par ('Responsable de structure', 'Responsable de structure', false, true, null, null, true, null), ('Gestionnaire de structure', 'Gestionnaire de structure', false, true, null, null, true, null); -- --------------------------------------------------------------------------------------------------------------------- -- PARAMETRE ----------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- Loading @@ -200,7 +199,7 @@ WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'CARRIERE'; JOIN unicaen_parametre_categorie cp ON cp.CODE = 'STRUCTURE'; -- --------------------------------------------------------------------------------------------------------------------- -- PRIVILEGES ---------------------------------------------------------------------------------------------------------- Loading documentation/SQL/009_AGENT_PART2.sql +91 −0 Changes for documentation/SQL/009_AGENT_PART2.sql: 91 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -400,3 +400,94 @@ create unique index agent_missionspecifique_id_uindex on agent_missionspecifique -- I::::::::IN::::::N N::::::NS:::::::::::::::SS E::::::::::::::::::::ER::::::R R:::::R T:::::::::T -- IIIIIIIIIINNNNNNNN NNNNNNN SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRR RRRRRRR TTTTTTTTTTT -- --------------------------------------------------------------------------------------------------------------------- -- TEMPLATE ------------------------------------------------------------------------------------------------------------ -- --------------------------------------------------------------------------------------------------------------------- INSERT INTO unicaen_renderer_template (code, description, document_type, namespace, document_sujet, document_corps, document_css) VALUES ('LETTRE_MISSION', null, 'pdf', 'Application\Provider\Privilege', 'Lettre de mission pour VAR[AGENT#denomination] réalisant la mission spécifique VAR[MISSIONSPECIFIQUE#Libelle]', '<p>L''agent VAR[AGENT#denomination] réalise la mission spécifique VAR[MISSIONSPECIFIQUE#Libelle]</p>', null); -- --------------------------------------------------------------------------------------------------------------------- -- PRIVILEGE ----------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('missionspecifiqueaffectation', 'Gestion des affectations de mission spécifique', 680, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'missionspecifiqueaffectation_index', 'Affectation - Afficher l''index des affectation', 200 UNION SELECT 'missionspecifiqueaffectation_afficher', 'Affectation - Afficher une affectations de missions spécifiques', 210 UNION SELECT 'missionspecifiqueaffectation__ajouter', 'Affectation - Ajouter une affectation de mission spécifique', 220 UNION SELECT 'missionspecifiqueaffectation_modifier', 'Affectation - Modifier une affectation de mission specifique', 230 UNION SELECT 'missionspecifiqueaffectation_historiser', 'Affectation - Historiser/restaurer une affectation de mission spécifique', 240 UNION SELECT 'missionspecifiqueaffectation_detruire', 'Affectation - Détruire une affectation de mission spécifique', 250 UNION SELECT 'missionspecifiqueaffectation_onglet', 'Afficher l''onglet associé dans les écrans de la structure', 400 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'missionspecifiqueaffectation'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('agentaffichage', 'Affichage des informations relatives à l''agent', 510, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agentaffichage_superieur', 'Afficher les supérieur·es hiérarchiques direct·es', 10 UNION SELECT 'agentaffichage_autorite', 'Afficher les autorités hiérarchiques', 20 UNION SELECT 'agentaffichage_dateresume', 'Afficher les dates sur le résumé de carrière', 30 UNION SELECT 'agentaffichage_carrierecomplete', 'Afficher la carrière complète', 40 UNION SELECT 'agentaffichage_compte', 'Afficher les informations sur le compte utilisateur', 50 UNION SELECT 'agentaffichage_temoin_affectation', 'Afficher les temoins liés aux affectations', 60 UNION SELECT 'agentaffichage_temoin_statut', 'Afficher les temoins liés aux statuts', 70 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agentaffichage'; INSERT INTO unicaen_privilege_categorie (code, libelle, namespace, ordre) VALUES ('agentmobilite', 'Gestion des mobilités des agents', 'Application\Provider\Privilege', 800); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agentmobilite_index', 'Accéder à l''index', 10 UNION SELECT 'agentmobilite_afficher', 'Afficher', 20 UNION SELECT 'agentmobilite_ajouter', 'Ajouter', 30 UNION SELECT 'agentmobilite_modifier', 'Modifier', 40 UNION SELECT 'agentmobilite_historiser', 'Historiser/Restaurer', 50 UNION SELECT 'agentmobilite_supprimer', 'Supprimer', 60 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agentmobilite'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('agent', 'Gestion des agents', 500, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agent_index', 'Accéder à l''index', 0 UNION SELECT 'agent_afficher', 'Afficher un agent', 10 UNION SELECT 'agent_info_source', 'Afficher les informations sur les identifiants sources', 11 UNION SELECT 'agent_afficher_donnees', 'Afficher le menu ''mes données''', 12 UNION SELECT 'agent_ajouter', 'Ajouter un agent', 20 UNION SELECT 'agent_editer', 'Modifier un agent', 30 UNION SELECT 'agent_effacer', 'Effacer un agent', 50 UNION SELECT 'agent_rechercher', 'Rechercher un agent', 99 UNION SELECT 'agent_element_ajouter_epro', 'Ajouter un entretien professionnel associé à un agent', 100 UNION SELECT 'agent_element_voir', 'Afficher les éléments associés à l''agent', 510 UNION SELECT 'agent_element_ajouter', 'Ajouter un élément associé à l''agent', 520 UNION SELECT 'agent_element_modifier', 'Modifier un élément associé à l''agent', 530 UNION SELECT 'agent_element_historiser', 'Historiser/restaurer un élément associé à l''agent', 540 UNION SELECT 'agent_element_detruire', 'Détruire un élément associé à l''agent', 550 UNION SELECT 'agent_element_valider', 'Valider un élément associé à l''agent', 560 UNION SELECT 'agent_acquis_afficher', 'Afficher les acquis d''un agent', 1000 UNION SELECT 'agent_acquis_modifier', 'Modifier les acquis d''un agent', 1010 UNION SELECT 'agent_gestion_ccc', 'Gestion des agents CCC', 9999 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agent'; Loading
config/autoload/unicaen-evenement.global.php +0 −5 Changes for config/autoload/unicaen-evenement.global.php: 0 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ use Formation\Event\SessionCloture\SessionClotureEvent; use Formation\Provider\Event\EvenementProvider as FormationEvenementProvider; use Formation\Service\Evenement\NotificationFormationsOuvertesService; use Formation\Service\Evenement\RappelAgentAvantFormationService; use Structure\Event\InfoStructure\InfoStructureEvent; use Structure\Provider\Event\EvenementProvider as StructureEvenementProvider; use UnicaenEvenement\Entity\Db\Type; use UnicaenEvenement\Service\EvenementCollection\EvenementCollectionService; Loading @@ -41,9 +39,6 @@ return [ EntretienProfessionnelEvenementProvider::RAPPEL_CAMPAGNE_AVANCEMENT_SUPERIEUR => RappelCampagneAvancementSuperieurService::class, EntretienProfessionnelEvenementProvider::RAPPEL_ENTRETIEN_PROFESSIONNEL => RappelEntretienProfessionnelService::class, EntretienProfessionnelEvenementProvider::RAPPEL_PAS_OBSERVATION_ENTRETIEN_PROFESSIONNEL => RappelPasObservationService::class, StructureEvenementProvider::INFO_STRUCTURE => InfoStructureEvent::class, ], 'icone' => [ Loading
documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql +4 −4 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -1040,10 +1040,10 @@ INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('evenementetat', 'Gestion des événements - État', 99991, 'UnicaenEvenement\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'etat_consultation', 'état - consultation', 10 UNION SELECT 'etat_ajout', 'état - ajout', 20 UNION SELECT 'etat_edition', 'état - édition', 30 UNION SELECT 'etat_suppression', 'état - suppression', 40 SELECT 'etat_voir', 'état - consultation', 10 UNION SELECT 'etat_ajouter', 'état - ajout', 20 UNION SELECT 'etat_modifier', 'état - édition', 30 UNION SELECT 'etat_supprimer', 'état - suppression', 40 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d Loading
documentation/SQL/005_MISSION.sql +28 −1 Changes for documentation/SQL/005_MISSION.sql: 28 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -281,7 +281,7 @@ VALUES ('missionspecifiquetype', 'Gestion des types de mission spécifique', 670 INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'missionspecifiquetype_index', 'Gestion - Affichage de l''index des types de mission specifique', 100 UNION SELECT 'missionspecifiquetypee_afficher', 'Gestion - Afficher un type de mission spécifique', 110 UNION SELECT 'missionspecifiquetype_afficher', 'Gestion - Afficher un type de mission spécifique', 110 UNION SELECT 'missionspecifiquetype_ajouter', 'Gestion - Ajouter un type de mission spécifique', 120 UNION SELECT 'missionspecifiquetype_modifier', 'Gestion - Modifier un type de mission spécifique', 130 UNION SELECT 'missionspecifiquetype_historiser', 'Gestion - Historiser/restaurer un type de mission spécifique', 140 UNION Loading @@ -290,3 +290,30 @@ WITH d(code, lib, ordre) AS ( SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'missionspecifiquetype'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('activite', 'Gestion des missions principales', 625, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'activite_index', 'Accéder à l''index des missions principales', 0 UNION SELECT 'activite_afficher', 'Afficher une mission principale', 10 UNION SELECT 'activite_ajouter', 'Ajouter une mission principale', 20 UNION SELECT 'activite_modifier', 'Modifier une mission principale ', 30 UNION SELECT 'activite_historiser', 'Historiser/restaurer une mission principale', 40 UNION SELECT 'activite_detruire', 'Détruire une activité', 50 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'activite'; -- --------------------------------------------------------------------------------------------------------------------- -- MACRO --------------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- -- MACRO des missions spécifiques INSERT INTO unicaen_renderer_macro (code, description, variable_name, methode_name) VALUES ('MISSIONSPECIFIQUE#Type', '<p>Retourne le type de la mission spécifique</p>', 'missionspecifique', 'toStringType'), ('MISSIONSPECIFIQUE#Theme', '<p>Retourne le thème d''une mission spécifique</p>', 'missionspecifique', 'toStringTheme'), ('MISSIONSPECIFIQUE#Description', '<p>Retourne le descriptif d''une mission spécifique</p>', 'missionspecifique', 'toStringDescription'), ('MISSIONSPECIFIQUE#Libelle', '<p>Retourne le libellé d''une mission spécifique</p>', 'missionspecifique', 'toStringLibelle');
documentation/SQL/008_STRUCTURE.sql +1 −2 Changes for documentation/SQL/008_STRUCTURE.sql: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -186,7 +186,6 @@ INSERT INTO unicaen_utilisateur_role (role_id, libelle, is_default, is_auto, par ('Responsable de structure', 'Responsable de structure', false, true, null, null, true, null), ('Gestionnaire de structure', 'Gestionnaire de structure', false, true, null, null, true, null); -- --------------------------------------------------------------------------------------------------------------------- -- PARAMETRE ----------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- Loading @@ -200,7 +199,7 @@ WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'CARRIERE'; JOIN unicaen_parametre_categorie cp ON cp.CODE = 'STRUCTURE'; -- --------------------------------------------------------------------------------------------------------------------- -- PRIVILEGES ---------------------------------------------------------------------------------------------------------- Loading
documentation/SQL/009_AGENT_PART2.sql +91 −0 Changes for documentation/SQL/009_AGENT_PART2.sql: 91 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -400,3 +400,94 @@ create unique index agent_missionspecifique_id_uindex on agent_missionspecifique -- I::::::::IN::::::N N::::::NS:::::::::::::::SS E::::::::::::::::::::ER::::::R R:::::R T:::::::::T -- IIIIIIIIIINNNNNNNN NNNNNNN SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRR RRRRRRR TTTTTTTTTTT -- --------------------------------------------------------------------------------------------------------------------- -- TEMPLATE ------------------------------------------------------------------------------------------------------------ -- --------------------------------------------------------------------------------------------------------------------- INSERT INTO unicaen_renderer_template (code, description, document_type, namespace, document_sujet, document_corps, document_css) VALUES ('LETTRE_MISSION', null, 'pdf', 'Application\Provider\Privilege', 'Lettre de mission pour VAR[AGENT#denomination] réalisant la mission spécifique VAR[MISSIONSPECIFIQUE#Libelle]', '<p>L''agent VAR[AGENT#denomination] réalise la mission spécifique VAR[MISSIONSPECIFIQUE#Libelle]</p>', null); -- --------------------------------------------------------------------------------------------------------------------- -- PRIVILEGE ----------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('missionspecifiqueaffectation', 'Gestion des affectations de mission spécifique', 680, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'missionspecifiqueaffectation_index', 'Affectation - Afficher l''index des affectation', 200 UNION SELECT 'missionspecifiqueaffectation_afficher', 'Affectation - Afficher une affectations de missions spécifiques', 210 UNION SELECT 'missionspecifiqueaffectation__ajouter', 'Affectation - Ajouter une affectation de mission spécifique', 220 UNION SELECT 'missionspecifiqueaffectation_modifier', 'Affectation - Modifier une affectation de mission specifique', 230 UNION SELECT 'missionspecifiqueaffectation_historiser', 'Affectation - Historiser/restaurer une affectation de mission spécifique', 240 UNION SELECT 'missionspecifiqueaffectation_detruire', 'Affectation - Détruire une affectation de mission spécifique', 250 UNION SELECT 'missionspecifiqueaffectation_onglet', 'Afficher l''onglet associé dans les écrans de la structure', 400 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'missionspecifiqueaffectation'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('agentaffichage', 'Affichage des informations relatives à l''agent', 510, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agentaffichage_superieur', 'Afficher les supérieur·es hiérarchiques direct·es', 10 UNION SELECT 'agentaffichage_autorite', 'Afficher les autorités hiérarchiques', 20 UNION SELECT 'agentaffichage_dateresume', 'Afficher les dates sur le résumé de carrière', 30 UNION SELECT 'agentaffichage_carrierecomplete', 'Afficher la carrière complète', 40 UNION SELECT 'agentaffichage_compte', 'Afficher les informations sur le compte utilisateur', 50 UNION SELECT 'agentaffichage_temoin_affectation', 'Afficher les temoins liés aux affectations', 60 UNION SELECT 'agentaffichage_temoin_statut', 'Afficher les temoins liés aux statuts', 70 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agentaffichage'; INSERT INTO unicaen_privilege_categorie (code, libelle, namespace, ordre) VALUES ('agentmobilite', 'Gestion des mobilités des agents', 'Application\Provider\Privilege', 800); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agentmobilite_index', 'Accéder à l''index', 10 UNION SELECT 'agentmobilite_afficher', 'Afficher', 20 UNION SELECT 'agentmobilite_ajouter', 'Ajouter', 30 UNION SELECT 'agentmobilite_modifier', 'Modifier', 40 UNION SELECT 'agentmobilite_historiser', 'Historiser/Restaurer', 50 UNION SELECT 'agentmobilite_supprimer', 'Supprimer', 60 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agentmobilite'; INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace) VALUES ('agent', 'Gestion des agents', 500, 'Application\Provider\Privilege'); INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'agent_index', 'Accéder à l''index', 0 UNION SELECT 'agent_afficher', 'Afficher un agent', 10 UNION SELECT 'agent_info_source', 'Afficher les informations sur les identifiants sources', 11 UNION SELECT 'agent_afficher_donnees', 'Afficher le menu ''mes données''', 12 UNION SELECT 'agent_ajouter', 'Ajouter un agent', 20 UNION SELECT 'agent_editer', 'Modifier un agent', 30 UNION SELECT 'agent_effacer', 'Effacer un agent', 50 UNION SELECT 'agent_rechercher', 'Rechercher un agent', 99 UNION SELECT 'agent_element_ajouter_epro', 'Ajouter un entretien professionnel associé à un agent', 100 UNION SELECT 'agent_element_voir', 'Afficher les éléments associés à l''agent', 510 UNION SELECT 'agent_element_ajouter', 'Ajouter un élément associé à l''agent', 520 UNION SELECT 'agent_element_modifier', 'Modifier un élément associé à l''agent', 530 UNION SELECT 'agent_element_historiser', 'Historiser/restaurer un élément associé à l''agent', 540 UNION SELECT 'agent_element_detruire', 'Détruire un élément associé à l''agent', 550 UNION SELECT 'agent_element_valider', 'Valider un élément associé à l''agent', 560 UNION SELECT 'agent_acquis_afficher', 'Afficher les acquis d''un agent', 1000 UNION SELECT 'agent_acquis_modifier', 'Modifier les acquis d''un agent', 1010 UNION SELECT 'agent_gestion_ccc', 'Gestion des agents CCC', 9999 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'agent';