Class DirSite

  • All Implemented Interfaces:
    RMJSONArchiver.GetKeys, RMPropertyChanger, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

    public class DirSite
    extends WebSite
    A data source implementation that draws from a directory WebFile.
    • Constructor Detail

      • DirSite

        public DirSite()
    • Method Detail

      • getDir

        public WebFile getDir()
        Returns the directory.
      • getDirFile

        protected WebFile getDirFile​(java.lang.String aPath)
        Returns the directory file for a path.
      • createDirFile

        protected WebFile createDirFile​(java.lang.String aPath,
                                        boolean isDir)
        Returns the directory file for a path.
      • getFileImpl

        protected WebFile getFileImpl​(java.lang.String aPath)
                               throws java.lang.Exception
        Get file from directory.
        Overrides:
        getFileImpl in class WebSite
        Throws:
        java.lang.Exception
      • getFilesImpl

        protected java.util.List<WebFile> getFilesImpl​(WebFile aFile)
                                                throws java.lang.Exception
        Get file from directory.
        Overrides:
        getFilesImpl in class WebSite
        Throws:
        java.lang.Exception
      • getFileBytesImpl

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

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

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

        protected java.util.List getRowsImpl​(Entity anEntity,
                                             Query aQuery)
        WebSite methods.
        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