Class RecentSpacesProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.graphql.providers.RecentSpacesProvider
-
public class RecentSpacesProvider extends Object
Provides the 'recentSpaces' top level field- Since:
- 6.12.0
-
-
Constructor Summary
Constructors Constructor Description RecentSpacesProvider(com.atlassian.confluence.plugins.recentlyviewed.RecentlyViewedManager recentlyViewedManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
recentSpaces(graphql.schema.DataFetchingEnvironment env, int limit)
Get recently viewed spaces for the current user.
-
-
-
Method Detail
-
recentSpaces
public List<String> recentSpaces(graphql.schema.DataFetchingEnvironment env, int limit) throws ServiceException
Get recently viewed spaces for the current user. Keys are only returned as they are meant to be linked to full spaces by the GraphQL service- Parameters:
env
- data fetching environment (by usual GraphQL convention)limit
- max number of spaces requested- Returns:
- List of
Space
s - Throws:
ServiceException
-
-