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 Constructor Description FavoriteCategoryServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FavoriteCategory
createFavoriteCategory(java.lang.String label, UserModel user)
Prepares a favourite category containervoid
deleteFavoriteCategory(FavoriteCategory favorite)
Removes a favourite categoryjava.util.List<FavoriteCategory>
getFavoriteCategories(UserModel user)
Gets favorite categories for particular uservoid
renameQuery(FavoriteCategory favorite, java.lang.String label)
Renames a favourite categoryprotected CockpitFavoriteCategory
unmapCollection(FavoriteCategory favorite)
-
Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
-
-
-
Method Detail
-
createFavoriteCategory
public FavoriteCategory createFavoriteCategory(java.lang.String label, UserModel user)
Description copied from interface:FavoriteCategoryService
Prepares a favourite category container- Specified by:
createFavoriteCategory
in interfaceFavoriteCategoryService
- Parameters:
label
- label for favourite categoryuser
- user- Returns:
- favourite category container
-
deleteFavoriteCategory
public void deleteFavoriteCategory(FavoriteCategory favorite)
Description copied from interface:FavoriteCategoryService
Removes a favourite category- Specified by:
deleteFavoriteCategory
in interfaceFavoriteCategoryService
- Parameters:
favorite
- favourite to be removed
-
unmapCollection
protected CockpitFavoriteCategory unmapCollection(FavoriteCategory favorite)
-
getFavoriteCategories
public java.util.List<FavoriteCategory> getFavoriteCategories(UserModel user)
Description copied from interface:FavoriteCategoryService
Gets favorite categories for particular user- Specified by:
getFavoriteCategories
in interfaceFavoriteCategoryService
- Parameters:
user
- user which favourites are requested- Returns:
- list of categories marked as favourite for user
-
renameQuery
public void renameQuery(FavoriteCategory favorite, java.lang.String label)
Description copied from interface:FavoriteCategoryService
Renames a favourite category- Specified by:
renameQuery
in interfaceFavoriteCategoryService
- Parameters:
favorite
- favourite to be renamedlabel
- new name
-
-