Class FileSite
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.web.WebSite
com.inductiveautomation.snap.websites.FileSite
- All Implemented Interfaces:
- RMJSONArchiver.GetKeys,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- EclipseSite,- LocalSite,- SandboxSite
A data source to read/write data and files to a file system.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.snap.web.WebSiteWebSite.Servlet
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.web.WebSiteRefresh_Prop
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddeleteEntityImpl(Entity anEntity) Delete entity file and entity table data file.protected voiddeleteFileImpl(WebFile aFile) Deletes file.protected voiddeleteRowImpl(Row aRow) Deletes a given row.voidDeletes this data source, assuming it corresponds to something that can be deleted, like a database.protected voidOverride to Saves changes if any made.protected EntitygetEntityImpl(String aName) Get entity by loading from entity file.getEntityRows(Entity anEntity) Returns the list of rows for a given entity.protected byte[]getFileBytesImpl(WebFile aFile) Gets file bytes.protected WebFilegetFileImpl(String aPath) Returns a file atgetFilesImpl(WebFile aFile) Returns files at path.longgetModifiedTime(WebFile aFile) Override to get modified time from Java file.getRowsImpl(Entity anEntity, Query aQuery) Returns a set of rows for the given properties and condition.protected FilegetStandardFile(WebFile aFile) Returns the Java file for a WebFile.protected FilegetStandardFile(String aPath) Returns the Java file for RMFile.protected WebFilegetTableDataFile(String aName, boolean doCreate) Returns the file for the given entity.protected WebFilegetTableEntityFile(String aName, boolean doCreate) Returns the file for the given entity.protected voidsaveEntityFile(Entity anEntity) Save entity files for changed entities.protected voidSave entity files for changed entities.protected voidsaveEntityImpl(Entity anEntity) Save entity by saving entity bytes to entity file.protected voidsaveFileImpl(WebFile aFile) Writes file bytes.protected voidsaveRowImpl(Row aRow) Inserts or updates a given row.protected voidsetModifiedTimeImpl(WebFile aFile, long aTime) Saves the modified time for a file to underlying file system.Methods inherited from class com.inductiveautomation.snap.web.WebSiteaddDeepChangeListener, bulkImport, createClassLoader, createDataTable, createDataTableImpl, createEntity, createEntityImpl, createFile, createFileImpl, createRow, createRow, createRowImpl, createSandbox, createSandboxURL, createSandboxURLS, createSchema, createSite, createURL, deleteEntity, deleteFile, deleteRow, flush, getClassLoader, getDataTable, getDataTables, getEntity, getExists, getFile, getHostName, getJSONKeys, getName, getPassword, getPath, getProp, getRequest, getResponse, getRootDirectory, getRow, getRow, getRowImpl, getRows, getSandbox, getSchema, getServlet, getURL, getURL, getURLString, getUserName, handleDelete, handleGet, handleHead, handlePut, isRunning, propertyChange, refresh, refreshFile, refreshFileImpl, removeDeepChangeListener, saveEntity, saveFile, saveRow, setClassLoader, setExists, setModifiedTime, setPassword, setProp, setSandbox, setServlet, setURL, setUserName, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
FileSitepublic FileSite()
 
- 
- 
Method Details- 
getFileImplReturns a file at- Overrides:
- getFileImplin class- WebSite
 
- 
getFilesImplReturns files at path.- Overrides:
- getFilesImplin class- WebSite
- Throws:
- Exception
 
- 
getFileBytesImplGets file bytes.- Overrides:
- getFileBytesImplin class- WebSite
- Throws:
- Exception
 
- 
saveFileImplWrites file bytes.- Overrides:
- saveFileImplin class- WebSite
- Throws:
- Exception
 
- 
deleteFileImplDeletes file.- Overrides:
- deleteFileImplin class- WebSite
- Throws:
- Exception
 
- 
getModifiedTimeOverride to get modified time from Java file.- Overrides:
- getModifiedTimein class- WebSite
 
- 
setModifiedTimeImplSaves the modified time for a file to underlying file system.- Overrides:
- setModifiedTimeImplin class- WebSite
- Throws:
- Exception
 
- 
getEntityImplGet entity by loading from entity file.- Overrides:
- getEntityImplin class- WebSite
- Throws:
- Exception
 
- 
saveEntityImplSave entity by saving entity bytes to entity file.- Overrides:
- saveEntityImplin class- WebSite
- Throws:
- Exception
 
- 
deleteEntityImplDelete entity file and entity table data file.- Overrides:
- deleteEntityImplin class- WebSite
- Throws:
- Exception
 
- 
getRowsImplReturns a set of rows for the given properties and condition.- Specified by:
- getRowsImplin class- WebSite
 
- 
saveRowImplInserts or updates a given row.- Specified by:
- saveRowImplin class- WebSite
 
- 
deleteRowImplDeletes a given row.- Specified by:
- deleteRowImplin class- WebSite
 
- 
saveEntityFilesSave entity files for changed entities.- Throws:
- Exception
 
- 
saveEntityFileSave entity files for changed entities.- Throws:
- Exception
 
- 
flushImplOverride to Saves changes if any made.
- 
getTableEntityFileReturns the file for the given entity.
- 
getTableDataFileReturns the file for the given entity.
- 
getEntityRowsReturns the list of rows for a given entity.
- 
deleteSiteDeletes this data source, assuming it corresponds to something that can be deleted, like a database.- Overrides:
- deleteSitein class- WebSite
- Throws:
- Exception
 
- 
getStandardFileReturns the Java file for a WebFile.- Overrides:
- getStandardFilein class- WebSite
 
- 
getStandardFileReturns the Java file for RMFile.
 
-