OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.App.Core.Security.TModuleAccessManager Class Reference

The TModuleAccessManager class provides provides functions to work with the Module Access Permissions of a Petra DB. More...

Static Public Member Functions

static string[] LoadUserModules (String AUserID, TDBTransaction ATransaction)
 load the modules available to the given user More...
 
static string CheckUserPermissionsForMethod (System.Type AConnectorType, string AMethodName, string AParameterTypes, Int32 ALedgerNumber=-1, bool ADontThrowException=false)
 
static bool CheckUserPermissionsForTable (string ATableName, TTablePermissionEnum APermissionRequested, bool ADontThrowException=false)
 throws an exception if the current user does not have enough permission to access the table (to read or write) More...
 

Detailed Description

The TModuleAccessManager class provides provides functions to work with the Module Access Permissions of a Petra DB.

Member Function Documentation

◆ 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
ATransactionInstantiated DB Transaction.
Returns

The documentation for this class was generated from the following file: