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 TypeMethodDescriptiondefault StringgetScriptBody(boolean relative, String scriptPath) Get a script by path.getScriptBody(boolean relative, String scriptPath, String scriptLoaderStateJson) Get a script by path and state.default StringgetScriptBodyByOwner(boolean relative, String scriptPath, String ownerName) Get a script by path for a specific owner.getScriptBodyByOwner(boolean relative, String scriptPath, String ownerName, String scriptLoaderStateJson) Get a script by path for a specific owner and state.Get all available display paths.getScriptDisplayPaths(String scriptLoaderStateJson) Get all available display paths for a specific state.getScriptDisplayPathsByOwner(String ownerName) Get all display paths available to a specific owner.getScriptDisplayPathsByOwner(String ownerName, String scriptLoaderStateJson) Get all display paths available to a specific owner and state.Get all available relative paths.getScriptRelativePaths(String scriptLoaderStateJson) Get all available relative paths for a specific state.getScriptRelativePathsByOwner(String ownerName) Get all relative paths available to a specific owner.getScriptRelativePathsByOwner(String ownerName, String scriptLoaderStateJson) Get all relative 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:
scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get paths from or null to get the latest version.- Returns:
- All display paths.
-
getScriptDisplayPathsByOwner
Get all display paths available to a specific owner.- Parameters:
ownerName- A specific user.- Returns:
- The paths available to ownerName.
-
getScriptDisplayPathsByOwner
Set<String> getScriptDisplayPathsByOwner(@NotNull String ownerName, @Nullable String scriptLoaderStateJson) Get all display paths available to a specific owner and state.- Parameters:
ownerName- A specific user.scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get paths from or null to get the latest version.- Returns:
- The paths available to ownerName.
-
getScriptRelativePaths
Get all available relative paths.- Returns:
- All relative paths.
-
getScriptRelativePaths
Get all available relative paths for a specific state.- Parameters:
scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get paths from or null to get the latest version.- Returns:
- All relative paths.
-
getScriptRelativePathsByOwner
Get all relative paths available to a specific owner.- Parameters:
ownerName- A specific user.- Returns:
- The paths available to ownerName.
-
getScriptRelativePathsByOwner
Set<String> getScriptRelativePathsByOwner(@NotNull String ownerName, @Nullable String scriptLoaderStateJson) Get all relative paths available to a specific owner and state.- Parameters:
ownerName- A specific user.scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get paths from or null to 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.scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get the script from or null to get the latest version.- Returns:
- The contents of the script.
-
getScriptBodyByOwner
default String getScriptBodyByOwner(boolean relative, @NotNull String scriptPath, @NotNull String ownerName) 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.
-
getScriptBodyByOwner
String getScriptBodyByOwner(boolean relative, @NotNull String scriptPath, @NotNull String ownerName, @Nullable String scriptLoaderStateJson) 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.scriptLoaderStateJson- The JSON encoded state produced byScriptPathLoaderState.encodeJSON()to get script from or null to get the latest version.- Returns:
- The contents of the script.
-