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 Resource sitemapRoot, @NotNull java.lang.String name)Returns theSitemapGeneratorfor the given sitemap rootResourceand 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 allSitemapGenerators for the given sitemap root.@NotNull java.util.Set<java.lang.String>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 Detail
-
getNames
java.util.Set<java.lang.String> getNames(@NotNull @NotNull Resource sitemapRoot)Returns all names of allSitemapGenerators 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 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 java.lang.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 java.util.Map<java.lang.String,SitemapGenerator> getGenerators(@NotNull @NotNull Resource sitemapRoot)
- Parameters:
sitemapRoot-- Returns:
-
-