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 FavoriteCategorycreateFavoriteCategory(java.lang.String label, UserModel user)Prepares a favourite category containervoiddeleteFavoriteCategory(FavoriteCategory favorite)Removes a favourite categoryjava.util.List<FavoriteCategory>getFavoriteCategories(UserModel user)Gets favorite categories for particular uservoidrenameQuery(FavoriteCategory favorite, java.lang.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
-
-
-
-
Method Detail
-
createFavoriteCategory
public FavoriteCategory createFavoriteCategory(java.lang.String label, UserModel user)
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
public void deleteFavoriteCategory(FavoriteCategory favorite)
Description copied from interface:FavoriteCategoryServiceRemoves a favourite category- Specified by:
deleteFavoriteCategoryin 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: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
public void renameQuery(FavoriteCategory favorite, java.lang.String label)
Description copied from interface:FavoriteCategoryServiceRenames a favourite category- Specified by:
renameQueryin interfaceFavoriteCategoryService- Parameters:
favorite- favourite to be renamedlabel- new name
-
-