Package org.xwiki.extension.job
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The prefix put behind all job ids which are actual actions.static final String
The prefix put behind all job ids which are information gathering.static final String
The prefix put behind all job ids.Fields inherited from interface org.xwiki.job.Request
PROPERTY_CONTEXT, PROPERTY_INTERACTIVE, PROPERTY_REMOTE
-
Method Summary
Modifier and TypeMethodDescriptiondefault CoreExtensionRepository
default ExtensionRewriter
Allow modifying manipulatedExtension
s on the fly (change allowed namespaces, dependencies, etc.).boolean
default boolean
default boolean
default boolean
Methods inherited from interface org.xwiki.job.Request
containsProperty, getContext, getId, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, setContext
-
Field Details
-
JOBID_PREFIX
The prefix put behind all job ids.- Since:
- 8.2RC1
- See Also:
-
JOBID_ACTION_PREFIX
The prefix put behind all job ids which are actual actions.- Since:
- 8.2RC1
- See Also:
-
JOBID_PLAN_PREFIX
The prefix put behind all job ids which are information gathering.- Since:
- 8.2RC1
- See Also:
-
-
Method Details
-
getJobId
- Parameters:
prefix
- the prefix, usuallyJOBID_ACTION_PREFIX
orJOBID_PLAN_PREFIX
extensionId
- the id of the extension for which to create a job idnamespace
- 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
Allow modifying manipulatedExtension
s on the fly (change allowed namespaces, dependencies, etc.).- Returns:
- the filter
- Since:
- 8.4.2, 9.0RC1
-
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
-