com.atlassian.jira.issue.search
Class DefaultSearchRequestAdminManager

java.lang.Object
  extended by com.atlassian.jira.issue.search.DefaultSearchRequestAdminManager
All Implemented Interfaces:
SearchRequestAdminManager

public class DefaultSearchRequestAdminManager
extends Object
implements SearchRequestAdminManager


Constructor Summary
DefaultSearchRequestAdminManager(SearchRequestStore searchRequestStore, SearchRequestManager searchRequestManager, ShareManager shareManager)
           
 
Method Summary
 void delete(Long searchRequestId)
          Delete a SearchRequest.
 SearchRequest getSearchRequestById(Long id)
          Called from upgrade task 321.
 CloseableIterable getSearchRequests(Group group)
          Called from the admin section.
 CloseableIterable getSearchRequests(Project project)
          Called from the admin section.
 SearchRequest update(SearchRequest request)
          Update a SearchRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchRequestAdminManager

public DefaultSearchRequestAdminManager(SearchRequestStore searchRequestStore,
                                        SearchRequestManager searchRequestManager,
                                        ShareManager shareManager)
Method Detail

getSearchRequests

public CloseableIterable getSearchRequests(Project project)
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:
getSearchRequests in interface SearchRequestAdminManager
Parameters:
project - Project that is associate with the filters
Returns:
Collection of SearchRequest that have their project set to the given project

getSearchRequests

public CloseableIterable getSearchRequests(Group group)
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:
getSearchRequests in interface SearchRequestAdminManager
Parameters:
group - The group associated with the SearchRequests
Returns:
The SearchRequest objects that are shared with the given group

getSearchRequestById

public SearchRequest getSearchRequestById(Long id)
Called from upgrade task 321. Needs permissions.

Specified by:
getSearchRequestById in interface SearchRequestAdminManager
Parameters:
id - The id of the filter
Returns:
The SearchRequest, or null if the request id does not exist

update

public SearchRequest update(SearchRequest request)
Description copied from interface: SearchRequestAdminManager
Update a SearchRequest. Useful for upgrading.

Specified by:
update in interface SearchRequestAdminManager

delete

public void delete(Long searchRequestId)
Description copied from interface: SearchRequestAdminManager
Delete a SearchRequest.

Specified by:
delete in interface SearchRequestAdminManager


Copyright © 2002-2008 Atlassian. All Rights Reserved.