protected override void WriteResult(IConfigurable dataObject) { PsDlpCompliancePolicy psDlpCompliancePolicy = new PsDlpCompliancePolicy(dataObject as PolicyStorage) { StorageBindings = Utils.LoadBindingStoragesByPolicy(base.DataSession, dataObject as PolicyStorage) }; psDlpCompliancePolicy.PopulateTaskProperties(this, base.DataSession as IConfigurationSession); base.WriteResult(psDlpCompliancePolicy); }
protected override void WriteResult(IConfigurable dataObject) { PsDlpCompliancePolicy psDlpCompliancePolicy = new PsDlpCompliancePolicy(dataObject as PolicyStorage) { StorageBindings = Utils.LoadBindingStoragesByPolicy(base.DataSession, dataObject as PolicyStorage) }; foreach (BindingStorage bindingStorage in psDlpCompliancePolicy.StorageBindings) { base.WriteVerbose(Strings.VerboseLoadBindingStorageObjects(bindingStorage.ToString(), psDlpCompliancePolicy.ToString())); } psDlpCompliancePolicy.PopulateTaskProperties(this, base.DataSession as IConfigurationSession); if (psDlpCompliancePolicy.ReadOnly) { this.WriteWarning(Strings.WarningTaskPolicyIsTooAdvancedToRead(psDlpCompliancePolicy.Name)); } base.PopulateDistributionStatus(psDlpCompliancePolicy, dataObject as PolicyStorage); base.WriteResult(psDlpCompliancePolicy); }