java.lang.Object
com.xebialabs.xlrelease.reports.excel.Export
Direct Known Subclasses:
TopLongestPhaseExport, TopLongestReleaseExport, TopLongestTaskExport, TopPeopleMostInvolvedExport

public abstract class Export extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected org.apache.poi.xssf.usermodel.XSSFSheet
     
    protected org.apache.poi.xssf.usermodel.XSSFWorkbook
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    protected abstract void
     
    org.apache.poi.ss.usermodel.Workbook
     
    static int
    numberOfCharacter(int number)
    see XSSFSheet.setColumnWidth to understand the magic number 256
    static void
    preventDynamicDataExchangeAttack(org.apache.poi.xssf.usermodel.XSSFWorkbook workBook)
    Prevent Dynamic Data Exchange Attack through excel export (https://www.owasp.org/index.php/CSV_Injection)
    protected abstract void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • workBook

      protected org.apache.poi.xssf.usermodel.XSSFWorkbook workBook
    • sheet

      protected org.apache.poi.xssf.usermodel.XSSFSheet sheet
    • rowIndex

      protected int rowIndex
  • Constructor Details

    • Export

      public Export()
  • Method Details

    • addContent

      protected abstract void addContent()
    • setColumnsWidth

      protected abstract void setColumnsWidth()
    • addHeaderRow

      protected abstract void addHeaderRow()
    • getWorkBook

      public org.apache.poi.ss.usermodel.Workbook getWorkBook()
    • numberOfCharacter

      public static int numberOfCharacter(int number)
      see XSSFSheet.setColumnWidth to understand the magic number 256
    • preventDynamicDataExchangeAttack

      public static void preventDynamicDataExchangeAttack(org.apache.poi.xssf.usermodel.XSSFWorkbook workBook)
      Prevent Dynamic Data Exchange Attack through excel export (https://www.owasp.org/index.php/CSV_Injection)