unRecipe 9.1.0
|
Functions | |
void | unRecipeFunctions_getDeviceDefaultPrivileges (string sDpType, string &sOperatorPrivileges, string &sExpertPrivileges, string &sAdminPrivileges, dyn_string exceptionInfo) |
void | unRecipeFunctions_updateRecipeClassPrivileges (string sDpName) |
void | unRecipeFunctions_updateRecipeInstancePrivileges (string sDpName, string sClassName) |
void | unRecipeFunctions_arrangeRecipeInstancePrivileges (string sDefaultOperatorPrivileges, string sDefaultExpertPrivileges, string sDefaultAdminPrivileges, string &sDeviceOperatorPrivileges, string &sDeviceExpertPrivileges, string &sDeviceAdminPrivileges) |
void | _unRecipeFunctions_addPrivileges (dyn_string dsDefaultPrivileges, dyn_string &dsDevicePrivileges1, dyn_string dsDevicePrivileges2, dyn_string dsDevicePrivileges3) |
void | _unRecipeFunctions_removeObsoletePrivileges (dyn_string &dsDevicePrivileges, dyn_string dsDefaultPrivileges1, dyn_string dsDefaultPrivileges2, dyn_string dsDefaultPrivileges3) |
void | unRecipeFunctions_getRecipeInstancePredefinedPrivileges (string sClassName, string &sRcpInstanceDp, string &sAcDomain, string &sOperatorAction, string &sExpertAction, string &sAdminAction) |
void | unRecipeFunctions_editRecipeClassPrivileges (string sRcpClassDp) |
void | _unRecipeFunctions_getDevicePrivileges (string sDpName, string &sAcDomain, string &sOperatorAction, string &sExpertAction, string &sAdminAction) |
void | _unRecipeFunctions_setDevicePrivileges (string sDpName, string sAcDomain, string sOperatorAction, string sExpertAction, string sAdminAction) |
void | unRecipeFunctions_getDefaultClassPrivileges (string sRoleType, dyn_string &dsPrivileges) |
void | unRecipeFunctions_getDefaultInstancePrivileges (string sRoleType, dyn_string &dsPrivileges) |
UNICOS Copyright (C) CERN 2017 All rights reserved
unRcpFunctions_privileges.ctl This file contains functions related to the recipes privileges.
void unRecipeFunctions_getDeviceDefaultPrivileges | ( | string | sDpType, |
string & | sOperatorPrivileges, | ||
string & | sExpertPrivileges, | ||
string & | sAdminPrivileges, | ||
dyn_string | exceptionInfo | ||
) |
Get the default privileges of a recipe device (recipe class or recipe instance).
sDpType | - [IN] Datapoint type which default privileges are required. |
sOperatorPrivileges | - [OUT] Default privileges for the operator. |
sExpertPrivileges | - [OUT] Default privileges for the expert. |
sAdminPrivileges | - [OUT] Default privileges for the administrator. |
exceptionInfo | - [OUT] Standard exception handling variable. |
void unRecipeFunctions_updateRecipeClassPrivileges | ( | string | sDpName | ) |
Update the recipe class privileges.
sDpName | - [IN] Recipe class DP name. |
void unRecipeFunctions_updateRecipeInstancePrivileges | ( | string | sDpName, |
string | sClassName | ||
) |
Update the recipe instances privileges.
sDpName | - [IN] DP name of the recipe instance. |
sClassName | - [IN] Recipe class name. |
void unRecipeFunctions_arrangeRecipeInstancePrivileges | ( | string | sDefaultOperatorPrivileges, |
string | sDefaultExpertPrivileges, | ||
string | sDefaultAdminPrivileges, | ||
string & | sDeviceOperatorPrivileges, | ||
string & | sDeviceExpertPrivileges, | ||
string & | sDeviceAdminPrivileges | ||
) |
Adds the unassigned privileges and removes the obsolete ones.
sDefaultOperatorPrivileges | - [IN] Default operator privileges. |
sDefaultExpertPrivileges | - [IN] Default expert privileges. |
sDefaultAdminPrivileges | - [IN] Default admin privileges. |
sDeviceOperatorPrivileges | - [IN/OUT] Device operator privileges. |
sDeviceExpertPrivileges | - [IN/OUT] Device expert privileges. |
sDeviceAdminPrivileges | - [IN/OUT] Device admin privileges. |
|
private |
Auxiliary function to add the default privileges to the privileges list. If none of the dyn_strings (dsDevicePrivileges1, dsDevicePrivileges2, dsDevicePrivileges3) contains the privileges included in dsDefaultPrivileges, the privilege will be added to dsDevicePrivileges1. Otherwise (the privilege is included in any dyn_string) no actions will be done.
dsDefaultPrivileges | - [IN] The list of privileges to add. |
dsDevicePrivileges1 | - [OUT] The list where add the privileges if they don't exist in any dyn_string. |
dsDevicePrivileges2 | - [IN] Device privileges list. |
dsDevicePrivileges3 | - [IN] Device privileges list. |
|
private |
Auxiliary function to remove the obsolete privileges from the privileges list.
dsDevicePrivileges | - [OUT] List where the obsolete parameters will be removed. |
dsDefaultPrivileges1 | - [IN] Default privileges list 1 (e.g. operator). |
dsDefaultPrivileges2 | - [IN] Default privileges list 2 (e.g. expert). |
dsDefaultPrivileges3 | - [IN] Default privileges list 3 (e.g. admin). |
void unRecipeFunctions_getRecipeInstancePredefinedPrivileges | ( | string | sClassName, |
string & | sRcpInstanceDp, | ||
string & | sAcDomain, | ||
string & | sOperatorAction, | ||
string & | sExpertAction, | ||
string & | sAdminAction | ||
) |
Gets the predefined privileges for a recipe instance based on the recipe class privileges.
sClassName | - [IN] Recipe class name |
sRcpInstanceDp | - [OUT] Datapoint name of the predefined recipe instance |
sAcDomain | - [OUT] Access control domain |
sOperatorAction | - [OUT] Operator privileges |
sExpertAction | - [OUT] Expert privileges |
sAdminAction | - [OUT] Admin privileges |
void unRecipeFunctions_editRecipeClassPrivileges | ( | string | sRcpClassDp | ) |
Open a new window to edit the recipe class privileges and parameters.
sRcpClassDp | - [IN] The recipe class DP. |
|
private |
Auxiliary function to get the device privileges.
sDpName | - [IN] Datapoint name of the device. |
sAcDomain | - [OUT] Access control domain for the device. |
sOperatorAction | - [OUT] Privileged actions for the operator. |
sExpertAction | - [OUT] Privileged actions for the expert. |
sAdminAction | - [OUT] Privileged actions for the admin. |
|
private |
Auxiliary function to set the device privileges.
sDpName | - [IN] Datapoint name of the device. |
sAcDomain | - [IN] Access control domain for the device. |
sOperatorAction | - [IN] Privileged actions for the operator. |
sExpertAction | - [IN] Privileged actions for the expert. |
sAdminAction | - [IN] Privileged actions for the admin. |
void unRecipeFunctions_getDefaultClassPrivileges | ( | string | sRoleType, |
dyn_string & | dsPrivileges | ||
) |
Function used to get the default privileges for the recipe class actions.
sRoleType | - [IN] Role type (operator, expert or admin). |
dsPrivileges | - [OUT] List of default privileged actions for the specified role. |
void unRecipeFunctions_getDefaultInstancePrivileges | ( | string | sRoleType, |
dyn_string & | dsPrivileges | ||
) |
Function used to get the default privileges for the recipe instance actions.
sRoleType | - [IN] Role type (operator, expert or admin). |
dsPrivileges | - [OUT] List of default privileged actions for the specified role. |