@Component @Named(value="flavor") @Singleton public class FlavorManagerScriptService extends AbstractExtensionScriptService
Modifier and Type | Field and Description |
---|---|
static String |
ROLEHINT
The role hint of this component.
|
static String |
SEARCH_ID
The id to use in the jobs searching for flavors.
|
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 |
---|
FlavorManagerScriptService() |
Modifier and Type | Method and Description |
---|---|
FlavorQuery |
createFlavorQuery()
Creates a flavor query.
|
FlavorQuery |
createFlavorQuery(String query)
Creates a flavor query.
|
org.xwiki.extension.InstalledExtension |
getFlavorExtension(org.xwiki.component.namespace.Namespace namespace)
Get the flavor installed on a given namespace.
|
org.xwiki.extension.ExtensionId |
getFlavorOfWiki(String wikiId)
Get the flavor installed on a given wiki.
|
org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> |
getFlavors(FlavorQuery query)
Deprecated.
since 8.0RC1, use
searchFlavors(FlavorQuery) instead |
Collection<org.xwiki.extension.ExtensionId> |
getKnownFlavors()
Get the flavors know to be compatible with the distribution.
|
Collection<String> |
getKnownInvalidFlavors()
Get the flavors identifiers know to be incompatible with the distribution.
|
org.xwiki.platform.flavor.internal.job.FlavorSearchStatus |
getSearchValidFlavorsStatus() |
org.xwiki.platform.flavor.internal.job.FlavorSearchStatus |
getSearchValidFlavorsStatus(String namespace) |
String |
getSearchValidFlavorsStatusURL() |
String |
getSearchValidFlavorsStatusURL(String namespace) |
List<org.xwiki.extension.Extension> |
getValidExtensions() |
List<org.xwiki.extension.Extension> |
getValidExtensions(String namespace) |
org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> |
searchFlavors(FlavorQuery query)
Search for all flavors matching a query.
|
org.xwiki.job.Job |
searchValidFlavors()
Start searching for valid flavors in the context of the current wiki.
|
org.xwiki.job.Job |
searchValidFlavors(String namespace)
Start searching for valid flavors.
|
contextualize, fromWikitoNamespace, getCallerDocument, getJobStatus, getLastError, safe, safeWrapError, setError, setRightsProperties, toWikiId, wrapError
public static final String ROLEHINT
public static final String SEARCH_ID
public FlavorQuery createFlavorQuery()
public FlavorQuery createFlavorQuery(String query)
query
- the query to execute@Deprecated public org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> getFlavors(FlavorQuery query)
searchFlavors(FlavorQuery)
insteadquery
- query to executepublic org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> searchFlavors(FlavorQuery query)
query
- query to executepublic org.xwiki.platform.flavor.internal.job.FlavorSearchStatus getSearchValidFlavorsStatus(String namespace)
namespace
- the namespace where to validate the flavorspublic org.xwiki.platform.flavor.internal.job.FlavorSearchStatus getSearchValidFlavorsStatus()
public String getSearchValidFlavorsStatusURL(String namespace)
namespace
- the namespace where to validate the flavorspublic List<org.xwiki.extension.Extension> getValidExtensions()
public List<org.xwiki.extension.Extension> getValidExtensions(String namespace)
namespace
- the namespace where to validate the flavorspublic String getSearchValidFlavorsStatusURL()
public org.xwiki.job.Job searchValidFlavors(String namespace)
namespace
- the namespace where to validate the flavorsJob
searching the flavorspublic org.xwiki.job.Job searchValidFlavors()
Job
searching the flavorspublic org.xwiki.extension.ExtensionId getFlavorOfWiki(String wikiId)
wikiId
- id of the wikipublic org.xwiki.extension.InstalledExtension getFlavorExtension(org.xwiki.component.namespace.Namespace namespace)
namespace
- the namespace where to search for the flavorpublic Collection<org.xwiki.extension.ExtensionId> getKnownFlavors()
Each ExtensionId
always contains the flavor id but version might be null.
public Collection<String> getKnownInvalidFlavors()
Copyright © 2004–2019 XWiki. All rights reserved.