public CertPolicyGroup(CertPolicyGroup policy) : this() { Name = policy.Name; Description = policy.Description; }
private void OnPolicyGroupAdded(CertPolicyGroup policyGroup) { CertPolicyGroupMap map = new CertPolicyGroupMap(true); map.CertPolicy = this; map.CertPolicyGroup = policyGroup; }
private void OnPolicyGroupRemoved(CertPolicyGroup policyGroup) { CertPolicyGroupMap map = CertPolicyGroupMap.SingleOrDefault(pg => pg.CertPolicy == this && pg.CertPolicyGroup == policyGroup); if (map != null) { map.Remove(); } }
public void Remove( ) { ConfigDatabase.RemoveAssociativeRecord(this); CertPolicy originalCertPolicy = CertPolicy; originalCertPolicy.CertPolicyGroupMap.Remove(this); CertPolicyGroup originalCertPolicyGroup = CertPolicyGroup; originalCertPolicyGroup.CertPolicyGroupMaps.Remove(this); }
internal void ApplyChanges(CertPolicyGroup source) { this.Description = source.Description; //this.CertPolicyGroupMap = source.CertPolicyGroupMap; //this.m_certPolicyGroupDomainMap.Assign(source.CertPolicyGroupDomainMap); }
internal void CopyFixed(CertPolicyGroup source) { this.ID = source.ID; this.Name = source.Name; this.CreateDate = source.CreateDate; }
public void UpdateGroupAttributes(CertPolicyGroup policyGroup) { try { Store.CertPolicyGroups.Update(policyGroup); } catch (Exception ex) { throw CreateFault("UpdateGroupAttributes", ex); } }
public CertPolicyGroup AddPolicyGroup(CertPolicyGroup policyGroup) { try { CertPolicyGroup certPolicyGroup = new CertPolicyGroup(policyGroup); return Store.CertPolicyGroups.Add(certPolicyGroup); } catch (Exception ex) { throw CreateFault("AddPolicyGroup", ex); } }