Interface PersistentQueryScriptSource
- All Known Subinterfaces:
PersistentQueryControllerClient
- All Known Implementing Classes:
PersistentQueryControllerClientImpl
public interface PersistentQueryScriptSource
Implementations of this class provide a way to access script code and paths for execution.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable String
getScriptBody
(@NotNull String scriptPath, boolean isPathRelative) Get the body of the specified script as the currently authenticated user.@Nullable String
getScriptBody
(@NotNull String scriptPath, boolean isPathRelative, @Nullable String scriptLoaderStateJson) Get the body of the specified script as the currently authenticated user.default @Nullable String
getScriptBodyByQuery
(@NotNull String scriptPath, long querySerial, boolean isPathRelative) Get a script by path for the owner of a specific query by serial.@Nullable String
getScriptBodyByQuery
(@NotNull String scriptPath, long querySerial, boolean isPathRelative, @Nullable String scriptLoaderStateJson) Get a script by path for the owner of a specific query by serial, with optional script loader state information.default @Nullable String
getScriptBodyByUser
(@NotNull String scriptPath, @NotNull String userName, boolean isPathRelative) Get the body of the specified script as the specified user.@Nullable String
getScriptBodyByUser
(@NotNull String scriptPath, @NotNull String userName, boolean isPathRelative, @Nullable String scriptLoaderStateJson) Get the body of the specified script as the specified user.getScriptPaths
(boolean useRelativePath) Get all script paths available for the currently authenticated user.getScriptPaths
(@Nullable String scriptLoaderStateJson, boolean useRelativePath) Get all script paths available for the currently authenticated user.getScriptPathsByQuery
(long querySerial, boolean useRelativePath) Get all script paths available to the owner of a specific query by serial.getScriptPathsByQuery
(long configSerial, @Nullable String scriptLoaderStateJson, boolean useRelativePath) Get all script paths available to the owner of a specific query by serial, providing optional script loader state information.getScriptPathsByUser
(@NotNull String userName, boolean useRelativePath) Get the script paths available for the specified user.getScriptPathsByUser
(@NotNull String userName, @Nullable String scriptLoaderStateJson, boolean useRelativePath) Get the script paths available for the specified user.
-
Method Details
-
getScriptPathsByUser
@FinalDefault @NotNull default @NotNull Set<String> getScriptPathsByUser(@NotNull @NotNull String userName, boolean useRelativePath) Get the script paths available for the specified user.- Parameters:
userName
- the user to fetch paths foruseRelativePath
- whether to return relative or display script paths- Returns:
- the set of paths available for the specified user
-
getScriptPathsByUser
@NotNull @NotNull Set<String> getScriptPathsByUser(@NotNull @NotNull String userName, @Nullable @Nullable String scriptLoaderStateJson, boolean useRelativePath) Get the script paths available for the specified user.- Parameters:
userName
- the user to fetch paths forscriptLoaderStateJson
- optional script loader state informationuseRelativePath
- whether to return relative or display script paths- Returns:
- the set of paths available for the specified user
-
getScriptPathsByQuery
@FinalDefault @NotNull default @NotNull Set<String> getScriptPathsByQuery(long querySerial, boolean useRelativePath) Get all script paths available to the owner of a specific query by serial.- Parameters:
querySerial
- the query serialuseRelativePath
- whether to return relative or display script paths- Returns:
- The paths available to the query serial.
-
getScriptPathsByQuery
@NotNull @NotNull Set<String> getScriptPathsByQuery(long configSerial, @Nullable @Nullable String scriptLoaderStateJson, boolean useRelativePath) Get all script paths available to the owner of a specific query by serial, providing optional script loader state information.- Parameters:
configSerial
- the query serialscriptLoaderStateJson
- an optional loader stateuseRelativePath
- whether to return relative or display script paths- Returns:
- The paths available to the serial ID.
-
getScriptPaths
Get all script paths available for the currently authenticated user.- Parameters:
useRelativePath
- whether to return relative or display script paths- Returns:
- the set of paths available for the current user
-
getScriptPaths
@NotNull @NotNull Set<String> getScriptPaths(@Nullable @Nullable String scriptLoaderStateJson, boolean useRelativePath) Get all script paths available for the currently authenticated user.- Parameters:
scriptLoaderStateJson
- optional script loader state informationuseRelativePath
- whether to return relative or display script paths- Returns:
- the set of paths available for the current user
-
getScriptBody
@FinalDefault @Nullable default @Nullable String getScriptBody(@NotNull @NotNull String scriptPath, boolean isPathRelative) Get the body of the specified script as the currently authenticated user.- Parameters:
scriptPath
- the script pathisPathRelative
- if thescriptPath
is a relative path- Returns:
- the body of the script
-
getScriptBody
@Nullable @Nullable String getScriptBody(@NotNull @NotNull String scriptPath, boolean isPathRelative, @Nullable @Nullable String scriptLoaderStateJson) Get the body of the specified script as the currently authenticated user.- Parameters:
scriptPath
- the script pathisPathRelative
- if thescriptPath
is a relative pathscriptLoaderStateJson
- optional script loader state information- Returns:
- the body of the script
-
getScriptBodyByUser
@FinalDefault @Nullable default @Nullable String getScriptBodyByUser(@NotNull @NotNull String scriptPath, @NotNull @NotNull String userName, boolean isPathRelative) Get the body of the specified script as the specified user.- Parameters:
scriptPath
- the script pathuserName
- the user to fetch the body asisPathRelative
- if thescriptPath
is relative- Returns:
- the body of the script
-
getScriptBodyByUser
@Nullable @Nullable String getScriptBodyByUser(@NotNull @NotNull String scriptPath, @NotNull @NotNull String userName, boolean isPathRelative, @Nullable @Nullable String scriptLoaderStateJson) Get the body of the specified script as the specified user.- Parameters:
scriptPath
- the script pathuserName
- the user to fetch the body asisPathRelative
- if thescriptPath
is relativescriptLoaderStateJson
- optional script loader state information- Returns:
- the body of the script
-
getScriptBodyByQuery
@FinalDefault @Nullable default @Nullable String getScriptBodyByQuery(@NotNull @NotNull String scriptPath, long querySerial, boolean isPathRelative) Get a script by path for the owner of a specific query by serial.- Parameters:
querySerial
- The Serial ID.scriptPath
- The path string.isPathRelative
- if thescriptPath
is relative- Returns:
- The contents of the script.
-
getScriptBodyByQuery
@Nullable @Nullable String getScriptBodyByQuery(@NotNull @NotNull String scriptPath, long querySerial, boolean isPathRelative, @Nullable @Nullable String scriptLoaderStateJson) Get a script by path for the owner of a specific query by serial, with optional script loader state information.- Parameters:
querySerial
- The Serial ID.scriptPath
- The path string.isPathRelative
- if thescriptPath
is relativescriptLoaderStateJson
- optional script loader state information- Returns:
- The contents of the script.
-