/// <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 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> /// Gets the Authorization Type [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>The Authorization Type [AllowWithDelegation, Allow, Deny, Neutral].</returns> public virtual NetSqlAzMan.Interfaces.AuthorizationType GetAuthorizationType(Operation operation, NetSqlAzMan.Interfaces.IAzManSid customSID, out System.Collections.Generic.List <System.Collections.Generic.KeyValuePair <string, string> > attributes, params KeyValuePair <string, object>[] contextParameters) { return(this.CheckAccess(this.ItemName(operation), customSID, true, out attributes, contextParameters)); }
/// <summary> /// Gets the Authorization Type [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>The Authorization Type [AllowWithDelegation, Allow, Deny, Neutral].</returns> public virtual NetSqlAzMan.Interfaces.AuthorizationType GetAuthorizationType(Operation operation, NetSqlAzMan.Interfaces.IAzManSid customSID, params KeyValuePair <string, object>[] contextParameters) { return(this.CheckAccess(this.ItemName(operation), customSID, true, contextParameters)); }
/// <summary> /// Checks the access [FOR Custom SID ONLY]. /// </summary> /// <param name="itemName">The Item Name.</param> /// <param name="customSID">The custom SID.</param> /// <param name="operationsOnly">if set to <c>true</c> checks the access for operations only.</param> /// <param name="attributes">Retrieved attributes.</param> /// <param name="contextParameters">Context Parameters for Biz Rules.</param> /// <returns>The Authorization Type [AllowWithDelegation, Allow, Deny, Neutral].</returns> protected virtual NetSqlAzMan.Interfaces.AuthorizationType CheckAccess(string itemName, NetSqlAzMan.Interfaces.IAzManSid customSID, bool operationsOnly, out System.Collections.Generic.List <System.Collections.Generic.KeyValuePair <string, string> > attributes, params KeyValuePair <string, object>[] contextParameters) { return(this.mStorage.CheckAccess(PSNPCheckAccess.STORE_NAME, PSNPCheckAccess.APPLICATION_NAME, itemName, this.mStorage.GetDBUser(customSID), DateTime.Now, operationsOnly, out attributes, contextParameters)); }
/// <summary> /// Checks the access [FOR custom SID ONLY]. /// </summary> /// <param name="itemName">The Item Name.</param> /// <param name="customSID">The custom SID.</param> /// <param name="operationsOnly">if set to <c>true</c> checks the access for operations only.</param> /// <param name="contextParameters">Context Parameters for Biz Rules.</param> /// <returns>The Authorization Type [AllowWithDelegation, Allow, Deny, Neutral].</returns> protected virtual NetSqlAzMan.Interfaces.AuthorizationType CheckAccess(string itemName, NetSqlAzMan.Interfaces.IAzManSid customSID, bool operationsOnly, params KeyValuePair <string, object>[] contextParameters) { return(this.mStorage.CheckAccess(CheckAccessHelper.STORE_NAME, CheckAccessHelper.APPLICATION_NAME, itemName, this.mStorage.GetDBUser(customSID), DateTime.Now, operationsOnly, contextParameters)); }