public class FilterResource extends Object
| Constructor and Description |
|---|
FilterResource(JiraAuthenticationContext authenticationContext,
SearchRequestService searchRequestService,
VelocityRequestContextFactory velocityRequestContextFactory,
FavouritesService favouritesService,
SearchService searchService,
BeanBuilderFactory beanBuilderFactory,
UserSharingPreferencesUtil userSharingPreferencesUtil,
PermissionManager permissionsManager,
UserPreferencesManager userPreferencesManager,
ColumnLayoutManager columnLayoutManager,
ColumnService columnService) |
| Modifier and Type | Method and Description |
|---|---|
FilterBean |
createFilter(FilterBean bean,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Creates a new filter, and returns newly created filter.
|
javax.ws.rs.core.Response |
defaultColumns(Long filterId)
Returns the default columns for the given filter.
|
javax.ws.rs.core.Response |
deleteFilter(Long id)
Delete a filter.
|
FilterBean |
editFilter(Long filterId,
FilterBean bean,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Updates an existing filter, and returns its new value.
|
DefaultShareScopeBean |
getDefaultShareScope()
Returns the default share scope of the logged-in user.
|
List<FilterBean> |
getFavouriteFilters(javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Returns the favourite filters of the logged-in user.
|
FilterBean |
getFilter(Long id,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Returns a filter given an id
|
javax.ws.rs.core.Response |
resetColumns(Long filterId)
Resets the columns for the given filter such that the filter no longer has its own column config.
|
javax.ws.rs.core.Response |
setColumns(Long filterId,
List<String> fields)
Sets the default columns for the given filter.
|
DefaultShareScopeBean |
setDefaultShareScope(DefaultShareScopeBean shareScope)
Sets the default share scope of the logged-in user.
|
public FilterResource(JiraAuthenticationContext authenticationContext, SearchRequestService searchRequestService, VelocityRequestContextFactory velocityRequestContextFactory, FavouritesService favouritesService, SearchService searchService, BeanBuilderFactory beanBuilderFactory, UserSharingPreferencesUtil userSharingPreferencesUtil, PermissionManager permissionsManager, UserPreferencesManager userPreferencesManager, ColumnLayoutManager columnLayoutManager, ColumnService columnService)
public FilterBean getFilter(Long id, @Context javax.ws.rs.core.UriInfo uriInfo, StringList expand)
id - the id of the filter being looked upuriInfo - info needed to construct URLs.expand - the parameters to expandFilterBeanpublic FilterBean createFilter(FilterBean bean, @Context javax.ws.rs.core.UriInfo uriInfo, StringList expand)
bean - the filter being createduriInfo - info needed to construct URLs.expand - the parameters to expandFilterBeanpublic FilterBean editFilter(Long filterId, FilterBean bean, @Context javax.ws.rs.core.UriInfo uriInfo, StringList expand)
filterId - the id of the filter to updatebean - the filter being createduriInfo - info needed to construct URLs.expand - the parameters to expandFilterBeanpublic javax.ws.rs.core.Response deleteFilter(Long id)
id - The ID of the filter to delete.public List<FilterBean> getFavouriteFilters(@Context javax.ws.rs.core.UriInfo uriInfo, StringList expand)
uriInfo - info needed to construct URLs.expand - the parameters to expandFilterBeanpublic DefaultShareScopeBean getDefaultShareScope()
DefaultShareScopeBeanpublic DefaultShareScopeBean setDefaultShareScope(DefaultShareScopeBean shareScope)
DefaultShareScopeBeanpublic javax.ws.rs.core.Response defaultColumns(Long filterId)
filterId - id of the filterpublic javax.ws.rs.core.Response setColumns(Long filterId, List<String> fields)
filterId - id of the filterfields - list of column idspublic javax.ws.rs.core.Response resetColumns(Long filterId)
filterId - id of the filterCopyright © 2002-2015 Atlassian. All Rights Reserved.