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 java.lang.String name)
Returns theSitemapGenerator
for the given sitemap rootResource
and name.@NotNull java.util.Map<java.lang.String,SitemapGenerator>
getGenerators(@NotNull Resource sitemapRoot)
java.util.Set<java.lang.String>
getNames(@NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s for the given sitemap root.@NotNull java.util.Set<java.lang.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
java.util.Set<java.lang.String> getNames(@NotNull @NotNull Resource sitemapRoot)
Returns all names of allSitemapGenerator
s for the given sitemap root.- Parameters:
sitemapRoot
-- Returns:
-
getOnDemandNames
@NotNull @NotNull java.util.Set<java.lang.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 java.lang.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 java.util.Map<java.lang.String,SitemapGenerator> getGenerators(@NotNull @NotNull Resource sitemapRoot)
- Parameters:
sitemapRoot
-- Returns:
-
-