public override void markEntireBulletinAsNew(Bulletin newBulletin) { Item CVE = newBulletin.getCVE(); changeColorCell(CVE, newItem); Item bulletin = newBulletin.getBulletin(); int col = bulletin.col; int row = bulletin.row; for (int i = 0; i < newBulletin.getRows().Count(); i++) { changeColorCell(row + i, col, newItem); } }
public override void addDeletedBulletin(Bulletin deletedBulletin, int lastRow) { Item bulletin = deletedBulletin.getBulletin(); sheet.Cells[lastRow, cd["bulletin"]] = bulletin.value; changeColorCell(lastRow, cd["bulletin"], deleted); Item CVE = deletedBulletin.getCVE(); sheet.Cells[lastRow, cd["cve"]] = CVE.value; changeColorCell(lastRow, cd["cve"], deleted); Item description = deletedBulletin.getDescription(); sheet.Cells[lastRow, cd["description"]] = description.value; changeColorCell(lastRow, cd["description"], deleted); Item globalKb = deletedBulletin.getGlobalKb(); sheet.Cells[lastRow, cd["globalKb"]] = globalKb.value; changeColorCell(lastRow, cd["globalKb"], deleted); }
public virtual void compareBulletin(Bulletin bulletinDoc, Bulletin bulletinWeb) { }
public virtual void addDeletedBulletin(Bulletin deletedBulletin, int lastRow) { }
public virtual void markEntireBulletinAsNew(Bulletin newBulletin) { }
public override void compareBulletin(Bulletin bulletinDoc, Bulletin bulletinWeb) { Item CVE = bulletinWeb.getCVE(); if (!(CVE.value).Equals(bulletinDoc.getCVE().value)) { changeColorCell(CVE, different); } Item bulletin = bulletinWeb.getBulletin(); int col = bulletin.col; int row = bulletin.row; /*if (bulletin.value.Equals("MS13-040")) * col = col;*/ if (!(bulletin.value).Equals(bulletinDoc.getBulletin().value)) { for (int i = 0; i < bulletinWeb.getRows().Count(); i++) { changeColorCell(row + i, col, different); } } Item description = bulletinWeb.getDescription(); if (!(description.value).Equals(bulletinDoc.getDescription().value)) { changeColorCell(description, different); } //This section look for differences that might exist List <RowInTM> rowItemsDoc = bulletinDoc.getRows(); string kb, platform, component; RowInTM rowItemDocument; foreach (RowInTM rowItemWeb in bulletinWeb.getRows()) { /*if (rowItemWeb.platform.value.Equals("Windows Server 2003 with SP2 for Itanium-based Systems")) * col = col;*/ kb = utilities.removeContentIn(rowItemWeb.KB.value, "[]"); platform = utilities.removeExtraSpaces(rowItemWeb.platform.value); component = utilities.removeExtraSpaces(rowItemWeb.component.value); if ((rowItemDocument = getRowItem(rowItemsDoc, kb, platform, component)) == null) { changeColorRow(rowItemWeb, newItem); } } //This seciont looks for deleted content string deletedContet = ""; List <RowInTM> rowItemsWeb = bulletinWeb.getRows(); foreach (RowInTM rowItemDoc in rowItemsDoc) { kb = utilities.removeContentIn(rowItemDoc.KB.value, "[]"); // the kb contains some comments [][], we do not have to consider those to comapre platform = utilities.removeExtraSpaces(rowItemDoc.platform.value); component = utilities.removeExtraSpaces(rowItemDoc.component.value); if (getRowItem(rowItemsWeb, kb, platform, component) == null) //the key was not found, so it was deleted { deletedContet += kb + "|" + platform + "|" + component + "\n"; } } if (!deletedContet.Equals("")) { sheet.Cells[CVE.row, cd["qaOwner"] + 1] = deletedContet; changeColorCell(CVE.row, cd["qaOwner"] + 1, deleted); } }