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_REWRITER |
static String |
PROPERTY_ROOTMODIFICATIONSALLOWED |
static String |
PROPERTY_UNINSTALLALLOWED |
JOBID_ACTION_PREFIX, JOBID_PLAN_PREFIX, JOBID_PREFIXPROPERTY_CONTEXT, PROPERTY_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() |
boolean |
isUninstallAllowed() |
void |
setRewriter(ExtensionRewriter rewriter)
Allow modifying manipulated
Extensions on the fly (change allowed namespaces, dependencies, etc.). |
void |
setRootModificationsAllowed(boolean allowed) |
void |
setUninstallAllowed(boolean allowed) |
containsProperty, getContext, getId, getProperties, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, removeProperty, setContext, setId, setId, setId, setInteractive, setProperty, setRemote, setStatusLogIsolated, setStatusSerialized, setVerboseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJobIdcontainsProperty, getContext, getId, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, setContextpublic 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(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)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 ExtensionRequestpublic boolean isUninstallAllowed()
isUninstallAllowed in interface ExtensionRequestpublic void setUninstallAllowed(boolean allowed)
allowed - true if it's allowed remove extension in conflict with the new extension(s)Copyright © 2004–2019 XWiki. All rights reserved.