Package com.atlassian.jira.issue.search
Class DefaultSearchRequestAdminManager
java.lang.Object
com.atlassian.jira.issue.search.DefaultSearchRequestAdminManager
- All Implemented Interfaces:
SearchRequestAdminManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSearchRequestAdminManager(SearchRequestStore searchRequestStore, SearchRequestManager searchRequestManager, ShareManager shareManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a SearchRequest.Called from upgrade task 321.getSearchRequests(com.atlassian.crowd.embedded.api.Group group) Called from the admin section.getSearchRequests(Project project) Called from the admin section.update(SearchRequest request) Update a SearchRequest.
-
Constructor Details
-
Method Details
-
getSearchRequests
Called from the admin section. Should not perform a Search (which would seem to make sense otherwise) as we may not be indexed yet. Does not need permissions.- Specified by:
getSearchRequestsin interfaceSearchRequestAdminManager- Parameters:
project- Project that is associate with the filters- Returns:
- Collection of
SearchRequestthat have their project set to the given project
-
getSearchRequests
Called from the admin section. Should not perform a Search (which would seem to make sense otherwise) as we may not be indexed yet. Does not need permissions.- Specified by:
getSearchRequestsin interfaceSearchRequestAdminManager- Parameters:
group- The group associated with the SearchRequests- Returns:
- The
SearchRequestobjects that are shared with the given group
-
getSearchRequestById
Called from upgrade task 321. Needs permissions.- Specified by:
getSearchRequestByIdin interfaceSearchRequestAdminManager- Parameters:
id- The id of the filter- Returns:
- The SearchRequest, or null if the request id does not exist
-
update
Description copied from interface:SearchRequestAdminManagerUpdate a SearchRequest. Useful for upgrading.- Specified by:
updatein interfaceSearchRequestAdminManager
-
delete
Description copied from interface:SearchRequestAdminManagerDelete a SearchRequest.- Specified by:
deletein interfaceSearchRequestAdminManager
-