Exemplo n.º 1
0
        /// <summary>
        /// This is the getNoneRiskEntriesWithoutHotfix method.
        /// </summary>
        /// <returns>none risk findings (AOI (Area of Improvement)) except hotfix findings from the Record.</returns>
        public List <DataEntry> getNoneRiskEntriesWithoutHotfix()
        {
            List <DataEntry> entries = new List <DataEntry>();

            foreach (DataEntry entry in noneRisk.Values)
            {
                if (!Hotfix.isHotfix(entry))
                {
                    entries.Add(entry);
                }
            }

            return(entries);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This is the getWholeEntriesWithoutHotfix method.
        /// </summary>
        /// <returns>all findings except hotfix findings from the Record.</returns>
        public List <DataEntry> getWholeEntriesWithoutHotfix()
        {
            List <DataEntry> entries     = new List <DataEntry>();
            List <DataEntry> tempEntries = getWholeEntries();

            foreach (DataEntry entry in tempEntries)
            {
                if (!Hotfix.isHotfix(entry))
                {
                    entries.Add(entry);
                }
            }

            return(entries);
        }
Exemplo n.º 3
0
        /// <summary>
        /// This is the getHighRiskEntriesWithoutHotfix method.
        /// </summary>
        /// <returns>high risk findings except hotfix findings from the Record.</returns>
        public List <DataEntry> getHighRiskEntriesWithoutHotfix()
        {
            List <DataEntry> entries = new List <DataEntry>();

            //foreach (DataEntry entry in sort(highRisk).Values) {
            foreach (DataEntry entry in highRisk.Values)
            {
                if (!Hotfix.isHotfix(entry))
                {
                    entries.Add(entry);
                }
            }

            return(entries);
        }
Exemplo n.º 4
0
        /// <summary>
        /// This is the getWholeEntriesWithoutOpenPortAndHotfix method.
        /// </summary>
        /// <returns>all findings except open port and hotfix findings from the record.</returns>
        public List <DataEntry> getWholeEntriesWithoutOpenPortAndHotfix()
        {
            List <DataEntry> entries     = new List <DataEntry>();
            List <DataEntry> tempEntries = getWholeEntries();

            foreach (DataEntry entry in tempEntries)
            {
                if (entry.getRiskFactor() != RiskFactor.OPEN && !Hotfix.isHotfix(entry))
                {
                    entries.Add(entry);
                }
            }

            return(entries);
        }
Exemplo n.º 5
0
 /// <summary>
 /// This is the getNonHotfixListWithoutOpenPort method.
 /// </summary>
 /// <returns>non-hotfix findings except open port findings from the Record.</returns>
 public List <DataEntry> getNonHotfixListWithoutOpenPort()
 {
     return(Hotfix.getNonHotfixListWithoutOpenPort(this));
 }
Exemplo n.º 6
0
 /// <summary>
 /// This is the getNonHotfixList method.
 /// </summary>
 /// <returns>non-hotfix findings from the Record.</returns>
 public List <DataEntry> getNonHotfixList()
 {
     return(Hotfix.getNonHotfixList(this));
 }