예제 #1
0
        public CertPolicyGroup(CertPolicyGroup policy)
            : this()
        {

            Name = policy.Name;
            Description = policy.Description;
        }
예제 #2
0
        private void OnPolicyGroupAdded(CertPolicyGroup policyGroup)
        {
            CertPolicyGroupMap map = new CertPolicyGroupMap(true);

            map.CertPolicy      = this;
            map.CertPolicyGroup = policyGroup;
        }
예제 #3
0
        private void OnPolicyGroupRemoved(CertPolicyGroup policyGroup)
        {
            CertPolicyGroupMap map =
                CertPolicyGroupMap.SingleOrDefault(pg => pg.CertPolicy == this && pg.CertPolicyGroup == policyGroup);

            if (map != null)
            {
                map.Remove();
            }
        }
예제 #4
0
        public void Remove( )
        {
            ConfigDatabase.RemoveAssociativeRecord(this);

            CertPolicy originalCertPolicy = CertPolicy;

            originalCertPolicy.CertPolicyGroupMap.Remove(this);

            CertPolicyGroup originalCertPolicyGroup = CertPolicyGroup;

            originalCertPolicyGroup.CertPolicyGroupMaps.Remove(this);
        }
예제 #5
0
파일: CertPolicy.cs 프로젝트: DM-TOR/nhin-d
 private void OnPolicyGroupRemoved(CertPolicyGroup policyGroup)
 {
     CertPolicyGroupMap map =
         CertPolicyGroupMap.SingleOrDefault(pg => pg.CertPolicy == this && pg.CertPolicyGroup == policyGroup);
     if (map != null)
     {
         map.Remove();
     }
 }
예제 #6
0
파일: CertPolicy.cs 프로젝트: DM-TOR/nhin-d
 private void OnPolicyGroupAdded(CertPolicyGroup policyGroup)
 {
     CertPolicyGroupMap map = new CertPolicyGroupMap(true);
     map.CertPolicy = this;
     map.CertPolicyGroup = policyGroup;
 }
예제 #7
0
 internal void ApplyChanges(CertPolicyGroup source)
 {
     this.Description = source.Description;
     //this.CertPolicyGroupMap = source.CertPolicyGroupMap;
     //this.m_certPolicyGroupDomainMap.Assign(source.CertPolicyGroupDomainMap);
 }
예제 #8
0
 internal void CopyFixed(CertPolicyGroup source)
 {
     this.ID = source.ID;
     this.Name = source.Name;
     this.CreateDate = source.CreateDate;
     
 }
예제 #9
0
 public CertPolicyGroup(CertPolicyGroup policy)
     : this()
 {
     Name        = policy.Name;
     Description = policy.Description;
 }
예제 #10
0
 internal void ApplyChanges(CertPolicyGroup source)
 {
     this.Description = source.Description;
     //this.CertPolicyGroupMap = source.CertPolicyGroupMap;
     //this.m_certPolicyGroupDomainMap.Assign(source.CertPolicyGroupDomainMap);
 }
예제 #11
0
 internal void CopyFixed(CertPolicyGroup source)
 {
     this.ID         = source.ID;
     this.Name       = source.Name;
     this.CreateDate = source.CreateDate;
 }
예제 #12
0
 public void UpdateGroupAttributes(CertPolicyGroup policyGroup)
 {
     try
     {
         Store.CertPolicyGroups.Update(policyGroup);
     }
     catch (Exception ex)
     {
         throw CreateFault("UpdateGroupAttributes", ex);
     }
 }
예제 #13
0
 public CertPolicyGroup AddPolicyGroup(CertPolicyGroup policyGroup)
 {
     try
     {
         CertPolicyGroup certPolicyGroup = new CertPolicyGroup(policyGroup);
         return Store.CertPolicyGroups.Add(certPolicyGroup);
     }
     catch (Exception ex)
     {
         throw CreateFault("AddPolicyGroup", ex);
     }
 }