internal void SuppressPiiData(PiiMap piiMap) { base.Name = (SuppressingPiiProperty.TryRedact(ADObjectSchema.Name, base.Name, piiMap) as string); if (this.ExchangeBinding != null) { foreach (BindingMetadata binding in this.ExchangeBinding) { Utils.RedactBinding(binding, false); } } if (this.SharePointBinding != null) { foreach (BindingMetadata binding2 in this.SharePointBinding) { Utils.RedactBinding(binding2, true); } } if (this.OneDriveBinding != null) { foreach (BindingMetadata binding3 in this.OneDriveBinding) { Utils.RedactBinding(binding3, true); } } if (this.DistributionResults != null) { foreach (PolicyDistributionErrorDetails policyDistributionErrorDetails in this.DistributionResults) { policyDistributionErrorDetails.Redact(); } } }
internal override void SuppressPiiData(PiiMap piiMap) { base.SuppressPiiData(piiMap); this.dlpPolicyMetaData.Name = (SuppressingPiiProperty.TryRedact(DlpPolicySchemaBase.Name, this.dlpPolicyMetaData.Name, piiMap) as string); this.dlpPolicyMetaData.Description = SuppressingPiiProperty.TryRedactValue <string>(DlpPolicySchemaBase.Description, this.dlpPolicyMetaData.Description); this.dlpPolicyMetaData.PublisherName = SuppressingPiiProperty.TryRedactValue <string>(DlpPolicySchemaBase.PublisherName, this.dlpPolicyMetaData.PublisherName); this.dlpPolicyMetaData.Keywords = SuppressingPiiProperty.TryRedactValue <List <string> >(DlpPolicySchemaBase.Keywords, this.dlpPolicyMetaData.Keywords); }
public void PopulateSyncObjectData() { this.SyncObjectData = string.Empty; SortedDictionary <string, object> sortedDictionary = new SortedDictionary <string, object>(); foreach (PropertyDefinition propertyDefinition in this.MySyncObject.Schema.AllProperties) { SyncPropertyDefinition syncPropertyDefinition = propertyDefinition as SyncPropertyDefinition; if (syncPropertyDefinition != null && this.MySyncObject.IsPropertyPresent(syncPropertyDefinition)) { object obj = this.MySyncObject[syncPropertyDefinition]; ISyncProperty syncProperty = obj as ISyncProperty; if (syncProperty != null) { if (!syncProperty.HasValue) { continue; } obj = syncProperty.GetValue(); } if (obj != null) { if (SuppressingPiiContext.NeedPiiSuppression) { obj = SuppressingPiiProperty.TryRedact(syncPropertyDefinition, obj, null); } IList list = obj as IList; if (list != null) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("("); for (int i = 0; i < list.Count; i++) { if (i == 0) { stringBuilder.Append(list[i].ToString()); } else { stringBuilder.AppendFormat(",{0}", list[i].ToString()); } } stringBuilder.Append(")"); obj = stringBuilder.ToString(); } sortedDictionary[propertyDefinition.Name] = obj; } } } StringBuilder stringBuilder2 = new StringBuilder(); foreach (string text in sortedDictionary.Keys) { object obj2 = sortedDictionary[text]; stringBuilder2.AppendFormat("[{0}]:{1}\r\n", text, obj2.ToString()); } this.SyncObjectData = stringBuilder2.ToString(); }
internal virtual void SuppressPiiData(PiiMap piiMap) { this.transportRule.DistinguishedName = (SuppressingPiiProperty.TryRedact(RulePresentationObjectBaseSchema.DistinguishedName, this.transportRule.DistinguishedName, piiMap) as string); this.transportRule.Name = (SuppressingPiiProperty.TryRedact(RulePresentationObjectBaseSchema.Name, this.transportRule.Name, piiMap) as string); }
internal virtual void SuppressPiiData(PiiMap piiMap) { this.adDlpPolicy.DistinguishedName = (SuppressingPiiProperty.TryRedact(DlpPolicySchemaBase.DistinguishedName, this.adDlpPolicy.DistinguishedName, piiMap) as string); }
internal void SuppressPiiData(PiiMap piiMap) { base.Name = (SuppressingPiiProperty.TryRedact(ADObjectSchema.Name, base.Name, piiMap) as string); }