org.xwiki.extension.job
Class AbstractExtensionRequest
java.lang.Object
org.xwiki.job.AbstractRequest
org.xwiki.extension.job.AbstractExtensionRequest
- All Implemented Interfaces:
- Serializable, ExtensionRequest, Request
- Direct Known Subclasses:
- InstallRequest, UninstallRequest
public abstract class AbstractExtensionRequest
- extends AbstractRequest
- implements ExtensionRequest
Base class for extension manipulation related Request implementations.
- Since:
- 4.0M1
- Version:
- $Id$
- See Also:
- Serialized Form
| Methods inherited from class org.xwiki.job.AbstractRequest |
getId, getProperty, getProperty, getPropertyNames, isInteractive, isRemote, setId, setId, setInteractive, setProperty, setRemote |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_EXTENSIONS
public static final String PROPERTY_EXTENSIONS
- See Also:
getExtensions(),
Constant Field Values
PROPERTY_NAMESPACES
public static final String PROPERTY_NAMESPACES
- See Also:
getNamespaces(),
Constant Field Values
AbstractExtensionRequest
public AbstractExtensionRequest()
- Default constructor.
AbstractExtensionRequest
public AbstractExtensionRequest(Request request)
- Parameters:
request - the request to copy
getExtensions
public Collection<ExtensionId> getExtensions()
- Specified by:
getExtensions in interface ExtensionRequest
- Returns:
- the extension on which to apply the task.
getNamespaces
public Collection<String> getNamespaces()
- Specified by:
getNamespaces in interface ExtensionRequest
- Returns:
- the namespaces on which to apply the task.
hasNamespaces
public boolean hasNamespaces()
- Specified by:
hasNamespaces in interface ExtensionRequest
- Returns:
- indicate if the request is applied on specific namespace or all of them
addExtension
public void addExtension(ExtensionId extensionId)
- Parameters:
extensionId - the extension identifier
addNamespace
public void addNamespace(String namespace)
- Parameters:
namespace - the namespace
Copyright © 2004-2012 XWiki. All Rights Reserved.