Package de.hybris.platform.catalog
Interface KeywordService
- All Known Implementing Classes:
DefaultKeywordService
public interface KeywordService
Provides access to Keyword.
A keyword can be used to allow convenient searches on catalog elements. Keywords are bound to the catalog elements
CategoryModel and ProductModel.
- Spring Bean ID:
- keywordService
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyword(CatalogVersionModel catalogVersion, String keywordValue) Returns the Keyword for the specified keyword value andCatalogVersion.getKeyword(String typeCode, CatalogVersionModel catalogVersion, String keywordValue) Returns the Keyword for the specified keyword value andCatalogVersion.
-
Method Details
-
getKeyword
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
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.
-