Class ZipFileSite

    • Constructor Detail

      • ZipFileSite

        public ZipFileSite()
    • Method Detail

      • loadArchive

        protected void loadArchive()
        Loads WebSite from Archive (zip) file.
      • getZipFile

        protected java.util.zip.ZipFile getZipFile()
                                            throws java.lang.Exception
        Returns the ZipFile.
        Throws:
        java.lang.Exception
      • createZipFile

        protected java.util.zip.ZipFile createZipFile()
                                               throws java.lang.Exception
        Creates the ZipFile.
        Throws:
        java.lang.Exception
      • getStandardFile

        protected java.io.File getStandardFile()
                                        throws java.lang.Exception
        Returns a Java file for the zip file URL (copied to Sandbox if remote).
        Throws:
        java.lang.Exception
      • addZipEntry

        protected void addZipEntry​(java.util.zip.ZipEntry anEntry)
        Adds a ZipEntry to WebSite.
      • createFileImpl

        protected WebFile createFileImpl​(java.lang.String aPath,
                                         boolean isDirectory)
        Override to return ZipDataFile.
        Overrides:
        createFileImpl in class WebSite
      • getFileImpl

        protected WebFile getFileImpl​(java.lang.String aPath)
        Returns a data source file for given path (if file exists).
        Overrides:
        getFileImpl in class WebSite
      • getFilesImpl

        protected java.util.List getFilesImpl​(WebFile aFile)
                                       throws java.lang.Exception
        Returns a list of files at path.
        Overrides:
        getFilesImpl in class WebSite
        Throws:
        java.lang.Exception
      • getFileBytesImpl

        protected byte[] getFileBytesImpl​(WebFile aFile)
                                   throws java.lang.Exception
        Returns file bytes.
        Overrides:
        getFileBytesImpl in class WebSite
        Throws:
        java.lang.Exception
      • saveFileImpl

        protected void saveFileImpl​(WebFile aFile)
                             throws java.lang.Exception
        Saves a file.
        Overrides:
        saveFileImpl in class WebSite
        Throws:
        java.lang.Exception
      • deleteFileImpl

        protected void deleteFileImpl​(WebFile aFile)
                               throws java.lang.Exception
        Deletes a file.
        Overrides:
        deleteFileImpl in class WebSite
        Throws:
        java.lang.Exception
      • getRowsImpl

        protected java.util.List<Row> getRowsImpl​(Entity anEntity,
                                                  Query aQuery)
        Description copied from class: WebSite
        Returns a set of rows for the given properties and condition.
        Specified by:
        getRowsImpl in class WebSite
      • saveRowImpl

        protected void saveRowImpl​(Row aRow)
        Description copied from class: WebSite
        Inserts or updates a given row.
        Specified by:
        saveRowImpl in class WebSite
      • deleteRowImpl

        protected void deleteRowImpl​(Row aRow)
        Description copied from class: WebSite
        Deletes a given row.
        Specified by:
        deleteRowImpl in class WebSite