Interface ExtensionRequest

All Superinterfaces:
org.xwiki.job.Request, Serializable
All Known Implementing Classes:
AbstractExtensionRequest, InstallRequest, UninstallRequest

public interface ExtensionRequest extends org.xwiki.job.Request
Extension manipulation related Request.
Since:
4.0M1
Version:
$Id: 94592fd283e0e731659f6b663a8a7af4d9b8e310 $
  • Field Details

    • JOBID_PREFIX

      static final String JOBID_PREFIX
      The prefix put behind all job ids.
      Since:
      8.2RC1
      See Also:
    • 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:
    • 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:
  • Method Details

    • 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