Package org.apache.sling.sitemap
Interface SitemapGeneratorManager
-
@ProviderType public interface SitemapGeneratorManagerA service that manages all registeredSitemapGeneratorservices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable SitemapGeneratorgetGenerator(@NotNull org.apache.sling.api.resource.Resource sitemapRoot, @NotNull String name)Returns theSitemapGeneratorfor the given sitemap rootResourceand name.@NotNull Map<String,SitemapGenerator>getGenerators(@NotNull org.apache.sling.api.resource.Resource sitemapRoot)Set<String>getNames(@NotNull org.apache.sling.api.resource.Resource sitemapRoot)Returns all names of allSitemapGenerators for the given sitemap root.@NotNull Set<String>getOnDemandNames(@NotNull org.apache.sling.api.resource.Resource sitemapRoot)Returns all names of allSitemapGenerators for the given sitemap root, limited to those that are configured to be served on demand.
-
-
-
Method Detail
-
getNames
Set<String> getNames(@NotNull @NotNull org.apache.sling.api.resource.Resource sitemapRoot)
Returns all names of allSitemapGenerators for the given sitemap root.- Parameters:
sitemapRoot-- Returns:
-
getOnDemandNames
@NotNull @NotNull Set<String> getOnDemandNames(@NotNull @NotNull org.apache.sling.api.resource.Resource sitemapRoot)
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 org.apache.sling.api.resource.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 org.apache.sling.api.resource.Resource sitemapRoot)
- Parameters:
sitemapRoot-- Returns:
-
-