public interface AQProject
Modifier and Type | Method and Description |
---|---|
AQProjectFile[] |
collectUserFiles(java.lang.String path)
Recursively scans the specified path in the "User Files" project folder.
|
AQProjectFile[] |
collectUserFiles(java.lang.String path,
java.lang.String filter)
Recursively scans the specified path in the "User Files" project folder.
|
boolean |
deleteUserFile(java.lang.String path)
Deletes a file in the "User File" project folder.
|
AQProjectFile |
getAquaScript(java.lang.String path)
Returns a file object with the specified path under the "AquaScripts" project folder.
|
AQProjectFile |
getAquaScriptsRootFolder()
Returns a file object corresponding to the "AquaScripts" folder.
|
java.lang.String |
getChartURL()
Returns the full URL path to the chart entry point on Aqua Data Server.
|
java.lang.String |
getDashboardURL()
Returns the full URL path to the dashboard entry point on Aqua Data Server for the current project.
|
java.lang.String |
getFileURL(java.lang.String name)
Returns the full URL path to the specified file under "User Files" folder.
|
java.lang.String |
getRunURL()
Returns the full URL path to the run-script entry point on Aqua Data Server.
|
AQServerConnection |
getServerConnection(java.lang.String path)
Returns a project server connection.
|
AQServerConnection[] |
getServerConnections()
Returns all server connections available within the script context.
|
AQServerConnection[] |
getServerConnections(java.lang.String folder,
boolean recursive)
Returns all server connections in the current folder, and subfolders if recursive flag is passed true.
|
AQProjectFile |
getServerConnectionsRootFolder()
Returns a file object corresponding to the "Servers" project folder.
|
AQProjectFile |
getUserFile(java.lang.String path)
Returns a file object within "User Files" project folder.
|
AQProjectFile |
getUserFilesRootFolder()
Returns a file object corresponding to the "User Files" project folder.
|
java.util.Properties |
loadProperties(java.lang.String fileName)
Reads a propery list from a file in the project User Files directory.
|
void |
saveProperties(java.util.Properties properties,
java.lang.String fileName)
Saves a property list to a file in the project User Files directory.
|
AQServerConnection[] getServerConnections()
AQServerConnection[] getServerConnections(java.lang.String folder, boolean recursive)
folder
- the folderrecursive
- if recursive operationAQServerConnection getServerConnection(java.lang.String path)
path
- Path to the desired project connection relative to the "Servers" folder.AQProjectFile getServerConnectionsRootFolder()
AQProjectFile getAquaScriptsRootFolder()
AQProjectFile getAquaScript(java.lang.String path)
path
- Path to the desired file relative to "AquaScripts" folder.AQProjectFile getUserFilesRootFolder()
AQProjectFile getUserFile(java.lang.String path)
path
- Path to the desired file relative to "User Files" folder.AQProjectFile[] collectUserFiles(java.lang.String path)
path
- Path to the desired file relative to "User Files" folder.AQProjectFile[] collectUserFiles(java.lang.String path, java.lang.String filter)
path
- Path to the desired folder relative to "User Files".filter
- File filter specification string.boolean deleteUserFile(java.lang.String path)
path
- Path to the desired file relative to "User Files" folder.java.util.Properties loadProperties(java.lang.String fileName)
fileName
- name of the file in the project User Files directoryvoid saveProperties(java.util.Properties properties, java.lang.String fileName)
properties
- Property listfileName
- file name of the file in the project User Files directory.java.lang.String getDashboardURL()
java.lang.String getChartURL()
java.lang.String getRunURL()
java.lang.String getFileURL(java.lang.String name)
name
- File path relative to "User Files" project folder.
Copyright © 2019 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.