protected override void ValidateWrite(List <ValidationError> errors) { base.ValidateWrite(errors); errors.AddRange(LegacyDatabase.ValidateAscendingQuotas(this.propertyBag, new ProviderPropertyDefinition[] { LegacyDatabaseSchema.IssueWarningQuota, LegacyPublicFolderDatabaseSchema.ProhibitPostQuota }, this.Identity)); if (!this.UseCustomReferralServerList && this.CustomReferralServerList.Count != 0) { this.CustomReferralServerList.Clear(); } foreach (ServerCostPair serverCostPair in this.CustomReferralServerList) { if (string.IsNullOrEmpty(serverCostPair.ServerName)) { errors.Add(new ObjectValidationError(DirectoryStrings.PublicFolderReferralServerNotExisting(serverCostPair.ServerGuid.ToString()), this.Identity, string.Empty)); } } if (this.CustomReferralServerList.Count > 1) { for (int i = 0; i < this.CustomReferralServerList.Count - 1; i++) { for (int j = i + 1; j < this.CustomReferralServerList.Count; j++) { if (this.CustomReferralServerList[i].ServerGuid == this.CustomReferralServerList[j].ServerGuid && this.CustomReferralServerList[i].Cost != this.CustomReferralServerList[j].Cost) { errors.Add(new ObjectValidationError(DirectoryStrings.ErrorPublicFolderReferralConflict(this.CustomReferralServerList[i].ToString(), this.CustomReferralServerList[j].ToString()), this.Identity, string.Empty)); break; } } } } }
protected override void ValidateWrite(List <ValidationError> errors) { base.ValidateWrite(errors); errors.AddRange(LegacyDatabase.ValidateAscendingQuotas(this.propertyBag, new ProviderPropertyDefinition[] { LegacyDatabaseSchema.IssueWarningQuota, LegacyMailboxDatabaseSchema.ProhibitSendQuota, LegacyMailboxDatabaseSchema.ProhibitSendReceiveQuota }, this.Identity)); }