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 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 Spaces
      Throws:
      ServiceException