Package de.hybris.platform.catalog
Interface KeywordService
-
- All Known Implementing Classes:
DefaultKeywordService
public interface KeywordServiceProvides access to Keyword.A keyword can be used to allow convenient searches on catalog elements. Keywords are bound to the catalog elements
CategoryModelandProductModel.- Spring Bean ID:
- keywordService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeywordModelgetKeyword(CatalogVersionModel catalogVersion, java.lang.String keywordValue)Returns the Keyword for the specified keyword value andCatalogVersion.KeywordModelgetKeyword(java.lang.String typeCode, CatalogVersionModel catalogVersion, java.lang.String keywordValue)Returns the Keyword for the specified keyword value andCatalogVersion.
-
-
-
Method Detail
-
getKeyword
KeywordModel getKeyword(CatalogVersionModel catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion.- Parameters:
catalogVersion- TheCatalogVersiontheKeywordbelongs to.keywordValue- The value of the searchedKeyword.- Returns:
- The matching
Keyword. - Throws:
UnknownIdentifierException- when keyword not found.AmbiguousIdentifierException- when more then one found.
-
getKeyword
KeywordModel getKeyword(java.lang.String typeCode, CatalogVersionModel catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion.- Parameters:
typeCode- The code of type (or subtype) of keyword to allow to search for subclassescatalogVersion- TheCatalogVersiontheKeywordbelongs to.keywordValue- The value of the searchedKeyword.- Returns:
- The matching
Keyword. - Throws:
UnknownIdentifierException- when keyword not found.AmbiguousIdentifierException- when more then one found.
-
-