C# Класс Cats.Services.Security.PSNPCheckAccess

NetSqlAzMan Check Access Helper Class for NetSqlAzMan 'PSNP' Application
Наследование: IPSNPCheckAccess
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
mStorage NetSqlAzMan.Interfaces.IAzManStorage
windowsIdentity System.Security.Principal.WindowsIdentity

Открытые методы

Метод Описание
CheckAccess ( System.Operation operation ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( System.Operation operation, NetSqlAzMan customSID ) : bool

Checks the access [FOR custom SID ONLY].

CheckAccess ( System.Operation operation, NetSqlAzMan customSID, string>.System &attributes ) : bool

Checks the access [FOR custom SID ONLY].

CheckAccess ( System.Operation operation, string>.System &attributes ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( System.Operation operation, string dbUserName ) : bool

Checks the access [FOR DB Users ONLY].

CheckAccess ( System.Operation operation, string dbUserName, string>.System &attributes ) : bool

Checks the access [FOR DB Users ONLY].

CheckAccess ( Role role ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( Role role, NetSqlAzMan customSID ) : bool

Checks the access [FOR custom SID ONLY].

CheckAccess ( Role role, NetSqlAzMan customSID, string>.System &attributes ) : bool

Checks the access [FOR Custom SID ONLY].

CheckAccess ( Role role, string>.System &attributes ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( Role role, string dbUserName ) : bool

Checks the access [FOR DB Users ONLY].

CheckAccess ( Role role, string dbUserName, string>.System &attributes ) : bool

Checks the access [FOR DB Users ONLY].

CheckAccess ( System.Threading.Tasks.Task task ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( System.Threading.Tasks.Task task, NetSqlAzMan customSID ) : bool

Checks the access [FOR Custom SID ONLY].

CheckAccess ( System.Threading.Tasks.Task task, NetSqlAzMan customSID, string>.System &attributes ) : bool

Checks the access [FOR Custom SID ONLY].

CheckAccess ( System.Threading.Tasks.Task task, string>.System &attributes ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( System.Threading.Tasks.Task task, string dbUserName ) : bool

Checks the access [FOR DB Users ONLY].

CheckAccess ( System.Threading.Tasks.Task task, string dbUserName, string>.System &attributes ) : bool

Checks the access [FOR DB Users ONLY].

CloseConnection ( ) : void

Closes the connection

GetAuthorizationType ( System.Operation operation ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( System.Operation operation, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Custom SID ONLY].

GetAuthorizationType ( System.Operation operation, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR custom SID ONLY].

GetAuthorizationType ( System.Operation operation, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( System.Operation operation, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

GetAuthorizationType ( System.Operation operation, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

GetAuthorizationType ( Role role ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( Role role, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Custom SID ONLY].

GetAuthorizationType ( Role role, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Custom SID ONLY].

GetAuthorizationType ( Role role, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( Role role, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

GetAuthorizationType ( Role role, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Custom SID ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR custom SID ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR Windows Users ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

GetAuthorizationType ( System.Threading.Tasks.Task task, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Gets the Authorization Type [FOR DB Users ONLY].

ItemName ( System.Operation operation ) : string

Retrieve Item name from a Operation Enum.

ItemName ( Role role ) : string

Retrieve Item name from a Role Enum.

ItemName ( System.Threading.Tasks.Task task ) : string

Retrieve Item name from a Task Enum.

OpenConnection ( ) : void

Opens the connection

PSNPCheckAccess ( string storageConnectionString ) : System

Initializes a new instance of the T:PSNPCheckAccess class [DB Users ONLY].

PSNPCheckAccess ( string storageConnectionString, System windowsIdentity ) : System

Initializes a new instance of the T:PSNPCheckAccess class [Windows Users ONLY].

Защищенные методы

Метод Описание
CheckAccess ( string itemName, NetSqlAzMan customSID, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR custom SID ONLY].

CheckAccess ( string itemName, NetSqlAzMan customSID, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR Custom SID ONLY].

CheckAccess ( string itemName, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR Windows Users ONLY].

CheckAccess ( string itemName, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR Windows Users ONLY].

CheckAccess ( string itemName, string dbUserName, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR DB Users ONLY].

CheckAccess ( string itemName, string dbUserName, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType

Checks the access [FOR DB Users ONLY].

Описание методов

CheckAccess() защищенный Метод

Checks the access [FOR custom SID ONLY].
protected CheckAccess ( string itemName, NetSqlAzMan customSID, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
customSID NetSqlAzMan The custom SID.
operationsOnly bool if set to true checks the access for operations only.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() защищенный Метод

Checks the access [FOR Custom SID ONLY].
protected CheckAccess ( string itemName, NetSqlAzMan customSID, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
customSID NetSqlAzMan The custom SID.
operationsOnly bool if set to true checks the access for operations only.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() защищенный Метод

Checks the access [FOR Windows Users ONLY].
protected CheckAccess ( string itemName, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
operationsOnly bool if set to true checks the access for operations only.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() защищенный Метод

Checks the access [FOR Windows Users ONLY].
protected CheckAccess ( string itemName, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
operationsOnly bool if set to true checks the access for operations only.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() защищенный Метод

Checks the access [FOR DB Users ONLY].
protected CheckAccess ( string itemName, string dbUserName, bool operationsOnly ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
dbUserName string The DB User Name.
operationsOnly bool if set to true checks the access for operations only.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() защищенный Метод

Checks the access [FOR DB Users ONLY].
protected CheckAccess ( string itemName, string dbUserName, bool operationsOnly, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
itemName string The Item Name.
dbUserName string The DB User Name.
operationsOnly bool if set to true checks the access for operations only.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Operation operation ) : bool
operation System.Operation The Operation.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR custom SID ONLY].
public CheckAccess ( System.Operation operation, NetSqlAzMan customSID ) : bool
operation System.Operation The Operation.
customSID NetSqlAzMan The custom SID.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR custom SID ONLY].
public CheckAccess ( System.Operation operation, NetSqlAzMan customSID, string>.System &attributes ) : bool
operation System.Operation The Operation.
customSID NetSqlAzMan The custom SID.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Operation operation, string>.System &attributes ) : bool
operation System.Operation The Operation.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( System.Operation operation, string dbUserName ) : bool
operation System.Operation The Operation.
dbUserName string The DB UserName.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( System.Operation operation, string dbUserName, string>.System &attributes ) : bool
operation System.Operation The Operation.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( Role role ) : bool
role Role The Role.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR custom SID ONLY].
public CheckAccess ( Role role, NetSqlAzMan customSID ) : bool
role Role The Role.
customSID NetSqlAzMan The custom SID.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Custom SID ONLY].
public CheckAccess ( Role role, NetSqlAzMan customSID, string>.System &attributes ) : bool
role Role The Role.
customSID NetSqlAzMan The custom SID.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( Role role, string>.System &attributes ) : bool
role Role The Role.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( Role role, string dbUserName ) : bool
role Role The Role.
dbUserName string The DB UserName.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( Role role, string dbUserName, string>.System &attributes ) : bool
role Role The Role.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task The Task.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Custom SID ONLY].
public CheckAccess ( System.Threading.Tasks.Task task, NetSqlAzMan customSID ) : bool
task System.Threading.Tasks.Task The Task.
customSID NetSqlAzMan The Custom SID.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Custom SID ONLY].
public CheckAccess ( System.Threading.Tasks.Task task, NetSqlAzMan customSID, string>.System &attributes ) : bool
task System.Threading.Tasks.Task The Task.
customSID NetSqlAzMan The custom SID.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Threading.Tasks.Task task, string>.System &attributes ) : bool
task System.Threading.Tasks.Task The Task.
attributes string>.System Retrieved attributes.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( System.Threading.Tasks.Task task, string dbUserName ) : bool
task System.Threading.Tasks.Task The Task.
dbUserName string The DB UserName.
Результат bool

CheckAccess() публичный Метод

Checks the access [FOR DB Users ONLY].
public CheckAccess ( System.Threading.Tasks.Task task, string dbUserName, string>.System &attributes ) : bool
task System.Threading.Tasks.Task The Task.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат bool

CloseConnection() публичный Метод

Closes the connection
public CloseConnection ( ) : void
Результат void

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( System.Operation operation ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Custom SID ONLY].
public GetAuthorizationType ( System.Operation operation, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
customSID NetSqlAzMan The Custom SID.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR custom SID ONLY].
public GetAuthorizationType ( System.Operation operation, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
customSID NetSqlAzMan The Custom SID.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( System.Operation operation, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( System.Operation operation, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
dbUserName string The DB UserName.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( System.Operation operation, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( Role role ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Custom SID ONLY].
public GetAuthorizationType ( Role role, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
customSID NetSqlAzMan The custom SID.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Custom SID ONLY].
public GetAuthorizationType ( Role role, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
customSID NetSqlAzMan The custom SID.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( Role role, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( Role role, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
dbUserName string The DB UserName.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( Role role, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Custom SID ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task, NetSqlAzMan customSID ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
customSID NetSqlAzMan The Custom SID.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR custom SID ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task, NetSqlAzMan customSID, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
customSID NetSqlAzMan The Custom SID.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task, string dbUserName ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
dbUserName string The DB UserName.
Результат NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() публичный Метод

Gets the Authorization Type [FOR DB Users ONLY].
public GetAuthorizationType ( System.Threading.Tasks.Task task, string dbUserName, string>.System &attributes ) : NetSqlAzMan.Interfaces.AuthorizationType
task System.Threading.Tasks.Task The Task.
dbUserName string The DB UserName.
attributes string>.System Retrieved attributes.
Результат NetSqlAzMan.Interfaces.AuthorizationType

ItemName() публичный Метод

Retrieve Item name from a Operation Enum.
public ItemName ( System.Operation operation ) : string
operation System.Operation The operation.
Результат string

ItemName() публичный Метод

Retrieve Item name from a Role Enum.
public ItemName ( Role role ) : string
role Role The role.
Результат string

ItemName() публичный Метод

Retrieve Item name from a Task Enum.
public ItemName ( System.Threading.Tasks.Task task ) : string
task System.Threading.Tasks.Task The task.
Результат string

OpenConnection() публичный Метод

Opens the connection
public OpenConnection ( ) : void
Результат void

PSNPCheckAccess() публичный Метод

Initializes a new instance of the T:PSNPCheckAccess class [DB Users ONLY].
public PSNPCheckAccess ( string storageConnectionString ) : System
storageConnectionString string The storage connection string.
Результат System

PSNPCheckAccess() публичный Метод

Initializes a new instance of the T:PSNPCheckAccess class [Windows Users ONLY].
public PSNPCheckAccess ( string storageConnectionString, System windowsIdentity ) : System
storageConnectionString string The storage connection string.
windowsIdentity System The Windows Principal Identity.
Результат System

Описание свойств

mStorage защищенное свойство

NetSqlAzMan Storage reference.
protected IAzManStorage,NetSqlAzMan.Interfaces mStorage
Результат NetSqlAzMan.Interfaces.IAzManStorage

windowsIdentity защищенное свойство

User Windows Principal Identity.
protected WindowsIdentity,System.Security.Principal windowsIdentity
Результат System.Security.Principal.WindowsIdentity