public class HibUserItemViewHistoryDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements UserItemViewHistoryDao
Constructor and Description |
---|
HibUserItemViewHistoryDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteUserItemViewHistory(UserItemViewHistory userItemViewHistory) |
List<Integer> |
getAllViewHistoryForUsers(List<Integer> userIds) |
List<Integer> |
getMostRecentlyViewedContourItemIds(Integer userId,
int amount) |
List<Integer> |
getMostRecentlyViewedContourItemIds(Integer userId,
int amount,
List<Integer> itemTypeIds) |
List<Project> |
getMostRecentlyViewedProjects(Integer userId,
int start,
int amount) |
Integer |
getMostRecentlyViewedProjectsCount(Integer userId) |
UserItemViewHistory |
getViewHistoryFor(Integer userId,
Integer scope,
Integer refId) |
List<Integer> |
getViewHistoryFor(Integer scope,
List<Integer> refIds) |
void |
saveViewHistory(UserItemViewHistory userItemViewHistory) |
public List<Integer> getAllViewHistoryForUsers(List<Integer> userIds)
getAllViewHistoryForUsers
in interface UserItemViewHistoryDao
public UserItemViewHistory getViewHistoryFor(Integer userId, Integer scope, Integer refId)
getViewHistoryFor
in interface UserItemViewHistoryDao
public List<Integer> getViewHistoryFor(Integer scope, List<Integer> refIds)
getViewHistoryFor
in interface UserItemViewHistoryDao
public void saveViewHistory(UserItemViewHistory userItemViewHistory)
saveViewHistory
in interface UserItemViewHistoryDao
public void deleteUserItemViewHistory(UserItemViewHistory userItemViewHistory)
deleteUserItemViewHistory
in interface UserItemViewHistoryDao
public List<Integer> getMostRecentlyViewedContourItemIds(Integer userId, int amount)
getMostRecentlyViewedContourItemIds
in interface UserItemViewHistoryDao
public List<Integer> getMostRecentlyViewedContourItemIds(Integer userId, int amount, List<Integer> itemTypeIds)
getMostRecentlyViewedContourItemIds
in interface UserItemViewHistoryDao
public List<Project> getMostRecentlyViewedProjects(Integer userId, int start, int amount)
getMostRecentlyViewedProjects
in interface UserItemViewHistoryDao
public Integer getMostRecentlyViewedProjectsCount(Integer userId)
getMostRecentlyViewedProjectsCount
in interface UserItemViewHistoryDao
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.