Panel Name fwAccessControl/fwAccessControl_PrivilegeSelector.pnl
Introduction

Access Right Selector Panel

This panel allows to select one of the access rights defined in the system. It is used, for instance, by the FSM tool to define the access right needed for operation of certain FSM nodes.
The panel is presented in Figure 1.

Figure 1: Access Right selector panel

The access right is composed of two components: domain name and the name of the privilege level in this domain. Conventionally, these two names are selected by colon (:) character, e.g. MyDCS:Control or MyDCS/Tracker/Pixel:UpgradeFirmware (in the latter example, presented in Figure 1, the domain name is MyDCS/Tracker/Pixel, and the privilege chosen in this domain is UpgradePixel).


Instructions
To select an access right:
The access right is composed of two components:
  • Select the domain name in the Domain combo box. The list of Privileges below will be populated with the names of privileges in this domain
  • Click on the name of the privilege in the list
  • Press the OK button to accept the selection
To cancel the selection without returning any value:
Press the Cancel button at any time.
Restrictions

    Dollar Parameters
    Name Description  
    $text Defines the text that appears initially under the Domain combo box. If not specified this will be Please select a domain optional
    $showSystemDomain if set to TRUE, the system domain will be included in the list of domains (FALSE if the parameter is not specified) optional
    $privilege The access right which will be pre-set when the panel is open. This may be used to set the "current access right" when the panel is opened. The access right needs to be specified in the (standard) DomainName:PrivilegeName format. optional

    Return Values from panel
    The panel should be opened using functions from the ChildPanel...Returns(... , df,ds) family.
    When the panel is closed the following values may be returned in the df and ds parameters:
    Variable Value(s) Description
    dyn_float parameter (df[])
    df[1] 1 Access right was selected, OK button pressed
    df[1] 0 Selection was cancelled, Cancel button pressed
    dyn_string parameter (ds[])
    ds[1]
    • If df[1]==1, (i.e. selection was not cancelled) it will contain selected access right (in the DomainName:PrivilegeName format).
    • Otherwise ds[] will be empty

    Back to the documentation of the fwAccessControl component.

    Piotr Golonka, CERN IT/CO-BE