|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.rest.v2.search.FilterResource
public class FilterResource
Resource for searches.
Constructor Summary | |
---|---|
FilterResource(JiraAuthenticationContext authenticationContext,
SearchRequestService searchRequestService,
VelocityRequestContextFactory velocityRequestContextFactory,
FavouritesService favouritesService,
SearchService searchService,
BeanBuilderFactory beanBuilderFactory,
UserSharingPreferencesUtil userSharingPreferencesUtil,
PermissionManager permissionsManager,
UserPreferencesManager userPreferencesManager,
ColumnLayoutManager columnLayoutManager,
ColumnService columnService)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterResource(JiraAuthenticationContext authenticationContext, SearchRequestService searchRequestService, VelocityRequestContextFactory velocityRequestContextFactory, FavouritesService favouritesService, SearchService searchService, BeanBuilderFactory beanBuilderFactory, UserSharingPreferencesUtil userSharingPreferencesUtil, PermissionManager permissionsManager, UserPreferencesManager userPreferencesManager, ColumnLayoutManager columnLayoutManager, ColumnService columnService)
Method Detail |
---|
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 expand
FilterBean
public 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 expand
FilterBean
public 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 expand
FilterBean
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 expand
FilterBean
public DefaultShareScopeBean getDefaultShareScope()
DefaultShareScopeBean
public DefaultShareScopeBean setDefaultShareScope(DefaultShareScopeBean shareScope)
DefaultShareScopeBean
public javax.ws.rs.core.Response defaultColumns(Long filterId)
filterId
- id of the filter
public javax.ws.rs.core.Response setColumns(Long filterId, List<String> fields)
filterId
- id of the filterfields
- list of column ids
public javax.ws.rs.core.Response resetColumns(Long filterId)
filterId
- id of the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |