Class MProductDownload

    • Constructor Detail

      • MProductDownload

        public MProductDownload​(Properties ctx,
                                int M_ProductDownload_ID,
                                String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_ProductDownload_ID - id
        trxName - trx
      • MProductDownload

        public MProductDownload​(Properties ctx,
                                ResultSet rs,
                                String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - trx
      • MProductDownload

        public MProductDownload​(MProductDownload copy)
        Parameters:
        copy -
    • Method Detail

      • migrateDownloads

        public static void migrateDownloads​(Properties ctx)
        Migrate Download URLs (2.5.2c)
        Parameters:
        ctx - context
      • getDownloadName

        public String getDownloadName()
        Get Download Name
        Returns:
        download name (last part of name)
      • getDownloadURL

        public URI getDownloadURL​(String directory)
        Get Download URL
        Parameters:
        directory - optional directory
        Returns:
        url
      • getDownloadFile

        public File getDownloadFile​(String directory)
        Find download url
        Parameters:
        directory - optional directory
        Returns:
        file or null
      • getDownloadStream

        public InputStream getDownloadStream​(String directory)
        Get Download Stream
        Parameters:
        directory - optional directory
        Returns:
        input stream