public class HibSmartFilterDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements SmartFilterDao
Constructor and Description |
---|
HibSmartFilterDaoImpl() |
Modifier and Type | Method and Description |
---|---|
List<SmartFilter> |
getFavoriteSmartFiltersForUser(Integer userId) |
List<Integer> |
getFilterIdsFor(Integer scopeId,
List<Integer> refIds) |
List<Integer> |
getFilterIdsForOrg(Integer organizationId) |
List<SmartFilter> |
getPublicFilters(Project project) |
List<SmartFilter> |
getRecentlyViewedSmartFilters(User user,
Integer projectId) |
SmartFilter |
getSmartFilter(Integer smartFilterId) |
List<SmartFilter> |
getSmartFiltersForUserWithAuthor(User user,
Integer authorId)
Get all public filters available to the @user which are authored by @authorId.
|
List<SmartFilter> |
getSmartFiltersForUserWithAuthorAndProject(User user,
Integer projectId,
Integer authorId)
Get all public filters available to the @user in @projectId which are authored by @authorId.
|
Integer |
numSearch(org.apache.lucene.search.Query query) |
SmartFilter |
saveSmartFilter(SmartFilter smartFilter) |
SearchResults<ContourItem> |
search(org.apache.lucene.search.Query query,
PageInfo pageInfo,
org.apache.lucene.search.Sort sort) |
void |
setSearchDao(SearchDao searchDao) |
public SmartFilter getSmartFilter(Integer smartFilterId)
getSmartFilter
in interface SmartFilterDao
public SmartFilter saveSmartFilter(SmartFilter smartFilter)
saveSmartFilter
in interface SmartFilterDao
public List<SmartFilter> getSmartFiltersForUserWithAuthor(User user, Integer authorId)
getSmartFiltersForUserWithAuthor
in interface SmartFilterDao
user
- - the user requesting a list of filters. Generally, this should be the current user.authorId
- - the author of the filter(s) that the @user is requesting.public List<SmartFilter> getSmartFiltersForUserWithAuthorAndProject(User user, Integer projectId, Integer authorId)
getSmartFiltersForUserWithAuthorAndProject
in interface SmartFilterDao
user
- - the user requesting a list of filters. Generally, this should be the current user.projectId
- - the project the filter(s) are available in.
***
*** Note that this does not incorporate projects listed in the XML string.
***authorId
- - the author of the filter(s) that the @user is requesting.public List<SmartFilter> getFavoriteSmartFiltersForUser(Integer userId)
getFavoriteSmartFiltersForUser
in interface SmartFilterDao
public List<SmartFilter> getRecentlyViewedSmartFilters(User user, Integer projectId)
getRecentlyViewedSmartFilters
in interface SmartFilterDao
public List<SmartFilter> getPublicFilters(Project project)
getPublicFilters
in interface SmartFilterDao
public List<Integer> getFilterIdsFor(Integer scopeId, List<Integer> refIds)
getFilterIdsFor
in interface SmartFilterDao
public List<Integer> getFilterIdsForOrg(Integer organizationId)
getFilterIdsForOrg
in interface SmartFilterDao
public SearchResults<ContourItem> search(org.apache.lucene.search.Query query, PageInfo pageInfo, org.apache.lucene.search.Sort sort)
search
in interface SmartFilterDao
public Integer numSearch(org.apache.lucene.search.Query query)
numSearch
in interface SmartFilterDao
public void setSearchDao(SearchDao searchDao)
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.