public abstract class AbstractExtensionRequest extends 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_ROOTMODIFICATIONSALLOWED |
JOBID_ACTION_PREFIX, JOBID_PLAN_PREFIX, JOBID_PREFIXPROPERTY_INTERACTIVE, PROPERTY_REMOTE| Constructor and Description |
|---|
AbstractExtensionRequest()
Default constructor.
|
AbstractExtensionRequest(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
Extensions on the fly (change allowed namespaces, dependencies, etc.). |
boolean |
hasNamespaces() |
boolean |
isRootModificationsAllowed() |
void |
setRewriter(ExtensionRewriter rewriter)
Allow modifying manipulated
Extensions on the fly (change allowed namespaces, dependencies, etc.). |
void |
setRootModificationsAllowed(boolean allowed) |
containsProperty, getId, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isVerbose, removeProperty, setId, setId, setId, setInteractive, setProperty, setRemote, setVerboseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJobIdcontainsProperty, getId, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isVerbosepublic static final String PROPERTY_EXTENSIONS
getExtensions(),
Constant Field Valuespublic static final String PROPERTY_EXCLUDEDEXTENSIONS
getExtensions(),
Constant Field Valuespublic static final String PROPERTY_NAMESPACES
getNamespaces(),
Constant Field Valuespublic static final String PROPERTY_ROOTMODIFICATIONSALLOWED
public AbstractExtensionRequest()
public AbstractExtensionRequest(Request request)
request - the request to copypublic Collection<ExtensionId> getExtensions()
getExtensions in interface ExtensionRequestpublic Collection<ExtensionId> getExcludedExtensions()
public Collection<String> getNamespaces()
getNamespaces in interface ExtensionRequestpublic boolean hasNamespaces()
hasNamespaces in interface ExtensionRequestpublic 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 ExtensionRequestpublic 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)@Unstable public void setRewriter(ExtensionRewriter rewriter)
Extensions on the fly (change allowed namespaces, dependencies, etc.).rewriter - the filterpublic ExtensionRewriter getRewriter()
ExtensionRequestExtensions on the fly (change allowed namespaces, dependencies, etc.).getRewriter in interface ExtensionRequestCopyright © 2004–2017 XWiki. All rights reserved.