private OraclePermission(OraclePermission permission) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (permission == null) { throw System.Data.Common.ADP.ArgumentNull("permissionAttribute"); } this.CopyFrom(permission); }
private OraclePermission(OraclePermission permission) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (permission == null) { throw System.Data.Common.ADP.ArgumentNull("permissionAttribute"); } this.CopyFrom(permission); }
internal OraclePermission(OracleConnectionString connectionOptions) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (connectionOptions != null) { this._allowBlankPassword = connectionOptions.HasBlankPassword; this.AddPermissionEntry(new System.Data.OracleClient.DBConnectionString(connectionOptions)); } }
internal OraclePermission(OracleConnectionString connectionOptions) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (connectionOptions != null) { this._allowBlankPassword = connectionOptions.HasBlankPassword; this.AddPermissionEntry(new System.Data.OracleClient.DBConnectionString(connectionOptions)); } }
internal void AddPermissionEntry(System.Data.OracleClient.DBConnectionString entry) { if (this._keyvaluetree == null) { this._keyvaluetree = new System.Data.OracleClient.NameValuePermission(); } if (this._keyvalues == null) { this._keyvalues = new ArrayList(); } System.Data.OracleClient.NameValuePermission.AddEntry(this._keyvaluetree, this._keyvalues, entry); this._isUnrestricted = false; }
internal void AddPermissionEntry(System.Data.OracleClient.DBConnectionString entry) { if (this._keyvaluetree == null) { this._keyvaluetree = new System.Data.OracleClient.NameValuePermission(); } if (this._keyvalues == null) { this._keyvalues = new ArrayList(); } System.Data.OracleClient.NameValuePermission.AddEntry(this._keyvaluetree, this._keyvalues, entry); this._isUnrestricted = false; }
public OraclePermission(PermissionState state) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (state == PermissionState.Unrestricted) { this._isUnrestricted = true; } else { if (state != PermissionState.None) { throw System.Data.Common.ADP.InvalidPermissionState(state); } this._isUnrestricted = false; } }
public OraclePermission(PermissionState state) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (state == PermissionState.Unrestricted) { this._isUnrestricted = true; } else { if (state != PermissionState.None) { throw System.Data.Common.ADP.InvalidPermissionState(state); } this._isUnrestricted = false; } }
private void CopyFrom(OraclePermission permission) { this._isUnrestricted = permission.IsUnrestricted(); if (!this._isUnrestricted) { this._allowBlankPassword = permission.AllowBlankPassword; if (permission._keyvalues != null) { this._keyvalues = (ArrayList)permission._keyvalues.Clone(); if (permission._keyvaluetree != null) { this._keyvaluetree = permission._keyvaluetree.CopyNameValue(); } } } }
internal OraclePermission(OraclePermissionAttribute permissionAttribute) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (permissionAttribute == null) { throw System.Data.Common.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); } } }
internal OraclePermission(OraclePermissionAttribute permissionAttribute) { this._keyvaluetree = System.Data.OracleClient.NameValuePermission.Default; if (permissionAttribute == null) { throw System.Data.Common.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); } } }
private void Clear() { this._keyvaluetree = null; this._keyvalues = null; }
private void CopyFrom(OraclePermission permission) { this._isUnrestricted = permission.IsUnrestricted(); if (!this._isUnrestricted) { this._allowBlankPassword = permission.AllowBlankPassword; if (permission._keyvalues != null) { this._keyvalues = (ArrayList) permission._keyvalues.Clone(); if (permission._keyvaluetree != null) { this._keyvaluetree = permission._keyvaluetree.CopyNameValue(); } } } }
private void Clear() { this._keyvaluetree = null; this._keyvalues = null; }