java.lang.Object | |
↳ | com.atlassian.jira.bc.filter.DefaultSearchRequestService |
Default implementation of SearchRequestService
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Persists a
SearchRequest to the database. | |||||||||||
Persists a
SearchRequest to the database. | |||||||||||
Delete all filters for a given user
| |||||||||||
Delete a given filter.
| |||||||||||
Retrieve all filters a user has favourited.
| |||||||||||
Retrieve a given filter by id.
| |||||||||||
Get filters owned by a given user that have been favourited by at least one other user
| |||||||||||
Get a user's non private filters.
| |||||||||||
Retrieve all filters a user owns/has created.
| |||||||||||
Search for the SearchRequests that match the passed searchParameters.
| |||||||||||
Persists a
SearchRequest to the database. | |||||||||||
Persists a
SearchRequest to the database. | |||||||||||
Persists a
SearchRequest to the database - only available to administrators. | |||||||||||
Persists changes to passed
SearchRequest 's search parameters and search sorts. | |||||||||||
Validates that the proposed owner can take over the ownership of the filter
| |||||||||||
Validates that a filter is in a correct state to be created.
| |||||||||||
Validates that a filter is in a correct state to be updated.
| |||||||||||
Validates that the filter can be deleted successfully.
| |||||||||||
This will validate that the input parameters are valid for a search that encompasses ANY share entity type.
| |||||||||||
Validate that the passed
SearchRequest 's search parameters and search sorts can be persisted. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Persists a SearchRequest
to the database.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to save |
isFavourite | saves the SearchRequest as a favourite (or not) |
Persists a SearchRequest
to the database.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to save |
Delete all filters for a given user
serviceCtx | JIRA Service context containing an error collection and user performing action |
---|---|
user | The user to remove all filters for |
Delete a given filter.
serviceCtx | JIRA Service context containing an error collection and user performing action. User must be owner of filter, else error is passed back through the error collection. |
---|---|
filterId | The id of the filter to delete. Id must not be null, else error is passed back through the error collection. |
Retrieve all filters a user has favourited. Permission checks are done to ensure the user can see the filter, as visibility may have been removed from underneath them.
user | The user who has favourite filters. Also to test visibility and with |
---|
SearchRequest
objects that represent filters the user has favourited.
Retrieve a given filter by id.
serviceCtx | JIRA Service context containing an error collection and user requesting (to run) the filter. The filter must exist and the user must be able to see filter else an error will result. |
---|---|
filterId | The id of the filter to retrieve. Id must not be null. |
Get filters owned by a given user that have been favourited by at least one other user
user | The author of the filters |
---|
Get a user's non private filters. I.e. filters that other users can possibly see.
user | The author of the filters |
---|
Retrieve all filters a user owns/has created.
user | The user who created the filters. |
---|
SearchRequest
objects that represent filters the user has created.
Search for the SearchRequests that match the passed searchParameters. The result can be paged so that a subset of the results can be returned.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
searchParameters | the searchParameters to query. |
pagePosition | the page to return. |
pageWidth | the number of results per page. |
Persists a SearchRequest
to the database.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to update |
Persists a SearchRequest
to the database.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to update |
isFavourite | saves the SearchRequest as a favourite (or not) |
Persists a SearchRequest
to the database - only available to administrators.
serviceCtx | Context containing the new owner, error collection and i18n bean |
---|---|
user | the user requesting the update, must have Permissions.ADMINISTER permissions |
request | the request to update |
Persists changes to passed SearchRequest
's search parameters and search sorts. Changes to the
SearchRequest's other fields (name, description, share permissions, ...) are not saved. Any errors will be
reported in the passed context.
This method does not check the validity of the SearchRequest's share permissions when saving. This is to
allow JIRA to save search parameter changes even when the SearchRequest's permissions are invalid.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to update. |
null
if an error
occurs. The passed service context will have details of any errors.
Validates that the proposed owner can take over the ownership of the filter
serviceCtx | containing proposed owner |
---|---|
request | the SearchRequest that you want to change ownership of |
Validates that a filter is in a correct state to be created.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the SearchRequest to validate |
Validates that a filter is in a correct state to be updated.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the SearchRequest to validate |
Validates that the filter can be deleted successfully.
serviceCtx | context of the calling user. |
---|---|
filterId | the filter to delete. |
This will validate that the input parameters are valid for a search that encompasses ANY share entity type.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
searchParameters | the SharedEntitySearchParameters to validate |
Validate that the passed SearchRequest
's search parameters and search sorts can be persisted. This method
does *not* check the validity of the name, description, share permissions or any other fields in the
SearchRequest. Any errors will be reported in the passed context.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
request | the request to validate. |
true
iff the passed request's parameters can be saved.