public class BrandNavigationSuggestion extends AbstractNavigationSuggestion implements NavigationSuggestion
This class implements the NavigationSuggestion
interface to provide navigation suggestions
for the 'Brands' of the catalog entries from the catalog entry search index. It will return all of the Brands
scoped to the current catalog and store.
Below is an XML snippet of the information the webservice will return for this navigation suggestion handler. The information returned is:
Here is example web service response for a Brand navigation suggestion:
<_cat:CatalogNavigationView>
<_cat:BreadCrumbTrailView/>
<_wcf:UserData/>
<_cat:SuggestionView>
<_cat:Identifier>Brand</_cat:Identifier>
<_cat:Label>Brand</_cat:Label>
<_cat:Entry>
<_cat:Name>MapleWear</_cat:Name>
<_cat:Value>mfName_ntk_cs</_cat:Value>
<_cat:Image>MapleWear</_cat:Image>
<_cat:UserData>
<_wcf:UserDataField name="Count">418</_wcf:UserDataField>
</_cat:UserData>
</_cat:Entry>
<_cat:Entry>
<_cat:Name>Sharpson</_cat:Name>
<_cat:Value>mfName_ntk_cs</_cat:Value>
<_cat:Image>Sharpson</_cat:Image>
<_cat:UserData>
<_wcf:UserDataField name="Count">20</_wcf:UserDataField>
</_cat:UserData>
</_cat:Entry>
</_cat:SuggestionView>
</_cat:CatalogNavigationView>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
BrandNavigationSuggestion() |
Modifier and Type | Method and Description |
---|---|
void |
populateSuggestion(java.lang.String profile,
com.ibm.commerce.catalog.facade.datatypes.SuggestionViewType suggestionView)
This method will populate the Brand navigation suggestion for use in the storefront.
|
getProperties, setProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperties, setProperties
public static final java.lang.String COPYRIGHT
public void populateSuggestion(java.lang.String profile, com.ibm.commerce.catalog.facade.datatypes.SuggestionViewType suggestionView)
This method will populate the Brand navigation suggestion for use in the storefront.
populateSuggestion
in interface NavigationSuggestion
populateSuggestion
in class AbstractNavigationSuggestion
profile
- The search profile name.suggestionView
- An instantiated SuggestionViewType
object. If this navigation suggestion handler was
configured with a name, the identifier will be pre-populated in the SuggestionViewType
object.BrandNavigationSuggestion
,
NavigationSuggestion.populateSuggestion(String, SuggestionViewType)
,
AbstractNavigationSuggestion.populateSuggestion(String, SuggestionViewType)