public class HibUserFavoriteDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements UserFavoriteDao
Constructor and Description |
---|
HibUserFavoriteDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFavorite(Integer userId,
Integer scope,
Integer refId) |
List<Integer> |
getAllFavoritesForUsers(List<Integer> userIds) |
UserFavorite |
getFavorite(Integer userId,
Integer scope,
Integer refId) |
List<Integer> |
getFavoriteRefIdsForScope(Integer userId,
Integer... scopes) |
List<UserFavorite> |
getFavoritesFor(Integer scope,
Integer refId) |
List<Integer> |
getFavoritesForRefIds(Integer scopeId,
List<Integer> refIds) |
void |
removeFavorite(Integer userId,
Integer scope,
Integer refId) |
public void addFavorite(Integer userId, Integer scope, Integer refId)
addFavorite
in interface UserFavoriteDao
public List<Integer> getFavoriteRefIdsForScope(Integer userId, Integer... scopes)
getFavoriteRefIdsForScope
in interface UserFavoriteDao
public void removeFavorite(Integer userId, Integer scope, Integer refId)
removeFavorite
in interface UserFavoriteDao
public UserFavorite getFavorite(Integer userId, Integer scope, Integer refId)
getFavorite
in interface UserFavoriteDao
public List<Integer> getAllFavoritesForUsers(List<Integer> userIds)
getAllFavoritesForUsers
in interface UserFavoriteDao
public List<UserFavorite> getFavoritesFor(Integer scope, Integer refId)
getFavoritesFor
in interface UserFavoriteDao
public List<Integer> getFavoritesForRefIds(Integer scopeId, List<Integer> refIds)
getFavoritesForRefIds
in interface UserFavoriteDao
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.