public class SeoServiceUtil extends Object
Constructor and Description |
---|
SeoServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static URL |
getCanonicalUrl(String pageId,
Locale locale)
|
static String |
getPageDescription(String pageId,
Locale locale)
|
static String |
getPageSocialDescription(String pageId,
Locale locale)
|
static String |
getPageSocialImageFileId(String pageId,
Locale locale)
|
static String |
getPageSocialTitle(String pageId,
Locale locale)
|
static String |
getPageTitle(String pageId,
Locale locale)
|
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)
|
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
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
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
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
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
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
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
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.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.