Example #1
0
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute) { // V1.0.5000, for CreatePermission
     if (null == permissionAttribute) {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     _isUnrestricted = permissionAttribute.Unrestricted;
     if (!_isUnrestricted) {
         _allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions()) { // MDAC 86773
             Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 /// <include file='doc\DBDataPermission.uex' path='docs/doc[@for="DBDataPermission.DBDataPermission4"]/*' />
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)   // for CreatePermission
 {
     if (null == permissionAttribute)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     _isUnrestricted = permissionAttribute.Unrestricted;
     if (!_isUnrestricted)
     {
         _allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())   // MDAC 86773
         {
             Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
 {
     this._keyvaluetree = NameValuePermission.Default;
     if (permissionAttribute == null)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     this._isUnrestricted = permissionAttribute.Unrestricted;
     if (!this._isUnrestricted)
     {
         this._allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())
         {
             this.Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
 {
     this._keyvaluetree = NameValuePermission.Default;
     if (permissionAttribute == null)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     this._isUnrestricted = permissionAttribute.Unrestricted;
     if (!this._isUnrestricted)
     {
         this._allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())
         {
             this.Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
		protected DBDataPermission (DBDataPermissionAttribute permissionAttribute)
		{
			if (permissionAttribute == null)
				throw new ArgumentNullException ("permissionAttribute");

			_connections = new Hashtable ();
			if (permissionAttribute.Unrestricted) {
				state = PermissionState.Unrestricted;
			}
			else {
				state = PermissionState.None;
				allowBlankPassword = permissionAttribute.AllowBlankPassword;
				if (permissionAttribute.ConnectionString.Length > 0) {
					Add (permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, 
						permissionAttribute.KeyRestrictionBehavior);
				}
			}
		}
Example #6
0
        protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
        {
            if (permissionAttribute == null)
            {
                throw new ArgumentNullException("permissionAttribute");
            }

            _connections = new Hashtable();
            if (permissionAttribute.Unrestricted)
            {
                state = PermissionState.Unrestricted;
            }
            else
            {
                state = PermissionState.None;
                allowBlankPassword = permissionAttribute.AllowBlankPassword;
                if (permissionAttribute.ConnectionString.Length > 0)
                {
                    Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions,
                        permissionAttribute.KeyRestrictionBehavior);
                }
            }
        }
Example #7
0
		// easier (and common) permission creation from attribute class
		internal OraclePermission (DBDataPermissionAttribute attribute)
			: base (attribute)
		{
		}
Example #8
0
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
 {
 }
		internal FirebirdClientPermission(DBDataPermissionAttribute permissionAttribute) 
			: base (permissionAttribute)
		{
		}
Example #10
0
		public NonAbstractDBDataPermission (DBDataPermissionAttribute permissionAttribute)
			: base (permissionAttribute)
		{
		}
		// easier (and common) permission creation from attribute class
		internal SqlClientPermission (DBDataPermissionAttribute attribute)
			: base (attribute)
		{
		}
		// easier (and common) permission creation from attribute class
		internal OleDbPermission (DBDataPermissionAttribute attribute)
			: base (attribute)
		{
		}