|
||||||||||
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.
Nested Class Summary | |
---|---|
static class |
FilterResource.DefaultShareScope
|
Constructor Summary | |
---|---|
FilterResource(JiraAuthenticationContext authenticationContext,
SearchRequestService searchRequestService,
VelocityRequestContextFactory velocityRequestContextFactory,
UserUtil userUtil,
FavouritesService favouritesService,
SearchService searchService,
BeanBuilderFactory beanBuilderFactory,
UserSharingPreferencesUtil userSharingPreferencesUtil,
PermissionManager permissionsManager,
UserPreferencesManager userPreferencesManager,
FilterSubscriptionService filterSubscriptionService)
|
Method Summary | |
---|---|
FilterBean |
createFilter(FilterBean bean,
javax.ws.rs.core.UriInfo uriInfo,
StringList expand)
Creates a new filter, and returns newly created filter Currently sets permissions just using the users default sharing permissions |
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. |
FilterResource.DefaultShareScope |
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 |
FilterResource.DefaultShareScope |
setDefaultShareScope(FilterResource.DefaultShareScope 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, UserUtil userUtil, FavouritesService favouritesService, SearchService searchService, BeanBuilderFactory beanBuilderFactory, UserSharingPreferencesUtil userSharingPreferencesUtil, PermissionManager permissionsManager, UserPreferencesManager userPreferencesManager, FilterSubscriptionService filterSubscriptionService)
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 FilterResource.DefaultShareScope getDefaultShareScope()
FilterResource.DefaultShareScope
public FilterResource.DefaultShareScope setDefaultShareScope(FilterResource.DefaultShareScope shareScope)
FilterResource.DefaultShareScope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |