Package com.adobe.aem.wcm.seo.sitemap
Interface PageTreeSitemapGenerator
- All Superinterfaces:
SitemapGenerator
A service that exposes the filters and utility methods the default
SitemapGenerator 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
Modifier and TypeMethodDescription@Nullable StringgetCanonicalUrl(Page page) Returns the canonical url of a givenPage.booleanDeprecated.booleanisProtected(Page page) Deprecated.useshouldInclude(Resource)insteadbooleanisPublished(Page page) Deprecated.useshouldInclude(Resource)insteadbooleanisRedirect(Page page) Deprecated.useshouldInclude(Resource)insteadbooleanshouldFollow(@NotNull Resource resource) Returns true if the givenResourceshould be followed for traversal.booleanshouldInclude(@NotNull Resource resource) Returns true if the givenResourceshould be included.Methods inherited from interface org.apache.sling.sitemap.spi.generator.SitemapGenerator
generate, getNames, getOnDemandNames
-
Method Details
-
shouldInclude
Returns true if the givenResourceshould be included.- Parameters:
resource-- Returns:
- See Also:
-
shouldFollow
Returns true if the givenResourceshould be followed for traversal.- Parameters:
resource-- Returns:
- See Also:
-
getCanonicalUrl
Returns the canonical url of a givenPage.This may be the
Page's path externalized by theSitemapLinkExternalizeror the canonical url specified by theSeoTags.PN_CANONICAL_URLproperty.- Parameters:
page-- Returns:
-
getAlternateLanguageLinks
- 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
Deprecated.useshouldInclude(Resource)instead- Parameters:
page- thePageto check- Returns:
truewhen the page is published,false otherwise
-
isNoIndex
Deprecated.useshouldInclude(Resource)insteadReturnstruewhen 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
Deprecated.useshouldInclude(Resource)insteadReturnstruewhen thePagehas a redirect target.- Parameters:
page- thePageto check- Returns:
truewhen the page is a redirect,false otherwise
-
isProtected
Deprecated.useshouldInclude(Resource)insteadReturnstruewhen thePagerequires authentication.- Parameters:
page- thePageto check- Returns:
truewhen the page is a protected by CUG,false otherwise
-
shouldInclude(Resource)instead