com.atlassian.jira.issue.search
Interface SearchRequestAdminManager

All Known Implementing Classes:
DefaultSearchRequestAdminManager

public interface SearchRequestAdminManager

SearchRequestAdminManager is for the admin section only.


Method Summary
 void delete(Long searchRequestId)
          Delete a SearchRequest.
 SearchRequest getSearchRequestById(Long id)
          Return the search request as stored in the database.
 EnclosedIterable<SearchRequest> getSearchRequests(com.atlassian.crowd.embedded.api.Group group)
          Gets all SearchRequests that are explicitly shared with a group.
 EnclosedIterable<SearchRequest> getSearchRequests(Project project)
          Get all SearchRequests associate with a given project.
 SearchRequest update(SearchRequest request)
          Update a SearchRequest.
 

Method Detail

getSearchRequestById

SearchRequest getSearchRequestById(Long id)
Return the search request as stored in the database. NOTE: This method does not perform permission checks to see if the current user has permission to see the requested search request. This method should not be used unless you know you have to, instead you should use #getSearchRequestById(com.opensymphony.user.User, Long).

Parameters:
id - The id of the filter
Returns:
The SearchRequest, or null if the request id does not exist

getSearchRequests

EnclosedIterable<SearchRequest> getSearchRequests(Project project)
Get all SearchRequests associate with a given project.

Note: Permissions are NOT set for these objects.

Parameters:
project - Project that is associate with the filters
Returns:
Collection of SearchRequest that have their project set to the given project

getSearchRequests

EnclosedIterable<SearchRequest> getSearchRequests(com.atlassian.crowd.embedded.api.Group group)
Gets all SearchRequests that are explicitly shared with a group.

Note: Permissions are NOT set for these objects.

Parameters:
group - The group associated with the SearchRequests
Returns:
The SearchRequest objects that are shared with the given group

update

SearchRequest update(SearchRequest request)
Update a SearchRequest. Useful for upgrading.


delete

void delete(Long searchRequestId)
Delete a SearchRequest.



Copyright © 2002-2011 Atlassian. All Rights Reserved.