Interface IPromptReferenceLocator


public interface IPromptReferenceLocator
Service interface for finding references to prompt objects, such as connections and queries. Implementations must be discoverable via CDI, with the ApplicationScoped. If other dependent modules create references to prompt objects, they should provide an implementation of this interface to allow the prompt module to locate these references. The reference locator is used in the following scenarios:
  • When the prompt module deletes a prompt object, it first scans for existing references and refuses to delete the object if any references are found.
Since:
8.5.0
  • Method Details

    • locateConnectionReferences

      List<IPromptReference> locateConnectionReferences(PromptObjectIdentifier connection)
      Finds all references to the given prompt connection.
      Parameters:
      connection - The ID of the prompt connection to find references for.
      Returns:
      A list of references to the given prompt connection.
    • locateQueryReferences

      List<IPromptReference> locateQueryReferences(PromptObjectIdentifier query)
      Finds all references to the given prompt query.
      Parameters:
      query - The UUID prompt query to find references for.
      Returns:
      A list of references to the given prompt query.