C# Class Logistics.Security.LogisticsCheckAccess

NetSqlAzMan Check Access Helper Class for NetSqlAzMan 'Logistics' Application
Inheritance: ILogisticsCheckAccess
Afficher le fichier Open project: edgecomputing/cats Class Usage Examples

Protected Properties

Свойство Type Description
mStorage NetSqlAzMan.Interfaces.IAzManStorage
windowsIdentity System.Security.Principal.WindowsIdentity

Méthodes publiques

Méthode Description
CheckAccess ( System.Operation operation ) : bool

Checks the access [FOR Windows Users ONLY].

CheckAccess ( System.Operation operation, IAzManSid dbUserName ) : bool
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.

LogisticsCheckAccess ( string storageConnectionString ) : System

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

LogisticsCheckAccess ( string storageConnectionString, System windowsIdentity ) : System

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

OpenConnection ( ) : void

Opens the connection

Méthodes protégées

Méthode Description
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].

Method Details

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() protected méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

CheckAccess() public méthode

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Operation operation ) : bool
operation System.Operation The Operation.
Résultat bool

CheckAccess() public méthode

public CheckAccess ( System.Operation operation, IAzManSid dbUserName ) : bool
operation System.Operation
dbUserName IAzManSid
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( Role role ) : bool
role Role The Role.
Résultat bool

CheckAccess() public méthode

Checks the access [FOR custom SID ONLY].
public CheckAccess ( Role role, NetSqlAzMan customSID ) : bool
role Role The Role.
customSID NetSqlAzMan The custom SID.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( Role role, string>.System &attributes ) : bool
role Role The Role.
attributes string>.System Retrieved attributes.
Résultat bool

CheckAccess() public méthode

Checks the access [FOR DB Users ONLY].
public CheckAccess ( Role role, string dbUserName ) : bool
role Role The Role.
dbUserName string The DB UserName.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

Checks the access [FOR Windows Users ONLY].
public CheckAccess ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task The Task.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CheckAccess() public méthode

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.
Résultat bool

CloseConnection() public méthode

Closes the connection
public CloseConnection ( ) : void
Résultat void

GetAuthorizationType() public méthode

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( System.Operation operation ) : NetSqlAzMan.Interfaces.AuthorizationType
operation System.Operation The Operation.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

Gets the Authorization Type [FOR Windows Users ONLY].
public GetAuthorizationType ( Role role ) : NetSqlAzMan.Interfaces.AuthorizationType
role Role The Role.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

GetAuthorizationType() public méthode

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.
Résultat NetSqlAzMan.Interfaces.AuthorizationType

ItemName() public méthode

Retrieve Item name from a Operation Enum.
public ItemName ( System.Operation operation ) : string
operation System.Operation The operation.
Résultat string

ItemName() public méthode

Retrieve Item name from a Role Enum.
public ItemName ( Role role ) : string
role Role The role.
Résultat string

ItemName() public méthode

Retrieve Item name from a Task Enum.
public ItemName ( System.Threading.Tasks.Task task ) : string
task System.Threading.Tasks.Task The task.
Résultat string

LogisticsCheckAccess() public méthode

Initializes a new instance of the T:LogisticsCheckAccess class [DB Users ONLY].
public LogisticsCheckAccess ( string storageConnectionString ) : System
storageConnectionString string The storage connection string.
Résultat System

LogisticsCheckAccess() public méthode

Initializes a new instance of the T:LogisticsCheckAccess class [Windows Users ONLY].
public LogisticsCheckAccess ( string storageConnectionString, System windowsIdentity ) : System
storageConnectionString string The storage connection string.
windowsIdentity System The Windows Principal Identity.
Résultat System

OpenConnection() public méthode

Opens the connection
public OpenConnection ( ) : void
Résultat void

Property Details

mStorage protected_oe property

NetSqlAzMan Storage reference.
protected IAzManStorage,NetSqlAzMan.Interfaces mStorage
Résultat NetSqlAzMan.Interfaces.IAzManStorage

windowsIdentity protected_oe property

User Windows Principal Identity.
protected WindowsIdentity,System.Security.Principal windowsIdentity
Résultat System.Security.Principal.WindowsIdentity