|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchRequestService
Service exposing Search Request Management and retrieval.
Method Summary | |
---|---|
SearchRequest |
createFilter(JiraServiceContext serviceCtx,
SearchRequest request)
Persists a SearchRequest to the database. |
SearchRequest |
createFilter(JiraServiceContext serviceCtx,
SearchRequest request,
boolean isFavourite)
Persists a SearchRequest to the database. |
void |
deleteAllFiltersForUser(JiraServiceContext serviceCtx,
User user)
Delete all filters for a given user |
void |
deleteFilter(JiraServiceContext serviceCtx,
Long filterId)
Delete a given filter. |
Collection |
getFavouriteFilters(User user)
Retrieve all filters a user has favourited. |
SearchRequest |
getFilter(JiraServiceContext serviceCtx,
Long filterId)
Retrieve a given filter by id. |
Collection |
getFiltersFavouritedByOthers(User user)
Get filters owned by a given user that have been favourited by at least one other user |
Collection |
getNonPrivateFilters(User user)
Get a user's non private filters. |
Collection |
getOwnedFilters(User user)
Retrieve all filters a user owns/has created. |
SharedEntitySearchResult |
search(JiraServiceContext serviceCtx,
SharedEntitySearchParameters searchParameters,
int pagePosition,
int pageWidth)
Search for the SearchRequests that match the passed searchParameters. |
SearchRequest |
updateFilter(JiraServiceContext serviceCtx,
SearchRequest request)
Persists a SearchRequest to the database. |
SearchRequest |
updateFilter(JiraServiceContext serviceCtx,
SearchRequest request,
boolean isFavourite)
Persists a SearchRequest to the database. |
void |
validateFilterForCreate(JiraServiceContext serviceCtx,
SearchRequest request)
Validates that a filter is in a correct state to be created. |
void |
validateFilterForUpdate(JiraServiceContext serviceCtx,
SearchRequest request)
Validates that a filter is in a correct state to be updated. |
void |
validateForDelete(JiraServiceContext serviceCtx,
Long filterId)
Validates that the filter can be deleted successfully. |
void |
validateForSearch(JiraServiceContext serviceCtx,
SharedEntitySearchParameters searchParameters)
This will validate that the input parameters are valid for a search that encompasses ANY share entity type. |
Method Detail |
---|
Collection getFavouriteFilters(User user)
user
- The user who has favourite filters. Also to test visibility and with
SearchRequest
objects that represent filters the user has favourited.Collection getOwnedFilters(User user)
user
- The user who created the filters.
SearchRequest
objects that represent filters the user has created.Collection getNonPrivateFilters(User user)
user
- The author of the filters
Collection getFiltersFavouritedByOthers(User user)
user
- The author of the filters
void deleteFilter(JiraServiceContext serviceCtx, Long filterId)
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.void deleteAllFiltersForUser(JiraServiceContext serviceCtx, User user)
serviceCtx
- JIRA Service context containing an error collection and user performing actionuser
- The user to remove all filters forSearchRequest getFilter(JiraServiceContext serviceCtx, Long filterId)
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.
void validateFilterForUpdate(JiraServiceContext serviceCtx, SearchRequest request)
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the SearchRequest to validatevoid validateFilterForCreate(JiraServiceContext serviceCtx, SearchRequest request)
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the SearchRequest to validatevoid validateForDelete(JiraServiceContext serviceCtx, Long filterId)
serviceCtx
- context of the calling user.filterId
- the filter to delete.SearchRequest createFilter(JiraServiceContext serviceCtx, SearchRequest request)
SearchRequest
to the database.
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the request to save
SearchRequest createFilter(JiraServiceContext serviceCtx, SearchRequest request, boolean isFavourite)
SearchRequest
to the database.
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the request to saveisFavourite
- saves the SearchRequest as a favourite (or not)
SearchRequest updateFilter(JiraServiceContext serviceCtx, SearchRequest request)
SearchRequest
to the database.
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the request to update
SearchRequest updateFilter(JiraServiceContext serviceCtx, SearchRequest request, boolean isFavourite)
SearchRequest
to the database.
serviceCtx
- Context containing user, error collection and i18n beanrequest
- the request to updateisFavourite
- saves the SearchRequest as a favourite (or not)
void validateForSearch(JiraServiceContext serviceCtx, SharedEntitySearchParameters searchParameters)
serviceCtx
- Context containing user, error collection and i18n beansearchParameters
- the SharedEntitySearchParameters to validateSharedEntitySearchResult search(JiraServiceContext serviceCtx, SharedEntitySearchParameters searchParameters, int pagePosition, int pageWidth)
serviceCtx
- Context containing user, error collection and i18n beansearchParameters
- the searchParameters to query.pagePosition
- the page to return.pageWidth
- the number of results per page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |