Package org.apache.sling.sitemap
Interface SitemapGeneratorManager
A service that manages all registered
SitemapGenerator services.-
Method Summary
Modifier and TypeMethodDescription@Nullable SitemapGeneratorgetGenerator(@NotNull Resource sitemapRoot, @NotNull String name) Returns theSitemapGeneratorfor the given sitemap rootResourceand name.@NotNull Map<String, SitemapGenerator> getGenerators(@NotNull Resource sitemapRoot) Returns all names of allSitemapGenerators for the given sitemap root.getOnDemandNames(@NotNull Resource sitemapRoot) Returns all names of allSitemapGenerators for the given sitemap root, limited to those that are configured to be served on demand.
-
Method Details
-
getNames
Returns all names of allSitemapGenerators for the given sitemap root.- Parameters:
sitemapRoot-- Returns:
-
getOnDemandNames
Returns all names of allSitemapGenerators for the given sitemap root, limited to those that are configured to be served on demand.- Parameters:
sitemapRoot-- Returns:
-
getGenerator
@Nullable @Nullable SitemapGenerator getGenerator(@NotNull @NotNull Resource sitemapRoot, @NotNull @NotNull String name) Returns theSitemapGeneratorfor the given sitemap rootResourceand name. This may be null when noSitemapGeneratorservice exists that generates a sitemap with the name for the given root.- Parameters:
sitemapRoot-name-- Returns:
-
getGenerators
@NotNull @NotNull Map<String,SitemapGenerator> getGenerators(@NotNull @NotNull Resource sitemapRoot) - Parameters:
sitemapRoot-- Returns:
-