I develloped some plugins in which I defined several SecurityActions.
I can access these in the server management client but they don’t appear in the ConfigApiClient sample.
So I just wanted to know if it’s possible to make them appear.
Edit : I add the permissions to the properties of each role, so now they appear in the sample but now I can’t set their value in the management client.
The only way I managed to make my custom security actions appear is by adding them to the property list of the role. But in that case I cannot modify their value.
Maybe the issue come from the way I create my security actions ?
public override void Init()
{
//Ajout des permissions
_securityActions.Add(new SecurityAction("ViewAlerts", "Voir les alertes dans la liste"));
_securityActions.Add(new SecurityAction("ViewAlarms", "Voir les alarmes dans la liste"));
// Populate all relevant lists with your plugins etc.
_itemNodes.Add(new ItemNode(TimelineKind, Guid.Empty,
"Timeline", _treeNodeImage,
"Timelines", _treeNodeImage,
Category.Text, true,
ItemsAllowed.Many,
new TimelineItemManager(TimelineKind),
null
));
if (EnvironmentManager.Instance.EnvironmentType == EnvironmentType.SmartClient)
{
_sidePanelPlugins.Add(new TimelineSidePanelPlugin());
_viewItemPlugins.Add(new TimelineViewItemPlugin());
_settingsPanelPlugins.Add(new TimelineSettingsPanelPlugin());
}
if (EnvironmentManager.Instance.EnvironmentType == EnvironmentType.Administration)
{
_tabPlugins.Add(new TimelineTabPlugin());
_toolsOptionsDialogPlugins.Add(new TimelineToolsOptionDialogPlugin());
}
_backgroundPlugins.Add(new TimelineBackgroundPlugin());
}