Interface CoreExtensionRepository

    • Method Detail

      • countExtensions

        int countExtensions()
        Returns:
        the number of core extensions
      • getEnvironmentExtension

        CoreExtension getEnvironmentExtension()
        Return the extension corresponding to the current environment if any. Generally used to get the current XWiki distribution.
        Returns:
        the core extension associated to the environment
      • getCoreExtension

        CoreExtension getCoreExtension​(String feature)
        Parameters:
        feature - the feature provided by the extension including its identifier (version is not needed since there can be only one version of a core extension)
        Returns:
        the core extension, null if none is found
      • exists

        boolean exists​(String feature)
        Parameters:
        feature - the feature provided by the extension including its identifier (version is not needed since there can be only one version of a core extension)
        Returns:
        true if the extension exists, false otherwise