Access Control component
Variables

UNICOS-compatibility functions

Access Control library

Variables

global bool g_fwAccessControl_ModeUNICOS = false
global string g_fwAccessControl_UnicosDP

UNICOS-compatibility functions

This is a set of functions provided for compatibilty with the UNICOS framework, which used the API of framework 1.0.
 fwAccessControl_getPriviledgeList (dyn_string &priviledgeList, dyn_string &exceptionInfo)
 fwAccessControl_getUserPermission (string priviledgeLevelRequired, string domain, bool &granted, dyn_string &exceptionInfo)
 fwAccessControl_getDomainList (dyn_string &domainList, dyn_string &exceptionInfo)
 fwAccessControl_getUserCharacteristics (string &userName, int &userId, dyn_string &dsGroupName, dyn_int &diGroupId, dyn_string exceptionInfo)
void fwGetUserPermission (string privilegeLevelRequired, string domain, bool &granted, dyn_string &exceptionInfo)

Function Documentation

fwAccessControl_getPriviledgeList ( dyn_string &  priviledgeList,
dyn_string &  exceptionInfo 
)

Returns the names of privileges in UNICOS Access Control scheme.

Parameters:
priviledgeList,:dyn_string, output, the priviledge names
exceptionInfo,:dyn_string, output, Details of any exceptions are returned here
Deprecated:
This is a legacy function that assures compatibility with UNICOS API
One should use fwAccessControl_getPrivilegeNames instead
See also:
fwAccessControl_getPrivilegeNames
fwAccessControl_getUserPermission ( string  priviledgeLevelRequired,
string  domain,
bool &  granted,
dyn_string &  exceptionInfo 
)

checks if a user has a privilege in a domain, according to UNICOS Access Control scheme.

Parameters:
priviledgeLevelRequired,:string, input, the required priviledge
domain,:string, input, the domain
granted,:bool, output, allowed or not
exceptionInfo,:dyn_string, output, Details of any exceptions are returned here
Deprecated:
This is a legacy function that assures compatibility with UNICOS API
One should use fwAccessControl_checkUserPrivilege instead
See also:
fwAccessControl_checkUserPrivilege
fwAccessControl_getDomainList ( dyn_string &  domainList,
dyn_string &  exceptionInfo 
)

Returns the names of domains in UNICOS Access Control scheme.

Parameters:
domainList,:dyn_string, output, the domain names
exceptionInfo,:dyn_string, output, Details of any exceptions are returned here
Deprecated:
This is a legacy function that assures compatibility with UNICOS API
One should use fwAccessControl_getAllDomains instead
See also:
fwAccessControl_getAllDomains
fwAccessControl_getUserCharacteristics ( string &  userName,
int &  userId,
dyn_string &  dsGroupName,
dyn_int &  diGroupId,
dyn_string  exceptionInfo 
)

Returns user information in UNICOS Access Control API.

Parameters:
userName,:string, output, the user name
userId,:int, output, the user id
dsGroupName,:dyn_string, output, the user group name
diGroupId,:dyn_int, output, the user group id
exceptionInfo,:dyn_string, output, Details of any exceptions are returned here
Deprecated:
This is a legacy function that assures compatibility with UNICOS API
One should use fwAccessControl_getUser instead
See also:
fwAccessControl_getUser
void fwGetUserPermission ( string  privilegeLevelRequired,
string  domain,
bool &  granted,
dyn_string &  exceptionInfo 
)

Will return if the current user is granted privileges according to the deprecated framework scheme.

Modification History: None
Constraints: None

Usage: JCOP framework internal, public
PVSS manager usage: VISION

Parameters:
privilegeLevelRequiredstring that contains the name of the seeked privilege
domainstring that contains the domain, the privilege is seeked in
grantedboolean that will contain the result of the query
exceptionInfodyn_string for JCOP Fw exception handling
Deprecated:
This is a legacy function that assures compatibility with obsolete Framework 1.0
One should use fwAccessControl_checkUserPrivilege instead
See also:
fwAccessControl_isGranted , Privilege-checking functions

Variable Documentation

global bool g_fwAccessControl_ModeUNICOS = false

The switch defining UNICOS privilege model

contains the DP name storing UNICOS access control data