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 Deprecated Methods Modifier and Type Method Description @NotNull java.util.Map<java.util.Locale,java.lang.String>
getAlternateLanguageLinks(Page page)
Returns a mapping fromLocale
to the canonical url for the language alternatives of the givenPage
.@Nullable java.lang.String
getCanonicalUrl(Page page)
Returns the canonical url of a givenPage
.boolean
isNoIndex(Page page)
Deprecated.useshouldInclude(Resource)
insteadboolean
isProtected(Page page)
Deprecated.useshouldInclude(Resource)
insteadboolean
isPublished(Page page)
Deprecated.useshouldInclude(Resource)
insteadboolean
isRedirect(Page page)
Deprecated.useshouldInclude(Resource)
insteadboolean
shouldFollow(@NotNull Resource resource)
Returns true if the givenResource
should be followed for traversal.boolean
shouldInclude(@NotNull Resource resource)
Returns true if the givenResource
should be included.-
Methods inherited from interface org.apache.sling.sitemap.spi.generator.SitemapGenerator
generate, getNames, getOnDemandNames
-
-
-
-
Method Detail
-
shouldInclude
boolean shouldInclude(@NotNull @NotNull Resource resource)
Returns true if the givenResource
should be included.- Parameters:
resource
-- Returns:
- See Also:
ResourceTreeSitemapGenerator.shouldInclude(Resource)
-
shouldFollow
boolean shouldFollow(@NotNull @NotNull Resource resource)
Returns true if the givenResource
should be followed for traversal.- Parameters:
resource
-- Returns:
- See Also:
ResourceTreeSitemapGenerator.shouldFollow(Resource)
-
getCanonicalUrl
@Nullable @Nullable java.lang.String getCanonicalUrl(Page page)
Returns the canonical url of a givenPage
.This may be the
Page
's path externalized by theSitemapLinkExternalizer
or the canonical url specified by theSeoTags.PN_CANONICAL_URL
property.- Parameters:
page
-- Returns:
-
getAlternateLanguageLinks
@NotNull @NotNull java.util.Map<java.util.Locale,java.lang.String> getAlternateLanguageLinks(Page page)
Returns a mapping fromLocale
to the canonical url for the language alternatives of the givenPage
.- 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
@Deprecated boolean isPublished(Page page)
Deprecated.useshouldInclude(Resource)
instead- Parameters:
page
- thePage
to check- Returns:
true
when the page is published,false otherwise
-
isNoIndex
@Deprecated boolean isNoIndex(Page page)
Deprecated.useshouldInclude(Resource)
insteadReturnstrue
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
@Deprecated boolean isRedirect(Page page)
Deprecated.useshouldInclude(Resource)
insteadReturnstrue
when thePage
has a redirect target.- Parameters:
page
- thePage
to check- Returns:
true
when the page is a redirect,false otherwise
-
isProtected
@Deprecated boolean isProtected(Page page)
Deprecated.useshouldInclude(Resource)
insteadReturnstrue
when thePage
requires authentication.- Parameters:
page
- thePage
to check- Returns:
true
when the page is a protected by CUG,false otherwise
-
-