...
Figure 3 Elements in the Permissions configuration
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<?xml version="1.0" encoding="UTF-8"?>
<permissions xmlns=".....">
<permission id="AllowDataEditor">
<userGroup id="Hydroloog"/>
<userGroup id="Veldmedewerker"/>
</permission>
<permission id="AllowManualForecast">
<userGroup id="Hydroloog"/>
</permission>
<permission id="AllowLabelEditor">
<userGroup id="Hydroloog"/>
</permission>
<permission id="AllowCommentEditor">
<userGroup id="Hydroloog"/>
<userGroup id="Veldmedewerker"/>
</permission>
<permission id="AllowValueEditor">
<userGroup id="Hydroloog"/>
</permission>
</permissions>
|
...
Figure 4 Elements in the Usergroups configuration
Code Block | |||
---|---|---|---|
| |||
<?xml version="1.0" encoding="UTF-8"?> <userGroups xmlns="...."> <userGroup id="Veldmedewerker"> <user id="Stephan Zuiderwijk" /> <user id="Marc van Dijk"/> </userGroup> <userGroup id="Hydroloog"> <user id="Toon van Peel"/> </userGroup> <userGroup id="SystemUsers"> <user systemUserGroup="DOMAIN\userid"/> </userGroup> </userGroups> |
Usergroup
Base tag for a usergroup configure one for each user group. Usergroups can contain other usergroups. A user group can contain three types of sub-items:
user id = This is the id of the user that is executing the process.
group id = This is a link to an other user group
systemUserGroup = This is fully qualified domain user or domain group. If the executing user is member of the specified system user group then the permissions assigned to this group are applied.
User
Name of the user that belongs to the usergroup. Users can be placed in multiple usergroups.
Example of permissions in the Explorer XML and TimeSeriesDisplayConfig XML file.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
....
<explorerTask name="Data Editor">
<iconFile>%FEWSDIR%/icons/table.gif</iconFile>
<mnemonic>E</mnemonic>
<arguments>table</arguments>
<taskClass>nl.wldelft.fews.gui.plugin.timeseries.TimeSeriesDialog</taskClass>
<toolbarTask>false</toolbarTask>
<menubarTask>true</menubarTask>
<accelerator>ctrl E</accelerator>
<permission>AllowDataEditor</permission>
</explorerTask>
....
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
....
<generalDisplayConfig>
<convertDatum>true</convertDatum>
<valueEditorPermission>AllowValueEditor</valueEditorPermission>
<labelEditorPermission>AllowLabelEditor</labelEditorPermission>
<commentEditorPermission>AllowCommentEditor</commentEditorPermission>
</generalDisplayConfig>
....
|