Java Property File Synchronization Example

This example contains the source code for an example implementation of both the ExternalLoginProvider and the DynamicParticipantSynchronizationProvider interface, based on Java property files.

Click the following link to download the sources for this example as ZIP file:

The location of the property file to be used has to be configured by setting the User.Registry property, which defaults to

In general a DynamicParticipantSynchronizationProvider takes care of retrieving authorization information for an authenticated user as well as detail about this user itself from an external user registry. This example shows how to retrieve this information from a plain Java property file.

The general syntax of such user registry property file is:

The most basic entry for a user, its existence marks the user as existent. The also provided ExternalLoginProvider implementation may be used to authenticate users against this password.
Optional property, specifying the users first name.
Optional property, specifying the users last name.
Optional property, specifying the users email address.
Optional property, specifying the model participants granted to the user as a comma separated list.
Optional property, specifying the user groups the user is a member of as a semicolon separated list. Any user group / department referenced has to be defined by an appropriate Group.$id$.Name / Department.$id$.Name entry.
Required property to define the existence of a user group.
Required property to define the existence of a department. The structure of a $deptId$ is as follows: <Organization-Id><<Department-Id>|null{,<Department-Id>|null}>, e.g. Org2<u,i>, Org3<u,i,null>.
Optional property, specifying the department's description.

For more detailed information on the DynamicParticipantSynchronizationProvider interface please refer to chapter Integrating External User Repositories of the Programming Guide.

This example can be used in projects which are based on the WAR and EAR archetypes. For a plain Spring WAR deployment please open the pom.xml file of the corresponding project into an editor. For EAR deployments you have to use the pom.xml which is located either in the config module (JBoss only) or in the ejb module (WebLogic and WebSphere). After this please include the following dependency there:


In a last step the following properties must be included in the server side


Note that you have to adapt the path and the file name of the User.Registry property according to your environment.

Please note that this example assumes that the Engine is using implicit authentication. Further details can be found in the Security chapter of the Operation Guide.