@ProviderType public interface PageTreeSitemapGenerator extends SitemapGenerator
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.
SitemapGenerator.Context
Modifier and Type | Method and Description |
---|---|
@NotNull java.util.Map<java.util.Locale,java.lang.String> |
getAlternateLanguageLinks(Page page)
Returns a mapping from
Locale to the canonical url for the language alternatives of the given Page . |
@Nullable java.lang.String |
getCanonicalUrl(Page page)
Returns the canonical url of a given
Page . |
boolean |
isNoIndex(Page page)
Deprecated.
use
shouldInclude(Resource) instead |
boolean |
isProtected(Page page)
Deprecated.
use
shouldInclude(Resource) instead |
boolean |
isPublished(Page page)
Deprecated.
use
shouldInclude(Resource) instead |
boolean |
isRedirect(Page page)
Deprecated.
use
shouldInclude(Resource) instead |
boolean |
shouldFollow(@NotNull Resource resource)
Returns true if the given
Resource should be followed for traversal. |
boolean |
shouldInclude(@NotNull Resource resource)
Returns true if the given
Resource should be included. |
generate, getNames, getOnDemandNames
boolean shouldInclude(@NotNull @NotNull Resource resource)
Resource
should be included.resource
- ResourceTreeSitemapGenerator.shouldInclude(Resource)
boolean shouldFollow(@NotNull @NotNull Resource resource)
Resource
should be followed for traversal.resource
- ResourceTreeSitemapGenerator.shouldFollow(Resource)
@Nullable @Nullable java.lang.String getCanonicalUrl(Page page)
Page
.
This may be the Page
's path externalized by the SitemapLinkExternalizer
or the canonical url specified by the SeoTags.PN_CANONICAL_URL
property.
page
- @NotNull @NotNull java.util.Map<java.util.Locale,java.lang.String> getAlternateLanguageLinks(Page page)
Locale
to the canonical url for the language alternatives of the given Page
.page
- the Page
get the alternate language links for@Deprecated boolean isPublished(Page page)
shouldInclude(Resource)
insteadpage
- the Page
to checktrue
when the page is published, false otherwise
@Deprecated boolean isNoIndex(Page page)
shouldInclude(Resource)
insteadtrue
when the Page
is set to be not indexed by search engines.page
- the Page
to checktrue
when the page is not to be contained in the Sitemap, false otherwise
@Deprecated boolean isRedirect(Page page)
shouldInclude(Resource)
insteadtrue
when the Page
has a redirect target.page
- the Page
to checktrue
when the page is a redirect, false otherwise
@Deprecated boolean isProtected(Page page)
shouldInclude(Resource)
insteadtrue
when the Page
requires authentication.page
- the Page
to checktrue
when the page is a protected by CUG, false otherwise
Copyright © 2010 - 2023 Adobe. All Rights Reserved