Package com.adobe.aem.wcm.seo.sitemap
Interface PageTreeSitemapGenerator
-
- All Superinterfaces:
SitemapGenerator
@ProviderType public interface PageTreeSitemapGenerator extends SitemapGenerator
A service that exposes the filters and utility methods the defaultSitemapGeneratorof for pages uses.It acts as extension point for a delegation pattern implementation, where another
SitemapGeneratorreplaces the default one but needs to use some of its functionality anyway.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sling.sitemap.spi.generator.SitemapGenerator
SitemapGenerator.Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Locale,String>getAlternateLanguageLinks(Page page)booleanisNoIndex(Page page)Returnstruewhen thePageis set to be not indexed by search engines.booleanisProtected(Page page)Returnstruewhen thePagerequires authentication.booleanisPublished(Page page)Returnstruewhen thePageis published.booleanisRedirect(Page page)Returnstruewhen thePagehas a redirect target.-
Methods inherited from interface org.apache.sling.sitemap.spi.generator.SitemapGenerator
generate, getNames, getOnDemandNames
-
-
-
-
Method Detail
-
getAlternateLanguageLinks
Map<Locale,String> getAlternateLanguageLinks(Page page)
- Parameters:
page- thePageget the alternate language links for- Returns:
- returns the map of alternate language links of the page as it is added to a Sitemap
-
isPublished
boolean isPublished(Page page)
- Parameters:
page- thePageto check- Returns:
truewhen the page is published,false otherwise
-
isNoIndex
boolean isNoIndex(Page page)
Returnstruewhen thePageis set to be not indexed by search engines.- Parameters:
page- thePageto check- Returns:
truewhen the page is not to be contained in the Sitemap,false otherwise
-
isRedirect
boolean isRedirect(Page page)
Returnstruewhen thePagehas a redirect target.- Parameters:
page- thePageto check- Returns:
truewhen the page is a redirect,false otherwise
-
-