Creating duties

When designing the security model, duties were decided upon. Creating the duties and adding the relevant permissions is therefore straightforward.

There is one set of privileges that we didn't include in the role duties—the ConFMSVehicleInfoParts privilege. The reason these were created in a separate privilege is that we may add these parts to other parts of the system, as we did on the appointment form. The security administrator can then add this privilege to the appropriate duties and/or roles.

We will create a specific duty for this privilege in order to avoid having to add the privilege directly to a role. We may later develop new parts that should be included in this duty, adding the new privileges to the duty avoids the need to adjust the role.

The mapping from duties to privileges is as follows:

Duty

Privilege

ConFMSVehicleMaintain

Maintaining vehicle information

ConFMSVehicleMaintain

ConFMSVehicleServiceMaintain

Maintaining vehicle service records

ConFMSVehicleServiceMaintain

ConFMSVehicleSetupMaintain

Maintaining fleet management setup

ConFMSVehicleSetupMaintain

ConFMSVehicleStatusMaintain

Maintaining vehicle status

ConFMSVehicleActive

ConFMSVehicleUnavailable

ConFMSVehicleDispose

ConFMSVehicleAcquire

ConFMSVehicleTableGroupMaintain

Maintaining vehicle group for a vehicle

ConFMSVehicleTableGroupMaintain

ConFMSVehicleEdit

Updating current vehicle information

ConFMSVehicleEdit

ConFMSVehicleServiceView

Viewing vehicle service records.

ConFMSVehicleServiceView

ConFMSVehicleServiceCreate

Creation of vehicle service records

ConFMSVehicleServiceCreate

ConFMSVehicleInfoParts

Viewing vehicle and service information parts

ConFMSVehicleInfoParts

ConFMSVehicleServices

Invoking vehicle service server methods

ConFMSVehicleServices

To create the duties, follow these steps for each duty in the preceding table:

  1. Create a new duty under the project's Security | Duties node named according to the table.
  2. Provide a label that provides a short description of the duty, and Description as appropriate.
  3. Drag the appropriate privileges onto the Privileges node of the duty.

We can now add the duties to roles.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.154.139