Integration manual


  1. Technical integration
    1. Defining "User" content types
    2. Content lifecycle

 

Technical integration

Defining "User" content types

You need to define your own "User" content type(s) for use in a directory.

These content types must necessarily extend the abstract content type org.ametys.plugins.userdirectory.Content.user.

We strongly recommend making them private.

 

Example

<extension xmlns:cms="http://www.ametys.org/schema/cms"  
           class="org.ametys.web.contenttype.WebContentType">  
 <cms:content-type extends="org.ametys.plugins.userdirectory.Content.user">  
 <cms:label i18n="true">CONTENT_TYPES_UD_USER_LABEL</cms:label>  
        <cms:description i18n="true">CONTENT_TYPES_UD_USER_DESC</cms:description>  
        <cms:default-title i18n="true">CONTENT_TYPES_UD_USER_DEFAULT_TITLE</cms:default-title>  
        <cms:icons>  
            <cms:glyph>ametysicon-body-people</cms:glyph>  
        </cms:icons>  
        <css>  
            <file plugin="core-ui">font/ametys/AmetysIcon.css</file>  
        </css>  
         
        <cms:tags>  
            <cms:tag>private</cms:tag>  
        </cms:tags>  
   
 <!-- Métadonnées et vues -->  
 </cms:content-type>  
</extension>  

Download a complete example of a user content type.

Content lifecycle

For users :

  • In 2.1, download the following lifecycle file. The name of the lifecycle is "contentio".
  • In 2.2, download the following lifecycle file. The name of the lifecycle is "user".

For entities :

  • In 2.1, download the following lifecycle file. The name of the lifecycle is "udorgunit".
  • In 2.2, download the following lifecycle file. Lifecycle name is "udorgunit

Install them as described in Workflow settings

Back to top

User directory