|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.alcs.domain.catalogview.impl.MultiStoreSeoUrlBuilderImpl
public class MultiStoreSeoUrlBuilderImpl
Multi store SEO URL builder. Defines the URL depending on the specified store. As part of the initialization setStore(Store) must be called.
| Constructor Summary | |
|---|---|
MultiStoreSeoUrlBuilderImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
categorySeoUrl(Category category,
java.util.Locale locale,
int pageNumber)
Returns the seo url for the specified category, e.g. |
java.lang.String |
filterSeoUrl(java.util.Locale locale,
java.util.List<Filter<?>> filters,
SortBy sortType,
SortOrder sortOrder,
int pageNumber)
Create an seo url that will use the specified locale and sorter objects during the URL construction and add all the specified filters (in the order provided). |
java.lang.String |
productSeoUrl(Product product,
java.util.Locale locale)
Returns the seo url of the given locale in the product's default category. |
java.lang.String |
productSeoUrl(Product product,
java.util.Locale locale,
Category category)
Returns the seo url of the given locale following the given category. |
void |
setSeoUrlBuilderDelegate(SeoUrlBuilder seoUrlBuilder)
Sets the SEO URL builder delegate. |
void |
setStore(Store store)
Sets the store. |
java.lang.String |
sitemapSeoUrl(Category category,
Brand brand,
java.util.Locale locale,
int pageNumber)
Returns the localized seo url for this sitemap result corresponding to the desired page number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiStoreSeoUrlBuilderImpl()
| Method Detail |
|---|
public void setSeoUrlBuilderDelegate(SeoUrlBuilder seoUrlBuilder)
seoUrlBuilder - the builder implementation
public java.lang.String categorySeoUrl(Category category,
java.util.Locale locale,
int pageNumber)
categorySeoUrl in interface SeoUrlBuildercategory - the category to get the url for.locale - the locale the url fragments should be in.pageNumber - the page number
public java.lang.String filterSeoUrl(java.util.Locale locale,
java.util.List<Filter<?>> filters,
SortBy sortType,
SortOrder sortOrder,
int pageNumber)
filterSeoUrl in interface SeoUrlBuilderlocale - the locale the url fragments should be in.filters - the filters to build seo url for.sortType - the type of sorting to performsortOrder - the order of the sortingpageNumber - the page number to include in the url. This is ignored if it is less than
zero.
public java.lang.String productSeoUrl(Product product,
java.util.Locale locale)
productSeoUrl in interface SeoUrlBuilderproduct - the product to build the url for.locale - the locale the url should be readable in
public java.lang.String productSeoUrl(Product product,
java.util.Locale locale,
Category category)
null, the default category of the product will be used
instead.
productSeoUrl in interface SeoUrlBuilderproduct - the product to build the url for.locale - the locale the url should be readable incategory - the category to reach the product, give null to use the default category.
public void setStore(Store store)
setStore in interface SeoUrlBuilderstore - the store instance
public java.lang.String sitemapSeoUrl(Category category,
Brand brand,
java.util.Locale locale,
int pageNumber)
sitemapSeoUrl in interface SeoUrlBuildercategory - the category this sitemap url is for.brand - the brand this sitemap url is for.locale - the locale the sitemap url fragments should be in.pageNumber - the page number of the url.
String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||