Class RecentSpacesProvider


  • public class RecentSpacesProvider
    extends Object
    Provides the 'recentSpaces' top level field
    Since:
    6.12.0
    • Constructor Detail

      • RecentSpacesProvider

        public RecentSpacesProvider​(com.atlassian.confluence.plugins.recentlyviewed.RecentlyViewedManager recentlyViewedManager)
    • 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 Spaces
        Throws:
        ServiceException