com.atlassian.greenhopper.service.rapid
Class SavedFilterServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.rapid.SavedFilterServiceImpl
- All Implemented Interfaces:
- SavedFilterService
@Service
public class SavedFilterServiceImpl
- extends java.lang.Object
- implements SavedFilterService
Method Summary |
boolean |
canUserSeeAnySavedFilters(com.atlassian.crowd.embedded.api.User user)
|
ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> |
createSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.String boardName,
com.atlassian.query.Query query,
com.atlassian.jira.sharing.SharedEntity.SharePermissions permissions)
Validate and create a new saved filter |
ServiceOutcome<java.lang.Void> |
deleteSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
|
ServiceOutcome<java.util.List<com.atlassian.jira.issue.search.SearchRequest>> |
findSavedFilters(com.atlassian.crowd.embedded.api.User user,
java.lang.String query)
|
ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> |
getSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
|
ServiceOutcome<java.util.List<com.atlassian.jira.issue.search.SearchRequest>> |
getSavedFiltersForUser(com.atlassian.crowd.embedded.api.User user)
Get all saved filters for a given user. |
ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> |
setOrderByRank(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.search.SearchRequest savedFilter)
Updates the saved filter to be ordered by the rank field. |
com.atlassian.jira.issue.search.SearchRequest |
updateSavedFilter(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errors,
com.atlassian.jira.issue.search.SearchRequest savedFilter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SavedFilterServiceImpl
public SavedFilterServiceImpl()
getSavedFiltersForUser
@NotNull
public ServiceOutcome<java.util.List<com.atlassian.jira.issue.search.SearchRequest>> getSavedFiltersForUser(com.atlassian.crowd.embedded.api.User user)
- Description copied from interface:
SavedFilterService
- Get all saved filters for a given user. The order will be "favorites", "owned", "others"
- Specified by:
getSavedFiltersForUser
in interface SavedFilterService
- Parameters:
user
- the user
- Returns:
- the outcome
findSavedFilters
public ServiceOutcome<java.util.List<com.atlassian.jira.issue.search.SearchRequest>> findSavedFilters(com.atlassian.crowd.embedded.api.User user,
java.lang.String query)
- Specified by:
findSavedFilters
in interface SavedFilterService
getSavedFilter
@NotNull
public ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> getSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
- Specified by:
getSavedFilter
in interface SavedFilterService
- Returns:
- the saved filter for the given user and ID, or null if it doesn't exist or the user is not allowed to see it
createSavedFilter
public ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> createSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.String boardName,
com.atlassian.query.Query query,
com.atlassian.jira.sharing.SharedEntity.SharePermissions permissions)
- Description copied from interface:
SavedFilterService
- Validate and create a new saved filter
- Specified by:
createSavedFilter
in interface SavedFilterService
- Parameters:
user
- the user that creates the filterboardName
- The name of the board the filter is being created for. This filter name will be derived from thisquery
- The JQL query to back the filterpermissions
- the permission required for the filter
- Returns:
- the newly created saved filter - now with ID. Errors will be contained in Outcome if something went wrong.
deleteSavedFilter
public ServiceOutcome<java.lang.Void> deleteSavedFilter(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
- Specified by:
deleteSavedFilter
in interface SavedFilterService
updateSavedFilter
public com.atlassian.jira.issue.search.SearchRequest updateSavedFilter(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errors,
com.atlassian.jira.issue.search.SearchRequest savedFilter)
- Specified by:
updateSavedFilter
in interface SavedFilterService
- Returns:
- the updated filter
setOrderByRank
public ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> setOrderByRank(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.search.SearchRequest savedFilter)
- Description copied from interface:
SavedFilterService
- Updates the saved filter to be ordered by the rank field. All existing order by clauses will be removed.
- Specified by:
setOrderByRank
in interface SavedFilterService
canUserSeeAnySavedFilters
public boolean canUserSeeAnySavedFilters(com.atlassian.crowd.embedded.api.User user)
- Specified by:
canUserSeeAnySavedFilters
in interface SavedFilterService
- Parameters:
user
- : the user who can see the filters that we're looking for
- Returns:
- the number of filters that user can see
Copyright © 2007-2013 Atlassian. All Rights Reserved.