The roles plug-in component defines roles in Forum of eXo Platform. This convenient application defines access to a set of functions within the application. Currently, it only defines the person who has the administrator role. Administrators can get access to administration functions. At runtime, the application gets data from the roles plug-in to decide whether the logged user has the administrative role or not.
The plug-in is configured in the
When the user signs in, his or her username, group and membership will be compared with the user roles defined
file that is provided by the roles plug-in component.
In particular, at runtime of ForumService, the roles plug-in component is called. The role plug-in is
configured in the
file. The plug-in component named
will be referred to
to create users for Forum corresponding to users who exist in the organization database. In addition, the list of
users who have the
role are also defined.
<description>add role rules</description>
<description>name of the role</description>
<description>rules of the role</description>
|add.role.rules.plugin||addRolePlugin||Adds role rules.|
|Name||Possible value||Default value||Description|
||The name of role.|
||The rules of role.|
file is executed, the administration role (with
value) will be checked and assigned to a matrix of
defined inside the "
value" tags as below:
In the example above, the default administrators of Forum include root, john, users in /platform/administrators group and users who have member/validator memberships in the VIP group.
When being root, the users who belong to the /platform/administrators group or who have the member/validator memberships in the VIP group and sign in the Forum, they will be identified as the default administrator of Forum.
To add or remove the default administrator of the Forum, simply edit the
file, add or remove the relevant "
The default administrators of the Forum can only change their roles by editing in the
At runtime, modifications in the
file will be read and database will be updated. Normal users of the Forum and default administration will be