public abstract class AbstractExtensionRequest extends org.xwiki.job.AbstractRequest implements ExtensionRequest
Request
implementations.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_EXCLUDEDEXTENSIONS |
static String |
PROPERTY_EXTENSIONS |
static String |
PROPERTY_NAMESPACES |
static String |
PROPERTY_REWRITER |
static String |
PROPERTY_ROOTMODIFICATIONSALLOWED |
static String |
PROPERTY_UNINSTALLALLOWED |
JOBID_ACTION_PREFIX, JOBID_PLAN_PREFIX, JOBID_PREFIX
Constructor and Description |
---|
AbstractExtensionRequest()
Default constructor.
|
AbstractExtensionRequest(org.xwiki.job.Request request) |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedExtension(ExtensionId extensionId) |
void |
addExtension(ExtensionId extensionId) |
void |
addNamespace(String namespace) |
Collection<ExtensionId> |
getExcludedExtensions() |
Collection<ExtensionId> |
getExtensions() |
Collection<String> |
getNamespaces() |
ExtensionRewriter |
getRewriter()
Allow modifying manipulated
Extension s on the fly (change allowed namespaces, dependencies, etc.). |
boolean |
hasNamespaces() |
boolean |
isRootModificationsAllowed() |
boolean |
isUninstallAllowed() |
void |
setRewriter(ExtensionRewriter rewriter)
Allow modifying manipulated
Extension s on the fly (change allowed namespaces, dependencies, etc.). |
void |
setRootModificationsAllowed(boolean allowed) |
void |
setUninstallAllowed(boolean allowed) |
containsProperty, equals, getContext, getId, getProperties, getProperty, getProperty, getPropertyNames, hashCode, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, removeProperty, setContext, setId, setId, setId, setInteractive, setProperty, setRemote, setStatusLogIsolated, setStatusSerialized, setVerbose
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getJobId
public static final String PROPERTY_EXTENSIONS
getExtensions()
,
Constant Field Valuespublic static final String PROPERTY_EXCLUDEDEXTENSIONS
getExcludedExtensions()
,
Constant Field Valuespublic static final String PROPERTY_NAMESPACES
getNamespaces()
,
Constant Field Valuespublic static final String PROPERTY_ROOTMODIFICATIONSALLOWED
public static final String PROPERTY_UNINSTALLALLOWED
isUninstallAllowed()
,
Constant Field Valuespublic static final String PROPERTY_REWRITER
getRewriter()
,
Constant Field Valuespublic AbstractExtensionRequest()
public AbstractExtensionRequest(org.xwiki.job.Request request)
request
- the request to copypublic Collection<ExtensionId> getExtensions()
getExtensions
in interface ExtensionRequest
public Collection<ExtensionId> getExcludedExtensions()
public Collection<String> getNamespaces()
getNamespaces
in interface ExtensionRequest
public boolean hasNamespaces()
hasNamespaces
in interface ExtensionRequest
public void addExtension(ExtensionId extensionId)
extensionId
- the extension identifierpublic void addExcludedExtension(ExtensionId extensionId)
extensionId
- the extension identifierpublic void addNamespace(String namespace)
namespace
- the namespacepublic boolean isRootModificationsAllowed()
isRootModificationsAllowed
in interface ExtensionRequest
public void setRootModificationsAllowed(boolean allowed)
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)public void setRewriter(ExtensionRewriter rewriter)
Extension
s on the fly (change allowed namespaces, dependencies, etc.).rewriter
- the filterpublic ExtensionRewriter getRewriter()
ExtensionRequest
Extension
s on the fly (change allowed namespaces, dependencies, etc.).getRewriter
in interface ExtensionRequest
public boolean isUninstallAllowed()
isUninstallAllowed
in interface ExtensionRequest
public void setUninstallAllowed(boolean allowed)
allowed
- true if it's allowed remove extension in conflict with the new extension(s)Copyright © 2004–2021 XWiki. All rights reserved.