Package org.xwiki.platform.flavor
Interface FlavorManager
@Role
public interface FlavorManager
Find the flavors into the repositories, applying filters according to the configuration.
- Since:
- 7.1M2
- Version:
- $Id: 5d827213af6869030637a880526a31db1e295fed $
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.xwiki.extension.InstalledExtensiongetFlavorExtension(org.xwiki.component.namespace.Namespace namespace) Get the flavor installed on a given namespace.org.xwiki.extension.ExtensionIdgetFlavorOfWiki(String wikiId) Get the flavor installed on a given wiki.org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension>getFlavors(FlavorQuery query) Deprecated.default Collection<org.xwiki.extension.ExtensionId>Get the flavors know to be compatible with the distribution.default Collection<String>Get the flavors identifiers know to be incompatible with the distribution.org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension>searchFlavors(FlavorQuery query) Get all flavors matching a query.
-
Method Details
-
getFlavors
@Deprecated org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> getFlavors(FlavorQuery query) throws org.xwiki.extension.repository.search.SearchException Deprecated.since 8.0RC1, usesearchFlavors(FlavorQuery)insteadGet all flavors matching a query.- Parameters:
query- query to execute- Returns:
- flavors matching the query
- Throws:
org.xwiki.extension.repository.search.SearchException- error when trying to search provided query
-
searchFlavors
org.xwiki.extension.repository.result.IterableResult<org.xwiki.extension.Extension> searchFlavors(FlavorQuery query) throws org.xwiki.extension.repository.search.SearchException Get all flavors matching a query.- Parameters:
query- query to execute- Returns:
- flavors matching the query
- Throws:
org.xwiki.extension.repository.search.SearchException- error when trying to search provided query- Since:
- 8.0RC1
-
getFlavorOfWiki
Get the flavor installed on a given wiki.- Parameters:
wikiId- id of the wiki- Returns:
- the id of the flavor installed on the given wiki or null if there is no flavor installed
-
getFlavorExtension
default org.xwiki.extension.InstalledExtension getFlavorExtension(org.xwiki.component.namespace.Namespace namespace) Get the flavor installed on a given namespace.- Parameters:
namespace- the namespace where to search for the flavor- Returns:
- the found flavor
- Since:
- 9.5
-
getKnownFlavors
Get the flavors know to be compatible with the distribution.Each
ExtensionIdalways contains the flavor id but version might be null.- Returns:
- the already known flavors
- Since:
- 8.1M1
-
getKnownInvalidFlavors
Get the flavors identifiers know to be incompatible with the distribution.- Returns:
- the already known flavors
- Since:
- 9.5RC1
-
searchFlavors(FlavorQuery)instead