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,
FilterPermissionBeanFactory filterPermissionBeanFactory,
ResponseFactory responseFactory,
SharePermissionFactory sharePermissionFactory,
FilterPermissionHelper filterPermissionHelper,
MauEventService mauEventService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addSharePermission(SharePermissionInputBean sharePermissionInputBean,
Long id)
Adds a share permissions to the given filter.
|
javax.ws.rs.core.Response |
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.
|
javax.ws.rs.core.Response |
deleteSharePermission(Long id,
Long permissionId)
Removes a share permissions from the given filter.
|
javax.ws.rs.core.Response |
editFilter(Long filterId,
FilterBean bean,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Updates an existing filter, and returns its new value.
|
javax.ws.rs.core.Response |
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.
|
javax.ws.rs.core.Response |
getFilter(Long id,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Returns a filter given an id
|
javax.ws.rs.core.Response |
getSharePermission(Long id,
Long permissionId)
Returns a single share permission of the given filter.
|
javax.ws.rs.core.Response |
getSharePermissions(Long id)
Returns all share permissions of the given filter.
|
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.
|
javax.ws.rs.core.Response |
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, FilterPermissionBeanFactory filterPermissionBeanFactory, ResponseFactory responseFactory, SharePermissionFactory sharePermissionFactory, FilterPermissionHelper filterPermissionHelper, MauEventService mauEventService)
public javax.ws.rs.core.Response 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 expandFilterBean
public javax.ws.rs.core.Response 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 expandFilterBean
public javax.ws.rs.core.Response 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 expandFilterBean
public 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 expandFilterBean
public javax.ws.rs.core.Response getDefaultShareScope()
DefaultShareScopeBean
public javax.ws.rs.core.Response setDefaultShareScope(DefaultShareScopeBean shareScope)
DefaultShareScopeBean
public 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 filterpublic javax.ws.rs.core.Response getSharePermissions(Long id)
public javax.ws.rs.core.Response getSharePermission(Long id, Long permissionId)
public javax.ws.rs.core.Response addSharePermission(SharePermissionInputBean sharePermissionInputBean, Long id)
Copyright © 2002-2017 Atlassian. All Rights Reserved.