3.1.1.1.39.2.2 AddOperationToRole
The AddOperationToRole procedure adds a row to ADM_RoleOperationMapTable to relate an operation with the corresponding defined UserRole.
The following input parameters are used:
Param_roleId: This is a 64-bit signed integer that specifies the RoleId of the user role for which the operation is being requested.
Param_operationId: This is a signed integer that specifies a valid operation mentioned in the Operation table defined in ADM_RoleOperationMapTable.
The following is the output parameter from this procedure.
Result_operationStatus: This is a BOOLEAN as defined in [MS-DTYP] section 2.2.4.
The following processing steps are involved:
Look up all the rows in ADM_RoleOperationMapTable that have RoleDefinitionId as Param_roleId and OperationId as Param_operationId. If there is no such row, return FALSE.
Add the corresponding row in the table with RoleDefinitionId as Param_roleId and OperationId as Param_operationId. Return TRUE.