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 relatedRequest
.- Since:
- 4.0M1
- Version:
- $Id: 94592fd283e0e731659f6b663a8a7af4d9b8e310 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
JOBID_ACTION_PREFIX
The prefix put behind all job ids which are actual actions.static String
JOBID_PLAN_PREFIX
The prefix put behind all job ids which are information gathering.static String
JOBID_PREFIX
The prefix put behind all job ids.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CoreExtensionRepository
getCoreExtensionRepository()
Collection<ExtensionId>
getExtensions()
static List<String>
getJobId(String prefix, String extensionId, String namespace)
Collection<String>
getNamespaces()
default ExtensionRewriter
getRewriter()
Allow modifying manipulatedExtension
s on the fly (change allowed namespaces, dependencies, etc.).boolean
hasNamespaces()
default boolean
isInstalledIgnored()
default boolean
isRootModificationsAllowed()
default boolean
isUninstallAllowed()
-
-
-
Field Detail
-
JOBID_PREFIX
static final String JOBID_PREFIX
The prefix put behind all job ids.- Since:
- 8.2RC1
- See Also:
- Constant Field Values
-
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, 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
default ExtensionRewriter getRewriter()
Allow modifying manipulatedExtension
s 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
-
-