public class SeoWebResourceUtil extends Object
Constructor and Description |
---|
SeoWebResourceUtil() |
Modifier and Type | Method and Description |
---|---|
static URL |
getCanonicalUrl(String pageId,
Locale locale)
Returns the canonical URL for the specified
page SeoRule if defined. |
static String |
getPageDescription(String pageId,
Locale locale)
Returns the description for the specified
page SeoRule if defined. |
static String |
getPageSocialDescription(String pageId,
Locale locale)
Returns the social description for the specified
page SeoRule if defined. |
static String |
getPageSocialImageFileId(String pageId,
Locale locale)
Returns the social image file id for the specified
page SeoRule if defined. |
static String |
getPageSocialTitle(String pageId,
Locale locale)
Returns the social title for the specified
page SeoRule if defined. |
static String |
getPageTitle(String pageId,
Locale locale)
Returns the title for the specified
page SeoRule if defined. |
static String |
getPageTitlePattern(String pageId,
Locale locale)
Returns the page title pattern for the given page and locale.
|
static String |
getUrlPathByChannelId(String channelId,
Locale locale)
Returns the url path for the specified
channel SeoRule if defined. |
static String |
getUrlPathByPageId(String pageId,
Locale locale)
Returns the url path for the specified
PageConfig#getId( page) SeoRule if defined. |
public static URL getCanonicalUrl(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
canonicalUrl
or null
if no canonical URL is defined.PortalException
public static String getPageTitle(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the titlenull
if no title is defined.PortalException
public static String getPageDescription(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the descriptionnull
if no description is defined.PortalException
public static String getUrlPathByPageId(String pageId, Locale locale) throws PortalException
PageConfig#getId( page)
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the urlPathnull
PortalException
public static String getUrlPathByChannelId(String channelId, Locale locale) throws PortalException
channel
SeoRule
if defined.channelId
- The identifier of the ChannelConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the urlPathnull
PortalException
public static String getPageSocialTitle(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the titlenull
if no social title is defined.PortalException
public static String getPageSocialDescription(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRule
locale
- The locale
of the SeoRule
containing the descriptionnull
if no social description is defined.PortalException
public static String getPageSocialImageFileId(String pageId, Locale locale) throws PortalException
page
SeoRule
if defined.pageId
- The identifier of the PageConfig
linked to the SeoRulelocale
- The Locale
of the SeoRule
containing the imagenull
if no social image is defined.PortalException
public static String getPageTitlePattern(String pageId, Locale locale) throws PortalException
pageId
- the page.locale
- the locale.PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.