public class SEOServiceImpl extends Object implements SEOService
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_CACHE_ENTRY |
static String |
LANGUAGES |
static String |
METADATA_BASE_PATH |
static String |
METADATA_CONTENT_PATH |
static String |
METADATA_PAGE_PATH |
static String |
ROBOTS_NAME |
static String |
SITEMAP_NAME |
| Constructor and Description |
|---|
SEOServiceImpl(org.exoplatform.container.xml.InitParams initParams)
Constructor method
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCachedEntries() |
PageMetadataModel |
getContentMetadata(ArrayList<String> params,
String language)
Gets metadata of a content page.
|
javax.jcr.Node |
getContentNode(String seoPath)
Gets the content node by a given path.
|
List<String> |
getFrequencyOptions()
Gets a list of options for frequency.
|
String |
getHash(String uri)
Returns hash
|
PageMetadataModel |
getMetadata(ArrayList<String> params,
String pageReference,
String language)
Gets metadata of a portal or content page.
|
PageMetadataModel |
getPageMetadata(String pageUri,
String language)
Gets metadata of a portal page.
|
String |
getRobots(String portalName)
Gets robots content of a given site.
|
List<String> |
getRobotsFollowOptions()
Gets a list of options (FOLLOW and NOFOLLOW) for robots to follow.
|
List<String> |
getRobotsIndexOptions()
Gets a list of options (INDEX and NOINDEX) for robots to index.
|
List<Locale> |
getSEOLanguages(String portalName,
String seoPath,
boolean onContent)
Gets all SEO languages of a given page.
|
String |
getSitemap(String portalName)
Gets a sitemap of a given site.
|
String |
getState(String path,
String language,
boolean onContent)
Gets state of a page for its language of a given page.
|
boolean |
isCached() |
void |
removePageMetadata(PageMetadataModel metaModel,
String portalName,
boolean onContent,
String language)
Removes metadata from a given page.
|
void |
setCached(boolean isCached) |
void |
storeMetadata(PageMetadataModel metaModel,
String portalName,
boolean onContent,
String language)
Stores metadata of a given page/content.
|
void |
updateRobots(javax.jcr.Node dummyNode,
String portalName) |
void |
updateSiteMap(String uri,
float priority,
String frequency,
boolean visibleSitemap,
String portalName)
Update sitemap content for portal
|
public static final String EMPTY_CACHE_ENTRY
public static String METADATA_BASE_PATH
public static final String LANGUAGES
public static String METADATA_PAGE_PATH
public static String METADATA_CONTENT_PATH
public static String SITEMAP_NAME
public static String ROBOTS_NAME
public List<String> getRobotsIndexOptions()
getRobotsIndexOptions in interface SEOServicepublic List<String> getRobotsFollowOptions()
getRobotsFollowOptions in interface SEOServicepublic List<String> getFrequencyOptions()
getFrequencyOptions in interface SEOServicepublic void storeMetadata(PageMetadataModel metaModel, String portalName, boolean onContent, String language) throws Exception
storeMetadata in interface SEOServicemetaModel - Metadata of the page/content.portalName - Name of the site that contains the given page/content.onContent - Indicates whether the current page is content or portal.Exception - The exceptionpublic String getState(String path, String language, boolean onContent) throws Exception
SEOServicegetState in interface SEOServicepath - Path of the page.language - Language of the page.onContent - Indicates whether the given page is content or portal.Exception - The exceptionpublic PageMetadataModel getMetadata(ArrayList<String> params, String pageReference, String language) throws Exception
SEOServicegetMetadata in interface SEOServiceparams - The parameters list of a content page.pageReference - Reference of the page.language - Language of the page.Exception - The exceptionpublic PageMetadataModel getContentMetadata(ArrayList<String> params, String language) throws Exception
getContentMetadata in interface SEOServiceparams - The parameters list of a content page.language - Language of the page.Exception - The exceptionpublic PageMetadataModel getPageMetadata(String pageUri, String language) throws Exception
getPageMetadata in interface SEOServicepageUri - Reference of the page.language - Language of the page.Exception - The exceptionpublic List<Locale> getSEOLanguages(String portalName, String seoPath, boolean onContent) throws Exception
SEOServicegetSEOLanguages in interface SEOServiceportalName - Name of the site that contains the given page.seoPath - Path of the page.onContent - Indicates whether the given page is content or portal.Exception - The exceptionpublic void removePageMetadata(PageMetadataModel metaModel, String portalName, boolean onContent, String language) throws Exception
removePageMetadata in interface SEOServicemetaModel - Metadata of the given page.portalName - Name of the site that contains the given page.onContent - Indicates whether the current page is content or portal.language - Language of the given page.Exception - The exceptionpublic void updateSiteMap(String uri, float priority, String frequency, boolean visibleSitemap, String portalName) throws Exception
uri - The uri of pagepriority - The priority of pagefrequency - The frequency of pagevisibleSitemap - visibleSitemap = true page is visible on sitemap visibleSitemap =
false page is invisible on sitemapportalName - The portal nameExceptionpublic void updateRobots(javax.jcr.Node dummyNode,
String portalName)
throws Exception
Exceptionpublic String getSitemap(String portalName) throws Exception
getSitemap in interface SEOServiceportalName - Name of the given site.Exception - The exceptionpublic String getRobots(String portalName) throws Exception
getRobots in interface SEOServiceportalName - Name of the given site.Exception - The exceptionpublic String getHash(String uri) throws Exception
getHash in interface SEOServiceuri - The uri of pageExceptionpublic javax.jcr.Node getContentNode(String seoPath) throws Exception
SEOServicegetContentNode in interface SEOServiceseoPath - The given path.Exception - The exceptionpublic boolean isCached()
public int getCachedEntries()
public void setCached(boolean isCached)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.