예제 #1
0
        //public static createNewO2AssessmentDataAndFindingFrom

        public static FindingViewItem createNewFindingViewItemFromFindingViewItem(
            FindingViewItem fviFindingViewItemToDuplicate)
        {
            var nfviNewFindingViewItem = new NewFindingViewItem();

            AssessmentAssessmentFileFinding fNewFinding =
                nfviNewFindingViewItem.AddNewFindingFromExistingOne(fviFindingViewItemToDuplicate.fFinding,
                                                                    fviFindingViewItemToDuplicate.oadO2AssessmentDataOunceV6);

            nfviNewFindingViewItem.updateOadStringLists();

            return nfviNewFindingViewItem.getFindingViewItemForLastFindingAdded();
        }
        //public static createNewO2AssessmentDataAndFindingFrom

        public static FindingViewItem createNewFindingViewItemFromFindingViewItem(
            FindingViewItem fviFindingViewItemToDuplicate)
        {
            var nfviNewFindingViewItem = new NewFindingViewItem();

            AssessmentAssessmentFileFinding fNewFinding =
                nfviNewFindingViewItem.AddNewFindingFromExistingOne(fviFindingViewItemToDuplicate.fFinding,
                                                                    fviFindingViewItemToDuplicate.oadO2AssessmentDataOunceV6);

            nfviNewFindingViewItem.updateOadStringLists();

            return(nfviNewFindingViewItem.getFindingViewItemForLastFindingAdded());
        }
예제 #3
0
        public static FindingViewItem connectTwoFindingNewItems(FindingViewItem fviJoinAtSink,
                                                                FindingViewItem fviJoinAtSource)
        {
            var nfviNewFindingViewItem = new NewFindingViewItem();

            AssessmentAssessmentFileFinding fNewFinding =
                nfviNewFindingViewItem.AddNewFindingFromExistingOne(fviJoinAtSink.fFinding,
                                                                    fviJoinAtSink.oadO2AssessmentDataOunceV6);

            if (false == nfviNewFindingViewItem.appendTrace_FindingSourceToFindingSink(fNewFinding, fviJoinAtSource))
            {
                /*  DI.log.info("___ appendTrace_FindingSourceToFindingSink error, happened for Source: {0}", o2.analysis.Analysis.getSource(fNewFinding, fviJoinAtSink.oadO2AssessmentDataOunceV6));
                CallInvocation ciSink = AnalysisSearch.findTraceTypeInSmartTrace_Recursive_returnCallInvocation(fNewFinding.Trace, Analysis.TraceType.Known_Sink);
                if (ciSink != null)
                     DI.log.info("appendTrace_FindingSourceToFindingSink error, happened for Sink: {0}", Analysis.getStringIndexValue(ciSink.sig_id,fviJoinAtSink.oadO2AssessmentDataOunceV6));
                return null;*/
            }

//            oadNewO2AssessmentDataOunceV6.arAssessmentRun.Assessment = new AssessmentRunAssessment();

            nfviNewFindingViewItem.updateOadStringLists();

            return nfviNewFindingViewItem.getFindingViewItemForLastFindingAdded();
        }
        public static FindingViewItem connectTwoFindingNewItems(FindingViewItem fviJoinAtSink,
                                                                FindingViewItem fviJoinAtSource)
        {
            var nfviNewFindingViewItem = new NewFindingViewItem();

            AssessmentAssessmentFileFinding fNewFinding =
                nfviNewFindingViewItem.AddNewFindingFromExistingOne(fviJoinAtSink.fFinding,
                                                                    fviJoinAtSink.oadO2AssessmentDataOunceV6);

            if (false == nfviNewFindingViewItem.appendTrace_FindingSourceToFindingSink(fNewFinding, fviJoinAtSource))
            {
                /*  DI.log.info("___ appendTrace_FindingSourceToFindingSink error, happened for Source: {0}", o2.analysis.Analysis.getSource(fNewFinding, fviJoinAtSink.oadO2AssessmentDataOunceV6));
                 * CallInvocation ciSink = AnalysisSearch.findTraceTypeInSmartTrace_Recursive_returnCallInvocation(fNewFinding.Trace, Analysis.TraceType.Known_Sink);
                 * if (ciSink != null)
                 *   DI.log.info("appendTrace_FindingSourceToFindingSink error, happened for Sink: {0}", Analysis.getStringIndexValue(ciSink.sig_id,fviJoinAtSink.oadO2AssessmentDataOunceV6));
                 * return null;*/
            }

//            oadNewO2AssessmentDataOunceV6.arAssessmentRun.Assessment = new AssessmentRunAssessment();

            nfviNewFindingViewItem.updateOadStringLists();

            return(nfviNewFindingViewItem.getFindingViewItemForLastFindingAdded());
        }