nl.gx.webmanager.services.seo.cnfg
Interface SEOConfig

All Known Implementing Classes:
SEOConfigImpl

public interface SEOConfig

Defines an API to retrieve different configuration settings needed in the SEO bundle. Provides also the definition of two enum(s) SEOConfig.FriendlyURLSeparator and .

Author:
Hallo Khaznadar

Nested Class Summary
static class SEOConfig.FriendlyURLSeparator
          Defines the only three possible values of the friendly url separator.
static class SEOConfig.PageTitleSetting
          Defines the only three possible values of the Page title settings.
 
Method Summary
 int getFriendlyUrlCacheClear(java.lang.String host)
          Retrieves the value of the friendly_url_cache_clear for the given host name.
 java.lang.String getFriendlyUrlContextPrefix()
          Returns the configuration setting under startup_settings.context.
 java.lang.String getFriendlyUrlExtension(java.lang.String host)
          Returns the configuration setting under website_settings.friendly_url_extension.
 java.lang.String getFriendlyUrlPrefix(java.lang.String host)
          Returns the configuration setting under website_settings.friendly_url_prefix.
 SEOConfig.FriendlyURLSeparator getFriendlyURLSeparator(java.lang.String host)
          Retrieves the SEOConfig.FriendlyURLSeparator of the given host.
 boolean getGoogleNewsId(java.lang.String host)
          Returns true if the google_news_id for the current web initiative is checked.
 SEOConfig.PageTitleSetting getPageTitleSetting(java.lang.String host)
          Retrieves the SEOConfig.PageTitleSetting of the given host.
 

Method Detail

getFriendlyURLSeparator

SEOConfig.FriendlyURLSeparator getFriendlyURLSeparator(java.lang.String host)
                                                       throws FriendlyURLException
Retrieves the SEOConfig.FriendlyURLSeparator of the given host.

Parameters:
host - Host for which to get the URL separator.
Returns:
FRIENDLY_URL_SEPARATOR The friendly URL separator.
Throws:
FriendlyURLException - If any database access fails.

getPageTitleSetting

SEOConfig.PageTitleSetting getPageTitleSetting(java.lang.String host)
                                               throws FriendlyURLException
Retrieves the SEOConfig.PageTitleSetting of the given host.

Parameters:
host - Host for which to get the page title setting.
Returns:
PAGE_TITLE_SETTINGS The page title setting.
Throws:
FriendlyURLException - If any database access fails.

getFriendlyUrlExtension

java.lang.String getFriendlyUrlExtension(java.lang.String host)
Returns the configuration setting under website_settings.friendly_url_extension.

Parameters:
host - String holding the host name.
Returns:
The configured friendly URL extension.

getFriendlyUrlCacheClear

int getFriendlyUrlCacheClear(java.lang.String host)
Retrieves the value of the friendly_url_cache_clear for the given host name.

Parameters:
host - String holding the host name.
Returns:
int with the value of the friendly_url_cache_clear.

getFriendlyUrlContextPrefix

java.lang.String getFriendlyUrlContextPrefix()
Returns the configuration setting under startup_settings.context.

Returns:
The configured friendly URL context prefix.

getFriendlyUrlPrefix

java.lang.String getFriendlyUrlPrefix(java.lang.String host)
Returns the configuration setting under website_settings.friendly_url_prefix.

Parameters:
host - Host for which to get the friendly URL prefix.
Returns:
The configured friendly URL prefix.

getGoogleNewsId

boolean getGoogleNewsId(java.lang.String host)
Returns true if the google_news_id for the current web initiative is checked.

Parameters:
host - the host name.
Returns:
true if the google_news_id for the current web initiative is checked, false otherwise.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.