/// <summary> /// Checks the access [FOR custom SID ONLY]. /// </summary> /// <param name="operation">The Operation.</param> /// <param name="customSID">The custom SID.</param> /// <param name="contextParameters">Context Parameters for Biz Rules.</param> /// <returns>True for Access Granted, False for Access Denied.</returns> public virtual bool CheckAccess(Operation operation, NetSqlAzMan.Interfaces.IAzManSid customSID, params KeyValuePair <string, object>[] contextParameters) { NetSqlAzMan.Interfaces.AuthorizationType result = this.GetAuthorizationType(operation, customSID, contextParameters); return((result == AuthorizationType.AllowWithDelegation) || (result == AuthorizationType.Allow)); }
/// <summary> /// Checks the access [FOR custom SID ONLY]. /// </summary> /// <param name="operation">The Operation.</param> /// <param name="customSID">The custom SID.</param> /// <param name="attributes">Retrieved attributes.</param> /// <param name="contextParameters">Context Parameters for Biz Rules.</param> /// <returns>True for Access Granted, False for Access Denied.</returns> public virtual bool CheckAccess(Operation operation, NetSqlAzMan.Interfaces.IAzManSid customSID, out System.Collections.Generic.List <System.Collections.Generic.KeyValuePair <string, string> > attributes, params KeyValuePair <string, object>[] contextParameters) { NetSqlAzMan.Interfaces.AuthorizationType result = this.GetAuthorizationType(operation, customSID, out attributes, contextParameters); return((result == AuthorizationType.AllowWithDelegation) || (result == AuthorizationType.Allow)); }
/// <summary> /// Checks the access [FOR DB Users ONLY]. /// </summary> /// <param name="task">The Task.</param> /// <param name="dbUserName">The DB UserName.</param> /// <param name="contextParameters">Context Parameters for Biz Rules.</param> /// <returns>True for Access Granted, False for Access Denied.</returns> public virtual bool CheckAccess(Task task, string dbUserName, params KeyValuePair <string, object>[] contextParameters) { NetSqlAzMan.Interfaces.AuthorizationType result = this.GetAuthorizationType(task, dbUserName, contextParameters); return((result == AuthorizationType.AllowWithDelegation) || (result == AuthorizationType.Allow)); }