Package com.illumon.iris.controller
Interface RemoteScriptSource
- All Known Subinterfaces:
PersistentQueryScriptSource
- All Known Implementing Classes:
PersistentQueryControllerClient
public interface RemoteScriptSource
Describes a class that can retrieve script paths and bodies by a specific user.
-
Method Summary
Modifier and Type Method Description default StringgetScriptBody(boolean relative, String scriptPath)Get a script by path.StringgetScriptBody(boolean relative, String scriptPath, ScriptPathLoaderState scriptLoaderState)Get a script by path and state.default StringgetScriptBody(boolean relative, String scriptPath, String ownerName)Get a script by path for a specific owner.StringgetScriptBody(boolean relative, String scriptPath, String ownerName, ScriptPathLoaderState scriptLoaderState)Get a script by path for a specific owner and state.default Set<String>getScriptDisplayPaths()Get all available display paths.Set<String>getScriptDisplayPaths(ScriptPathLoaderState scriptLoaderState)Get all available display paths for a specific state.default Set<String>getScriptDisplayPaths(String ownerName)Get all display paths available to a specific owner.Set<String>getScriptDisplayPaths(String ownerName, ScriptPathLoaderState scriptLoaderState)Get all display paths available to a specific owner and state.
-
Method Details
-
getScriptDisplayPaths
Get all available display paths.- Returns:
- All display paths.
-
getScriptDisplayPaths
Get all available display paths for a specific state.- Parameters:
scriptLoaderState- The state to get paths from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- All display paths.
-
getScriptDisplayPaths
Get all display paths available to a specific owner.- Parameters:
ownerName- A specific user.- Returns:
- The paths available to ownerName.
-
getScriptDisplayPaths
Get all display paths available to a specific owner and state.- Parameters:
ownerName- A specific user.scriptLoaderState- The state to get paths from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- The paths available to ownerName.
-
getScriptBody
Get a script by path.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.- Returns:
- The contents of the script.
-
getScriptBody
Get a script by path and state.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.scriptLoaderState- The state to get scripts from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- The contents of the script.
-
getScriptBody
Get a script by path for a specific owner.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.ownerName- The owner.- Returns:
- The contents of the script.
-
getScriptBody
String getScriptBody(boolean relative, String scriptPath, String ownerName, ScriptPathLoaderState scriptLoaderState)Get a script by path for a specific owner and state.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.ownerName- The owner.scriptLoaderState- The state to get script from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- The contents of the script.
-