Interface ExtensionRequest

    • Field Detail

      • JOBID_ACTION_PREFIX

        static final String JOBID_ACTION_PREFIX
        The prefix put behind all job ids which are actual actions.
        Since:
        8.2RC1
        See Also:
        Constant Field Values
      • JOBID_PLAN_PREFIX

        static final String JOBID_PLAN_PREFIX
        The prefix put behind all job ids which are information gathering.
        Since:
        8.2RC1
        See Also:
        Constant Field Values
    • Method Detail

      • getJobId

        static List<String> getJobId​(String prefix,
                                     String extensionId,
                                     String namespace)
        Parameters:
        prefix - the prefix, usually JOBID_ACTION_PREFIX or JOBID_PLAN_PREFIX
        extensionId - the id of the extension for which to create a job id
        namespace - the namespace for which to create a job id
        Returns:
        the job id
        Since:
        8.2RC1
      • getExtensions

        Collection<ExtensionId> getExtensions()
        Returns:
        the ids of the extensions on which to apply the task.
      • getNamespaces

        Collection<String> getNamespaces()
        Returns:
        the namespaces on which to apply the task.
      • hasNamespaces

        boolean hasNamespaces()
        Returns:
        indicate if the request is applied on specific namespace or all of them
      • isRootModificationsAllowed

        default boolean isRootModificationsAllowed()
        Returns:
        indicate if it's allowed to do modifications on root namespace during the job execution (not taken into account if the target of the request is root namespace)
        Since:
        8.1M1
      • getRewriter

        default ExtensionRewriter getRewriter()
        Allow modifying manipulated Extensions on the fly (change allowed namespaces, dependencies, etc.).
        Returns:
        the filter
        Since:
        8.4.2, 9.0RC1
      • getCoreExtensionRepository

        default CoreExtensionRepository getCoreExtensionRepository()
        Returns:
        the repository to use to find core extensions
        Since:
        15.0RC1
      • isUninstallAllowed

        default boolean isUninstallAllowed()
        Returns:
        true if it's allowed remove extension in conflict with the new extension(s)
        Since:
        9.1RC1
      • isInstalledIgnored

        @Unstable
        default boolean isInstalledIgnored()
        Returns:
        true true if already installed extensions should not be taken into account while resolving the install plan
        Since:
        15.0RC1