Class FavoriteCategoryServiceImpl
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.productcockpit.services.catalog.impl.FavoriteCategoryServiceImpl
- All Implemented Interfaces:
FavoriteCategoryService
public class FavoriteCategoryServiceImpl
extends AbstractServiceImpl
implements FavoriteCategoryService
Provide CRUD operations for favorite categories
-
Field Summary
Fields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFavoriteCategory(String label, UserModel user) Prepares a favourite category containervoiddeleteFavoriteCategory(FavoriteCategory favorite) Removes a favourite categoryGets favorite categories for particular uservoidrenameQuery(FavoriteCategory favorite, String label) Renames a favourite categoryprotected CockpitFavoriteCategoryunmapCollection(FavoriteCategory favorite) Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Constructor Details
-
FavoriteCategoryServiceImpl
public FavoriteCategoryServiceImpl()
-
-
Method Details
-
createFavoriteCategory
Description copied from interface:FavoriteCategoryServicePrepares a favourite category container- Specified by:
createFavoriteCategoryin interfaceFavoriteCategoryService- Parameters:
label- label for favourite categoryuser- user- Returns:
- favourite category container
-
deleteFavoriteCategory
Description copied from interface:FavoriteCategoryServiceRemoves a favourite category- Specified by:
deleteFavoriteCategoryin interfaceFavoriteCategoryService- Parameters:
favorite- favourite to be removed
-
unmapCollection
-
getFavoriteCategories
Description copied from interface:FavoriteCategoryServiceGets favorite categories for particular user- Specified by:
getFavoriteCategoriesin interfaceFavoriteCategoryService- Parameters:
user- user which favourites are requested- Returns:
- list of categories marked as favourite for user
-
renameQuery
Description copied from interface:FavoriteCategoryServiceRenames a favourite category- Specified by:
renameQueryin interfaceFavoriteCategoryService- Parameters:
favorite- favourite to be renamedlabel- new name
-