Fonctionnement
Les groupes permettent de gérer les utilisateurs et les catégories de portlets.
Ils permettent de créer une arborescence de groupes qui peut inclure des groupes PAGS.
Catégorie des portlets
Exemple : Administration.group-membership.xml
<group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn">
<name>Administration</name>
<entity-type>org.apereo.portal.portlet.om.IPortletDefinition</entity-type>
<creator>system</creator>
<description>Administrative Portlets</description>
<children/>
</group>
Groupe d'utilisateurs
Groupe des administrateurs : Portal_Administrators.group-membership.xml
<group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn">
<name>Administration</name>
<entity-type>org.apereo.portal.portlet.om.IPortletDefinition</entity-type>
<creator>system</creator>
<description>Administrative Portlets</description>
<children/>
</group>
Groupe des fragment-layout : Fragment_Owners.group-membership.xml
<group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn">
<name>Fragment Owners</name>
<entity-type>org.apereo.portal.security.IPerson</entity-type>
<creator>system</creator>
<description>These are fragment layout owner accounts</description>
<children>
<literal>academics-lo</literal>
<literal>admin-lo</literal>
<literal>all-lo</literal>
<literal>campus-lo</literal>
<literal>developer-lo</literal>
<literal>faculty-lo</literal>
<literal>fragmentTemplate</literal>
<literal>guest-lo</literal>
<literal>news-lo</literal>
<literal>staff-lo</literal>
<literal>student-lo</literal>
<literal>tenant-admin-lo</literal>
<literal>welcome-lo</literal>
</children>
</group>
Gestion d'une arborescence
Exemple groupe racine : Everyone.group-membership.xml
<group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn">
<name>Everyone</name>
<entity-type>org.apereo.portal.security.IPerson</entity-type>
<creator>system</creator>
<description>All Users</description>
<children>
<group>Authenticated Users</group>
<group>PAGS Root</group>
<group>Faculty</group>
<group>Guests</group>
<group>Portal System</group>
<group>Staff</group>
<group>Students</group>
<group>Tenant Administrators</group>
<group>Tenants</group>
</children>
</group>
Installation
Pour enregistrer tous les groupes
./gradlew overlay:uPortal:dataImport -Ddir=data/esup/group-membership
- Pour enregistrer un seul groupe
./gradlew overlay:uPortal:dataImport -Dfile=data/esup/group-membership/Fragment_Owners.group-membership.xml