Package com.illumon.iris.controller
Interface PersistentQueryScriptSource
- All Superinterfaces:
RemoteScriptSource
- All Known Implementing Classes:
PersistentQueryControllerClient
A
RemoteScriptSource that can load paths for a specific serial ID.-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetScriptBody(boolean relative, long configSerial, @NotNull String scriptPath, @Nullable String scriptLoaderStateJson) Get a script by path for a specific serial ID and a specific state.default @Nullable StringgetScriptBody(boolean relative, @NotNull String scriptPath, long configSerial) Get a script by path for a specific serial ID.default @Nullable StringgetScriptBody(boolean relative, @NotNull String scriptPath, long configSerial, @Nullable ScriptPathLoaderState scriptLoaderState) Get a script by path for a specific serial ID and a specific state.default @Nullable StringgetScriptBody(boolean relative, @NotNull String scriptPath, @NotNull String ownerName, @Nullable ScriptPathLoaderState scriptLoaderState) Get the body of the specified script as the specified user.default @Nullable StringgetScriptBody(boolean relative, @NotNull String scriptPath, @Nullable ScriptPathLoaderState scriptLoaderState) Get the body of the specified script as the currently authenticated user.getScriptDisplayPaths(long configSerial) Get all display paths available to a specific PersistentQuery serial ID.getScriptDisplayPaths(long configSerial, @Nullable ScriptPathLoaderState scriptLoaderState) Get all display paths available to a specific PersistentQuery serial ID and a specific state.getScriptDisplayPaths(long configSerial, @Nullable String scriptLoaderState) Get all display paths available to a specific PersistentQuery serial ID and a specific state.getScriptDisplayPaths(@NotNull String ownerName, @Nullable ScriptPathLoaderState scriptLoaderState) Get the script paths available for the specified owner.getScriptDisplayPaths(@Nullable ScriptPathLoaderState scriptLoaderState) Get all script paths available for the currently authenticated user.Methods inherited from interface com.illumon.iris.controller.RemoteScriptSource
getScriptBody, getScriptBody, getScriptBodyByOwner, getScriptBodyByOwner, getScriptDisplayPaths, getScriptDisplayPaths, getScriptDisplayPathsByOwner, getScriptDisplayPathsByOwner, getScriptRelativePaths, getScriptRelativePaths, getScriptRelativePathsByOwner, getScriptRelativePathsByOwner
-
Method Details
-
getScriptDisplayPaths
@FinalDefault @NotNull default @NotNull Set<String> getScriptDisplayPaths(@Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get all script paths available for the currently authenticated user.- Parameters:
scriptLoaderState- optional script loader state information- Returns:
- the set of paths available for the current user
-
getScriptDisplayPaths
@FinalDefault @NotNull default @NotNull Set<String> getScriptDisplayPaths(@NotNull @NotNull String ownerName, @Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get the script paths available for the specified owner.- Parameters:
ownerName- the user to fetch paths forscriptLoaderState- optional script loader state information- Returns:
- the set of paths available for the specified user
-
getScriptDisplayPaths
Get all display paths available to a specific PersistentQuery serial ID.- Parameters:
configSerial- Aserial ID.- Returns:
- The paths available to the serial ID.
-
getScriptDisplayPaths
@FinalDefault @NotNull default @NotNull Set<String> getScriptDisplayPaths(long configSerial, @Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get all display paths available to a specific PersistentQuery serial ID and a specific state.- Parameters:
configSerial- Aserial ID.scriptLoaderState- A specific state to retrieve scripts from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- The paths available to the serial ID.
-
getScriptDisplayPaths
@NotNull @NotNull Set<String> getScriptDisplayPaths(long configSerial, @Nullable @Nullable String scriptLoaderState) Get all display paths available to a specific PersistentQuery serial ID and a specific state.- Parameters:
configSerial- the query serialscriptLoaderState- an optional loader state- Returns:
- The paths available to the serial ID.
-
getScriptBody
@FinalDefault @Nullable default @Nullable String getScriptBody(boolean relative, @NotNull @NotNull String scriptPath, long configSerial) Get a script by path for a specific serial ID.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.configSerial- The Serial ID.- Returns:
- The contents of the script.
-
getScriptBody
@FinalDefault @Nullable default @Nullable String getScriptBody(boolean relative, @NotNull @NotNull String scriptPath, long configSerial, @Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get a script by path for a specific serial ID and a specific state.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.configSerial- The Serial ID.scriptLoaderState- an optional loader state.- Returns:
- The contents of the script.
-
getScriptBody
@Nullable @Nullable String getScriptBody(boolean relative, long configSerial, @NotNull @NotNull String scriptPath, @Nullable @Nullable String scriptLoaderStateJson) Get a script by path for a specific serial ID and a specific state.- Parameters:
relative- Is the path a relative path?scriptPath- The path string.configSerial- The Serial ID.scriptLoaderStateJson- A specific state to retrieve scripts from orScriptPathLoaderState.NONEto get the latest version.- Returns:
- The contents of the script.
-
getScriptBody
@FinalDefault @Nullable default @Nullable String getScriptBody(boolean relative, @NotNull @NotNull String scriptPath, @Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get the body of the specified script as the currently authenticated user.- Parameters:
relative- if thescriptPathis a relative pathscriptPath- the script pathscriptLoaderState- optional script loader state information- Returns:
- the body of the script
-
getScriptBody
@FinalDefault @Nullable default @Nullable String getScriptBody(boolean relative, @NotNull @NotNull String scriptPath, @NotNull @NotNull String ownerName, @Nullable @Nullable ScriptPathLoaderState scriptLoaderState) Get the body of the specified script as the specified user.- Parameters:
relative- if thescriptPathis relaztivescriptPath- the script pathownerName- the user to fetch the body asscriptLoaderState- optional script loader state information- Returns:
- the body of the script
-