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 class="org.ametys.cms.contenttype.DefaultContentType">
    <content-type extends="org.ametys.plugins.userdirectory.Content.user">  
                      
<label i18n="true">plugin.user-directory:PLUGINS_USER_DIRECTORY_CONTENT_TYPES_UD_USER_LABEL</label>
        <description i18n="true">plugin.user-directory:PLUGINS_USER_DIRECTORY_CONTENT_TYPES_UD_USER_DESC</description>
        <default-title i18n="true">plugin.user-directory:PLUGINS_USER_DIRECTORY_CONTENT_TYPES_UD_USER_DEFAULT_TITLE</default-title>
        <icons>
            <glyph>ametysicon-body-people</glyph>
        </icons>
        <css>
            <file plugin="core-ui">font/ametys/AmetysIcon.css</file>
        </css>
        
        <tags>
            <tag>private</tag>
        </tags>
   
<!-- Attributs et vues -->  
</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