Class RecentSpacesProvider
java.lang.Object
com.atlassian.confluence.plugins.graphql.providers.RecentSpacesProvider
Provides the 'recentSpaces' top level field
- Since:
- 6.12.0
-
Constructor Summary
ConstructorsConstructorDescriptionRecentSpacesProvider
(com.atlassian.confluence.plugins.recentlyviewed.api.RecentlyViewedManager recentlyViewedManager) -
Method Summary
Modifier and TypeMethodDescriptionrecentSpaces
(graphql.schema.DataFetchingEnvironment env, int limit) Get recently viewed spaces for the current user.
-
Constructor Details
-
RecentSpacesProvider
public RecentSpacesProvider(com.atlassian.confluence.plugins.recentlyviewed.api.RecentlyViewedManager recentlyViewedManager)
-
-
Method Details
-
recentSpaces
public List<String> recentSpaces(graphql.schema.DataFetchingEnvironment env, @DefaultValue("25") 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
-