public interface

SearchRequestAdminManager

com.atlassian.jira.issue.search.SearchRequestAdminManager
Known Indirect Subclasses

Class Overview

SearchRequestAdminManager is for the admin section only.

Summary

Public Methods
void delete(Long searchRequestId)
Delete a SearchRequest.
SearchRequest getSearchRequestById(Long id)
Return the search request as stored in the database.
EnclosedIterable<SearchRequest> getSearchRequests(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.

Public Methods

public void delete (Long searchRequestId)

Delete a SearchRequest.

public 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.

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

public EnclosedIterable<SearchRequest> getSearchRequests (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

public 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

public SearchRequest update (SearchRequest request)

Update a SearchRequest. Useful for upgrading.