@Component @Named(value="extension.core") @Singleton public class CoreExtensionScriptService extends AbstractExtensionScriptService
Modifier and Type | Field and Description |
---|---|
static String |
ID
The identifier of the sub extension
ScriptService . |
authorization, documentAccessBridge, execution, EXTENSIONERROR_KEY, jobExecutor, PROPERTY_CALLERREFERENCE, PROPERTY_CHECKRIGHTS, PROPERTY_CONTEXT_ACTION, PROPERTY_CONTEXT_WIKI, PROPERTY_USERREFERENCE, scriptProvider, WIKI_NAMESPACE_PREFIX, xcontextProvider
Constructor and Description |
---|
CoreExtensionScriptService() |
Modifier and Type | Method and Description |
---|---|
org.xwiki.extension.CoreExtension |
getCoreExtension(String feature)
Get the extension handler corresponding to the given core extension ID.
|
Collection<org.xwiki.extension.CoreExtension> |
getCoreExtensions()
Get a list of core extensions provided by the current version of the platform.
|
org.xwiki.extension.repository.CoreExtensionRepository |
getRepository() |
contextualize, fromWikitoNamespace, getCallerDocument, getJobStatus, getLastError, safe, safeWrapError, setError, setRightsProperties, toWikiId, wrapError
public static final String ID
ScriptService
.public org.xwiki.extension.repository.CoreExtensionRepository getRepository()
public Collection<org.xwiki.extension.CoreExtension> getCoreExtensions()
public org.xwiki.extension.CoreExtension getCoreExtension(String feature)
feature
- the extension id or provided feature (virtual extension) of the extension to resolvenull
if the extension isn't
provided by the platformCopyright © 2004–2019 XWiki. All rights reserved.