Interface IndexConfigProviderContext

    • Method Detail

      • getProfileWithView

        Optional<String> getProfileWithView()
        When the plugin is called for a profile, this will be set to the profile and view value which is used in the profile parameter in the modern UI. This also matches the profile folder used on disk in the collection configuration.
        Returns:
        Empty when not running on a profile otherwise the profile and view.
      • getProfile

        Optional<String> getProfile()
        Returns:
        Empty when not running on a profile otherwise the profile this is being run.
      • readCollectionConfigFile

        Optional<byte[]> readCollectionConfigFile​(String... pathsBelowConf)
                                           throws IOException
        May be used to read a file from the current collection's configuration directory.
        Parameters:
        pathsBelowConf - The path below the current collection's configuration directory e.g. List.of("collection.cfg") to read $SEARCH_HOME/conf/$COLLECTION/collection.cfg
        Returns:
        if the file is present the bytes of that file, otherwise empty.
        Throws:
        IOException