public class RecentlyUpdatedContentResource extends Object
Constructor and Description |
---|
RecentlyUpdatedContentResource(RecentlyUpdatedContentService recentlyUpdatedContentService,
RecentlyUpdatedMacroTabProvider tabProvider,
LabelManager labelManager,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getDefault()
Get the default dashboard tab
|
javax.ws.rs.core.Response |
getUpdates(String tabKey,
int maxResults,
String showProfilePic,
String labelsFilter,
String spacesFilter,
String usersFilter,
String typesFilter,
String category,
String spaceKey)
Query a list of recent updates matching the given parameters.
|
javax.ws.rs.core.Response |
getUpdatesPost(RecentlyUpdatedContentResourceRequestDto req)
We support POST in case the query string is too long for GET.
|
javax.ws.rs.core.Response |
setDefault(String tabKey)
Set the default dashboard tab
|
public RecentlyUpdatedContentResource(RecentlyUpdatedContentService recentlyUpdatedContentService, RecentlyUpdatedMacroTabProvider tabProvider, LabelManager labelManager, UserAccessor userAccessor)
@XsrfProtectionExcluded public javax.ws.rs.core.Response getUpdates(String tabKey, int maxResults, String showProfilePic, String labelsFilter, String spacesFilter, String usersFilter, String typesFilter, String category, String spaceKey) throws Exception
tabKey
- The value from the tab's getName methodmaxResults
- The maximum number of results to return (number of RecentUpdate, not RecentUpdateGroup objects)InvalidSearchException
- If the search failedException
public javax.ws.rs.core.Response getUpdatesPost(RecentlyUpdatedContentResourceRequestDto req) throws Exception
req
- RecentlyUpdatedContentResourceRequestDto
InvalidSearchException
- If the search failedException
@XsrfProtectionExcluded public javax.ws.rs.core.Response getDefault()
public javax.ws.rs.core.Response setDefault(String tabKey)
tabKey
- the value from the tab's getName methodCopyright © 2003–2016 Atlassian. All rights reserved.