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 defaultSitemapGenerator
of for pages uses.It acts as extension point for a delegation pattern implementation, where another
SitemapGenerator
replaces 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)
boolean
isNoIndex(Page page)
Returnstrue
when thePage
is set to be not indexed by search engines.boolean
isProtected(Page page)
Returnstrue
when thePage
requires authentication.boolean
isPublished(Page page)
Returnstrue
when thePage
is published.boolean
isRedirect(Page page)
Returnstrue
when thePage
has 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
- thePage
get 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
- thePage
to check- Returns:
true
when the page is published,false otherwise
-
isNoIndex
boolean isNoIndex(Page page)
Returnstrue
when thePage
is set to be not indexed by search engines.- Parameters:
page
- thePage
to check- Returns:
true
when the page is not to be contained in the Sitemap,false otherwise
-
isRedirect
boolean isRedirect(Page page)
Returnstrue
when thePage
has a redirect target.- Parameters:
page
- thePage
to check- Returns:
true
when the page is a redirect,false otherwise
-
-