The TModuleAccessManager class provides provides functions to work with the Module Access Permissions of a Petra DB.
More...
The TModuleAccessManager class provides provides functions to work with the Module Access Permissions of a Petra DB.
◆ CheckUserPermissionsForMethod()
static string Ict.Petra.Server.App.Core.Security.TModuleAccessManager.CheckUserPermissionsForMethod |
( |
System.Type |
AConnectorType, |
|
|
string |
AMethodName, |
|
|
string |
AParameterTypes, |
|
|
Int32 |
ALedgerNumber = -1 , |
|
|
bool |
ADontThrowException = false |
|
) |
| |
|
inlinestatic |
throws an exception if the current user does not have enough permission to access the method; this uses a custom attribute associated with the method of the connector
◆ CheckUserPermissionsForTable()
static bool Ict.Petra.Server.App.Core.Security.TModuleAccessManager.CheckUserPermissionsForTable |
( |
string |
ATableName, |
|
|
TTablePermissionEnum |
APermissionRequested, |
|
|
bool |
ADontThrowException = false |
|
) |
| |
|
inlinestatic |
throws an exception if the current user does not have enough permission to access the table (to read or write)
◆ LoadUserModules()
static string[] Ict.Petra.Server.App.Core.Security.TModuleAccessManager.LoadUserModules |
( |
String |
AUserID, |
|
|
TDBTransaction |
ATransaction |
|
) |
| |
|
inlinestatic |
load the modules available to the given user
- Parameters
-
AUserID | |
ATransaction | Instantiated DB Transaction. |
- Returns
The documentation for this class was generated from the following file: