Package org.apache.sling.sitemap
Interface SitemapGeneratorManager
-
@ProviderType public interface SitemapGeneratorManager
A service that manages all registeredSitemapGenerator
services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable SitemapGenerator
getGenerator(@NotNull Resource sitemapRoot, @NotNull String name)
Returns theSitemapGenerator
for the given sitemap rootResource
and name.@NotNull Map<String,SitemapGenerator>
getGenerators(@NotNull Resource sitemapRoot)
Set<String>
getNames(@NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s for the given sitemap root.@NotNull Set<String>
getOnDemandNames(@NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s for the given sitemap root, limited to those that are configured to be served on demand.
-
-
-
Method Detail
-
getNames
Set<String> getNames(@NotNull @NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s for the given sitemap root.- Parameters:
sitemapRoot
-- Returns:
-
getOnDemandNames
@NotNull @NotNull Set<String> getOnDemandNames(@NotNull @NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s 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 theSitemapGenerator
for the given sitemap rootResource
and name. This may be null when noSitemapGenerator
service 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:
-
-