예제 #1
0
        public void CompareTo(FullRecord fullRecord, ObservableCollection <UpdateRecord> updateRecords)
        {
            string id, name, description, source, objectOfImpact;
            bool   privacyViolation, integrityViolation, accessViolation;

            if (this.UBI_ID != fullRecord.UBI_ID)
            {
                updateRecords.Add(new UpdateRecord("UBI_ID", this.UBI_ID, fullRecord.UBI_ID));
            }

            if (this.UBI_Name != fullRecord.UBI_Name)
            {
                updateRecords.Add(new UpdateRecord("UBI_Name", this.UBI_Name, fullRecord.UBI_Name));
            }

            if (this.Description != fullRecord.Description)
            {
                updateRecords.Add(new UpdateRecord("Description", this.Description, fullRecord.Description));
            }

            if (this.SourceOfThreat != fullRecord.SourceOfThreat)
            {
                updateRecords.Add(new UpdateRecord("Source_Of_Threat", this.SourceOfThreat, fullRecord.SourceOfThreat));
            }

            if (this.ObjectOfImpact != fullRecord.ObjectOfImpact)
            {
                updateRecords.Add(new UpdateRecord("Object_Of_Impact", this.SourceOfThreat, fullRecord.SourceOfThreat));
            }

            if (this.PrivacyViolation != fullRecord.PrivacyViolation)
            {
                updateRecords.Add(new UpdateRecord("Is_Privacy_Violant", this.PrivacyViolation.ToString(), fullRecord.PrivacyViolation.ToString()));
            }

            if (this.IntegrityViolation != fullRecord.IntegrityViolation)
            {
                updateRecords.Add(new UpdateRecord("Is_Integrity_Violant", this.IntegrityViolation.ToString(), fullRecord.IntegrityViolation.ToString()));
            }

            if (this.AccessViolation != fullRecord.AccessViolation)
            {
                updateRecords.Add(new UpdateRecord("Is_Acsess_Violant", this.AccessViolation.ToString(), fullRecord.AccessViolation.ToString()));
            }
        }
예제 #2
0
 public SmallRecord(FullRecord a)
 {
     this.UBI_Name     = a.UBI_Name;
     this.UBI_ID       = a.UBI_ID;
     this.Short_Naming = $"УБИ.{a.UBI_ID}";
 }
예제 #3
0
 public SmallRecord(FullRecord a)
 {
     this.UBI_Name = a.UBI_Name;
     this.UBI_ID   = a.UBI_ID;
 }