public interface SEOService
Modifier and Type | Method and Description |
---|---|
org.exoplatform.services.seo.PageMetadataModel |
getContentMetadata(ArrayList<String> params,
String language)
Gets metadata of a content page.
|
javax.jcr.Node |
getContentNode(String contentPath)
Gets the content node by a given path.
|
List<String> |
getFrequencyOptions()
Gets a list of options for frequency.
|
String |
getHash(String uri)
Creates a hash key from the page reference or the UUID of the node.
|
org.exoplatform.services.seo.PageMetadataModel |
getMetadata(ArrayList<String> params,
String pageReference,
String language)
Gets metadata of a portal or content page.
|
org.exoplatform.services.seo.PageMetadataModel |
getPageMetadata(String pageReference,
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.
|
void |
removePageMetadata(org.exoplatform.services.seo.PageMetadataModel metaModel,
String portalName,
boolean onContent,
String language)
Removes metadata from a given page.
|
void |
storeMetadata(org.exoplatform.services.seo.PageMetadataModel metaModel,
String portalName,
boolean onContent,
String language)
Stores metadata of a given page/content.
|
void storeMetadata(org.exoplatform.services.seo.PageMetadataModel metaModel, String portalName, boolean onContent, String language) throws Exception
metaModel
- 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 exceptionorg.exoplatform.services.seo.PageMetadataModel getMetadata(ArrayList<String> params, String pageReference, String language) throws Exception
params
- The parameters list of a content page.pageReference
- Reference of the page.language
- Language of the page.Exception
- The exceptionorg.exoplatform.services.seo.PageMetadataModel getPageMetadata(String pageReference, String language) throws Exception
pageReference
- Reference of the page.language
- Language of the page.Exception
- The exceptionorg.exoplatform.services.seo.PageMetadataModel getContentMetadata(ArrayList<String> params, String language) throws Exception
params
- The parameters list of a content page.language
- Language of the page.Exception
- The exceptionvoid removePageMetadata(org.exoplatform.services.seo.PageMetadataModel metaModel, String portalName, boolean onContent, String language) throws Exception
metaModel
- 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 exceptionjavax.jcr.Node getContentNode(String contentPath) throws Exception
contentPath
- The given path.Exception
- The exceptionString getHash(String uri) throws Exception
uri
- The page reference of the node.Exception
- The exceptionString getSitemap(String portalName) throws Exception
portalName
- Name of the given site.Exception
- The exceptionString getRobots(String portalName) throws Exception
portalName
- Name of the given site.Exception
- The exceptionList<String> getRobotsIndexOptions() throws Exception
Exception
- The exceptionList<String> getRobotsFollowOptions() throws Exception
Exception
- The exceptionList<String> getFrequencyOptions() throws Exception
Exception
- The exceptionString getState(String path, String language, boolean onContent) throws Exception
path
- Path of the page.language
- Language of the page.onContent
- Indicates whether the given page is content or portal.Exception
- The exceptionList<Locale> getSEOLanguages(String portalName, String seoPath, boolean onContent) throws Exception
portalName
- 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 exceptionCopyright © 2003-2017 eXo Platform SAS. All Rights Reserved.