java.lang.Object | |
↳ | com.atlassian.jira.issue.search.DefaultSearchRequestManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adjusts the favourite counts for a given entity.
| |||||||||||
Takes a SearchRequest, user, name of search request and description and persists the XML representation
of the SearchRequest object to the database along with the rest of the details
| |||||||||||
Removes the SearchRequest GenericValue from the database based on its id
| |||||||||||
Used to get
sharable entities from a search result. | |||||||||||
Used to get
sharable entities from a search result. | |||||||||||
Get all SearchRequests.
| |||||||||||
Get all
sharable entities this accessor can see for use in indexing. | |||||||||||
Retrieves a collection of SearchRequest objects that a user created.
| |||||||||||
Find a search request given the author and the request name.
| |||||||||||
Return the search request as stored in the database if the user has permission to see it.
| |||||||||||
Return the search request as stored in the database without any permission checks.
| |||||||||||
Used to get
sharable entities from a search result filtered
to only those that are shared with the searcher. | |||||||||||
This is called to get
SharedEntity by id If the user is allows to see it | |||||||||||
This will call back to ask for a
SharedEntity based on id. | |||||||||||
Returns the type that this object can work with.
| |||||||||||
Search for the SearchRequests that match the passed searchParameters.
| |||||||||||
Updates an existing search request in the database.
| |||||||||||
Iterates over all SearchRequests using a Visitor pattern callback.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Adjusts the favourite counts for a given entity. This resulting value must always be greater or equal to one.
entity | the entity to adjust |
---|---|
adjustmentValue | the value to adjust by. |
Takes a SearchRequest, user, name of search request and description and persists the XML representation of the SearchRequest object to the database along with the rest of the details
request | SearchResult that should be persisted |
---|
Removes the SearchRequest GenericValue from the database based on its id
id | of the search request to be removed from storage |
---|
Used to get sharable entities
from a search result.
The entities returned may be modified by the user parameter (e.g. permissions or clause sanitisation).
user | the user performing the search |
---|---|
descriptor | retrieval descriptor |
EnclosedIterable
of SharedEntity
's
Used to get sharable entities
from a search result.
descriptor | retrieval descriptor |
---|
EnclosedIterable
of SharedEntity
's
Get all SearchRequests.
WARNING: This method will run horribly slow on systems with a lot of saved filters.
EnclosedIterable
of SearchRequestsGet all sharable entities
this accessor can see for use in indexing.
EnclosedIterable
of SharedEntity
's
Retrieves a collection of SearchRequest objects that a user created.
user | The user who created the SearchRequests |
---|
SearchRequest
that user created.
Find a search request given the author and the request name.
author | The author of the SearchRequest |
---|---|
name | The name of the SearchRequest |
Return the search request as stored in the database if the user has permission to see it.
user | The user to check shares with |
---|---|
id | The id of the filter |
Return the search request as stored in the database without any permission checks.
id | The id of the filter |
---|
Used to get sharable entities
from a search result filtered
to only those that are shared with the searcher.
The entities returned may be modified by the user parameter (e.g. permissions or clause sanitisation).
user | the user performing the search |
---|---|
descriptor | retrieval descriptor |
EnclosedIterable
of SharedEntity
's
This is called to get SharedEntity
by id If the user is allows to see it
user | the user in play |
---|---|
entityId | the id of the SharedEntity |
SharedEntity
if it exists and the user can see it and null otherwise
This will call back to ask for a SharedEntity
based on id.
entityId | the id of the SharedEntity |
---|
SharedEntity
or null if it cant be found
Returns the type that this object can work with.
Search for the SearchRequests that match the passed searchParameters. The result can be paged so that a subset of the results can be returned.
searchParameters | the searchParameters to query. |
---|---|
user | the user performing the search. |
pagePosition | the page to return. |
pageWidth | the number of results per page. |
Updates an existing search request in the database.
request | the request to persist |
---|
SearchRequest
that was persisted to the database
Iterates over all SearchRequests using a Visitor pattern callback.