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 Details

    • getScriptDisplayPaths

      default Set<String> getScriptDisplayPaths()
      Get all available display paths.
      Returns:
      All display paths.
    • getScriptDisplayPaths

      Set<String> getScriptDisplayPaths​(ScriptPathLoaderState scriptLoaderState)
      Get all available display paths for a specific state.
      Parameters:
      scriptLoaderState - The state to get paths from or ScriptPathLoaderState.NONE to get the latest version.
      Returns:
      All display paths.
    • getScriptDisplayPaths

      default Set<String> getScriptDisplayPaths​(String ownerName)
      Get all display paths available to a specific owner.
      Parameters:
      ownerName - A specific user.
      Returns:
      The paths available to ownerName.
    • getScriptDisplayPaths

      Set<String> getScriptDisplayPaths​(String ownerName, ScriptPathLoaderState scriptLoaderState)
      Get all display paths available to a specific owner and state.
      Parameters:
      ownerName - A specific user.
      scriptLoaderState - The state to get paths from or ScriptPathLoaderState.NONE to get the latest version.
      Returns:
      The paths available to ownerName.
    • getScriptBody

      default String getScriptBody​(boolean relative, String scriptPath)
      Get a script by path.
      Parameters:
      relative - Is the path a relative path?
      scriptPath - The path string.
      Returns:
      The contents of the script.
    • getScriptBody

      String getScriptBody​(boolean relative, String scriptPath, ScriptPathLoaderState scriptLoaderState)
      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 or ScriptPathLoaderState.NONE to get the latest version.
      Returns:
      The contents of the script.
    • getScriptBody

      default String getScriptBody​(boolean relative, String scriptPath, 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.
    • 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 or ScriptPathLoaderState.NONE to get the latest version.
      Returns:
      The contents of the script.