Class ExportPhysicalInventoryLinesToCSV

  • All Implemented Interfaces:
    ActionHandler

    public class ExportPhysicalInventoryLinesToCSV
    extends FileExportActionHandler
    Action handler to Export Physical Inventory Lines to a CSV file. Also this process gives the possibility of generating the inventory lines automatically, with the default values parameters when the inventory type is "total".
    • Constructor Detail

      • ExportPhysicalInventoryLinesToCSV

        public ExportPhysicalInventoryLinesToCSV()
    • Method Detail

      • generateFileToDownload

        protected Path generateFileToDownload​(Map<String,​Object> parameters,
                                              org.codehaus.jettison.json.JSONObject data)
                                       throws IOException,
                                              org.codehaus.jettison.json.JSONException
        Description copied from class: FileExportActionHandler
        This method that allows possible verifications in the data
        Specified by:
        generateFileToDownload in class FileExportActionHandler
        Parameters:
        parameters - The map of parameters extracted from the request
        data - JSONObject with the request content
        Throws:
        IOException
        org.codehaus.jettison.json.JSONException
      • getDownloadFileName

        protected String getDownloadFileName​(Map<String,​Object> parameters,
                                             org.codehaus.jettison.json.JSONObject data)
        Description copied from class: FileExportActionHandler
        Retrieves the name of the file to be downloaded
        Specified by:
        getDownloadFileName in class FileExportActionHandler
        Parameters:
        parameters - The map of parameters extracted from the request
        data - JSONObject with the request content
        Returns:
        the name of the file to be downloaded
      • inventoryLinesProcessParameters

        protected Map<String,​String> inventoryLinesProcessParameters()
        Generates the map of parameters to launch the Create Inventory Count List process
      • addCSVLines

        protected void addCSVLines​(Writer writer,
                                   boolean blindCount,
                                   String fieldSeparator,
                                   org.hibernate.ScrollableResults physicalInventorylines)
                            throws IOException
        Throws:
        IOException