Class AbstractExtensionRequest

    • Constructor Detail

      • AbstractExtensionRequest

        public AbstractExtensionRequest()
        Default constructor.
      • AbstractExtensionRequest

        public AbstractExtensionRequest​(org.xwiki.job.Request request)
        Parameters:
        request - the request to copy
    • Method Detail

      • getExcludedExtensions

        public Collection<ExtensionId> getExcludedExtensions()
        Returns:
        extensions to not take into account
      • hasNamespaces

        public boolean hasNamespaces()
        Specified by:
        hasNamespaces in interface ExtensionRequest
        Returns:
        indicate if the request is applied on specific namespace or all of them
      • addExtension

        public void addExtension​(ExtensionId extensionId)
        Parameters:
        extensionId - the extension identifier
      • addExcludedExtension

        public void addExcludedExtension​(ExtensionId extensionId)
        Parameters:
        extensionId - the extension identifier
      • addNamespace

        public void addNamespace​(String namespace)
        Parameters:
        namespace - the namespace
      • isRootModificationsAllowed

        public boolean isRootModificationsAllowed()
        Specified by:
        isRootModificationsAllowed in interface ExtensionRequest
        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)
      • setRootModificationsAllowed

        public void setRootModificationsAllowed​(boolean allowed)
        Parameters:
        allowed - 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)
      • setRewriter

        public void setRewriter​(ExtensionRewriter rewriter)
        Allow modifying manipulated Extensions on the fly (change allowed namespaces, dependencies, etc.).
        Parameters:
        rewriter - the filter
        Since:
        8.4.2, 9.0RC1
      • isUninstallAllowed

        public boolean isUninstallAllowed()
        Specified by:
        isUninstallAllowed in interface ExtensionRequest
        Returns:
        true if it's allowed remove extension in conflict with the new extension(s)
      • setUninstallAllowed

        public void setUninstallAllowed​(boolean allowed)
        Parameters:
        allowed - true if it's allowed remove extension in conflict with the new extension(s)
        Since:
        9.1RC1